Search in sources :

Example 1 with DefaultSignalMastLogic

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;
}
Also used : SignalMastLogic(jmri.SignalMastLogic) DefaultSignalMastLogic(jmri.implementation.DefaultSignalMastLogic) DefaultSignalMastLogic(jmri.implementation.DefaultSignalMastLogic)

Aggregations

SignalMastLogic (jmri.SignalMastLogic)1 DefaultSignalMastLogic (jmri.implementation.DefaultSignalMastLogic)1