use of jmri.implementation.DefaultSignalMastLogic 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