Package jmri.jmrix.loconet
Class LnCabSignal
- java.lang.Object
-
- jmri.implementation.DefaultCabSignal
-
- jmri.jmrix.loconet.LnCabSignal
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener,java.util.EventListener,CabSignal
public class LnCabSignal extends DefaultCabSignal
Ln implementation of a Cab Signal Object, describing the state of the track ahead relative to a locomotive with a given address. This is effectively a mobile signal mast.
-
-
Constructor Summary
Constructors Constructor Description LnCabSignal(LocoNetSystemConnectionMemo memo, LocoAddress address)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()A method for cleaning up the cab signalprotected voidforwardAspectToLayout()Forward the command to the layout that sets the displayed signal aspect for this addressprotected voidresetLayoutCabSignal()Forward the command to the layout that clears any displayed signal for this address-
Methods inherited from class jmri.implementation.DefaultCabSignal
addPropertyChangeListener, firePropertyChange, forwardCabSignalToLayout, getBlock, getBlockList, getCabSignalAddress, getNextBlock, getNextMast, isCabSignalActive, propertyChange, removePropertyChangeListener, setBlock, setBlock, setCabSignalActive, setMasterCabSigPauseActive, toString
-
-
-
-
Constructor Detail
-
LnCabSignal
public LnCabSignal(LocoNetSystemConnectionMemo memo, LocoAddress address)
-
-
Method Detail
-
dispose
public void dispose()
A method for cleaning up the cab signal- Specified by:
disposein interfaceCabSignal- Overrides:
disposein classDefaultCabSignal
-
forwardAspectToLayout
protected void forwardAspectToLayout()
Forward the command to the layout that sets the displayed signal aspect for this address- Overrides:
forwardAspectToLayoutin classDefaultCabSignal
-
resetLayoutCabSignal
protected void resetLayoutCabSignal()
Forward the command to the layout that clears any displayed signal for this address- Overrides:
resetLayoutCabSignalin classDefaultCabSignal
-
-