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 void
dispose()
A method for cleaning up the cab signalprotected void
forwardAspectToLayout()
Forward the command to the layout that sets the displayed signal aspect for this addressprotected void
resetLayoutCabSignal()
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:
dispose
in interfaceCabSignal
- Overrides:
dispose
in classDefaultCabSignal
-
forwardAspectToLayout
protected void forwardAspectToLayout()
Forward the command to the layout that sets the displayed signal aspect for this address- Overrides:
forwardAspectToLayout
in classDefaultCabSignal
-
resetLayoutCabSignal
protected void resetLayoutCabSignal()
Forward the command to the layout that clears any displayed signal for this address- Overrides:
resetLayoutCabSignal
in classDefaultCabSignal
-
-