Package jmri.jmrix.can.cbus
Class CbusCabSignal
- java.lang.Object
-
- jmri.implementation.DefaultCabSignal
-
- jmri.jmrix.can.cbus.CbusCabSignal
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.util.EventListener
,CabSignal
public class CbusCabSignal extends DefaultCabSignal
CBUS 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.Uses an experimental MERG CBUS OPC todo - add semaphore flags todo - add loco speed / block speed
-
-
Constructor Summary
Constructors Constructor Description CbusCabSignal(CanSystemConnectionMemo 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
-
CbusCabSignal
public CbusCabSignal(CanSystemConnectionMemo 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
-
-