use of jmri.SignalMastLogic in project JMRI by JMRI.
the class SignallingSourcePanel method updateDetails.
/**
* Refresh the list of destination Signal Masts available for edit in the current SML.
*/
private void updateDetails() {
SignalMastLogic old = sml;
sml = jmri.InstanceManager.getDefault(jmri.SignalMastLogicManager.class).getSignalMastLogic(sourceMast);
if (sml != null) {
_signalMastList = sml.getDestinationList();
_AppearanceModel.updateSignalMastLogic(old, sml);
}
}
use of jmri.SignalMastLogic in project JMRI by JMRI.
the class DefaultSignalMastLogicManager method newSignalMastLogic.
@Override
public SignalMastLogic newSignalMastLogic(SignalMast source) {
for (int i = 0; i < signalMastLogic.size(); i++) {
if (signalMastLogic.get(i).getSourceMast() == source) {
return signalMastLogic.get(i);
}
}
SignalMastLogic logic = new DefaultSignalMastLogic(source);
signalMastLogic.add(logic);
firePropertyChange("length", null, Integer.valueOf(signalMastLogic.size()));
return logic;
}
Aggregations