Package jmri.jmrit.ctc
Class SignalDirectionIndicators
- java.lang.Object
-
- jmri.jmrit.ctc.SignalDirectionIndicators
-
- All Implemented Interfaces:
SignalDirectionIndicatorsInterface
public final class SignalDirectionIndicators extends java.lang.Object implements SignalDirectionIndicatorsInterface
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.util.HashSet<NBHSignal>
_mSignalsUsed
-
Constructor Summary
Constructors Constructor Description SignalDirectionIndicators(java.lang.String userIdentifier, NBHSensor leftSensor, NBHSensor normalSensor, NBHSensor rightSensor, int codingTimeInMilliseconds, int timeLockingTimeInMilliseconds, CodeButtonHandlerData.TRAFFIC_DIRECTION trafficDirection, java.util.ArrayList<NBHSignal> signalListLeftRight, java.util.ArrayList<NBHSignal> signalListRightLeft, Fleeting fleetingObject)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
codeButtonPressed(int requestedDirection, boolean requestedChangeInSignalDirection)
void
forceAllSignalsToHeld()
int
getPresentDirection()
int
getSignalsInTheFieldDirection()
boolean
inCorrespondence()
boolean
isNonfunctionalObject()
boolean
isRunningTime()
void
osSectionBecameOccupied()
void
removeAllListeners()
static void
resetSignalsUsed()
void
setCodeButtonHandler(CodeButtonHandler codeButtonHandler)
void
setPresentSignalDirectionLever(int presentSignalDirectionLever)
void
setRequestedDirection(int direction)
void
setSignalDirectionIndicatorsToOUTOFCORRESPONDENCE()
boolean
signalsNormal()
boolean
signalsNormalOrOutOfCorrespondence()
void
startCodingTime()
-
-
-
Field Detail
-
_mSignalsUsed
static final java.util.HashSet<NBHSignal> _mSignalsUsed
-
-
Constructor Detail
-
SignalDirectionIndicators
public SignalDirectionIndicators(java.lang.String userIdentifier, NBHSensor leftSensor, NBHSensor normalSensor, NBHSensor rightSensor, int codingTimeInMilliseconds, int timeLockingTimeInMilliseconds, CodeButtonHandlerData.TRAFFIC_DIRECTION trafficDirection, java.util.ArrayList<NBHSignal> signalListLeftRight, java.util.ArrayList<NBHSignal> signalListRightLeft, Fleeting fleetingObject)
-
-
Method Detail
-
resetSignalsUsed
public static void resetSignalsUsed()
-
setCodeButtonHandler
public void setCodeButtonHandler(CodeButtonHandler codeButtonHandler)
- Specified by:
setCodeButtonHandler
in interfaceSignalDirectionIndicatorsInterface
-
removeAllListeners
public void removeAllListeners()
- Specified by:
removeAllListeners
in interfaceSignalDirectionIndicatorsInterface
-
isNonfunctionalObject
public boolean isNonfunctionalObject()
- Specified by:
isNonfunctionalObject
in interfaceSignalDirectionIndicatorsInterface
-
setPresentSignalDirectionLever
public void setPresentSignalDirectionLever(int presentSignalDirectionLever)
- Specified by:
setPresentSignalDirectionLever
in interfaceSignalDirectionIndicatorsInterface
-
isRunningTime
public boolean isRunningTime()
- Specified by:
isRunningTime
in interfaceSignalDirectionIndicatorsInterface
-
osSectionBecameOccupied
public void osSectionBecameOccupied()
- Specified by:
osSectionBecameOccupied
in interfaceSignalDirectionIndicatorsInterface
-
codeButtonPressed
public void codeButtonPressed(int requestedDirection, boolean requestedChangeInSignalDirection)
- Specified by:
codeButtonPressed
in interfaceSignalDirectionIndicatorsInterface
-
startCodingTime
public void startCodingTime()
- Specified by:
startCodingTime
in interfaceSignalDirectionIndicatorsInterface
-
signalsNormal
public boolean signalsNormal()
- Specified by:
signalsNormal
in interfaceSignalDirectionIndicatorsInterface
-
signalsNormalOrOutOfCorrespondence
public boolean signalsNormalOrOutOfCorrespondence()
- Specified by:
signalsNormalOrOutOfCorrespondence
in interfaceSignalDirectionIndicatorsInterface
-
getPresentDirection
public int getPresentDirection()
- Specified by:
getPresentDirection
in interfaceSignalDirectionIndicatorsInterface
-
inCorrespondence
public boolean inCorrespondence()
- Specified by:
inCorrespondence
in interfaceSignalDirectionIndicatorsInterface
-
forceAllSignalsToHeld
public void forceAllSignalsToHeld()
- Specified by:
forceAllSignalsToHeld
in interfaceSignalDirectionIndicatorsInterface
-
getSignalsInTheFieldDirection
public int getSignalsInTheFieldDirection()
- Specified by:
getSignalsInTheFieldDirection
in interfaceSignalDirectionIndicatorsInterface
-
setSignalDirectionIndicatorsToOUTOFCORRESPONDENCE
public void setSignalDirectionIndicatorsToOUTOFCORRESPONDENCE()
- Specified by:
setSignalDirectionIndicatorsToOUTOFCORRESPONDENCE
in interfaceSignalDirectionIndicatorsInterface
-
setRequestedDirection
public void setRequestedDirection(int direction)
- Specified by:
setRequestedDirection
in interfaceSignalDirectionIndicatorsInterface
-
-