Package jmri.jmrit.ussctc
Class TurnoutSection.TurnoutCentralSection
- java.lang.Object
-
- jmri.jmrit.ussctc.TurnoutSection.TurnoutCentralSection
-
- All Implemented Interfaces:
CentralSection<CodeGroupTwoBits,CodeGroupTwoBits>
- Enclosing class:
- TurnoutSection
static class TurnoutSection.TurnoutCentralSection extends java.lang.Object implements CentralSection<CodeGroupTwoBits,CodeGroupTwoBits>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
TurnoutSection.TurnoutCentralSection.State
-
Field Summary
Fields Modifier and Type Field Description (package private) NamedBeanHandle<Turnout>
hNormalIndicator
(package private) NamedBeanHandle<Sensor>
hNormalInput
(package private) NamedBeanHandle<Turnout>
hReversedIndicator
(package private) NamedBeanHandle<Sensor>
hReversedInput
(package private) TurnoutSection.TurnoutCentralSection.State
state
-
Constructor Summary
Constructors Constructor Description TurnoutCentralSection(java.lang.String normalIndicator, java.lang.String reversedIndicator, java.lang.String normalInput, java.lang.String reversedInput)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CodeGroupTwoBits
codeSendStart()
Start of sending code operation: Set indicators Provide values to send over linevoid
indicationComplete(CodeGroupTwoBits value)
Process values received from the field unit.(package private) void
initializeLamps(Turnout to)
-
-
-
Field Detail
-
hNormalIndicator
NamedBeanHandle<Turnout> hNormalIndicator
-
hReversedIndicator
NamedBeanHandle<Turnout> hReversedIndicator
-
hNormalInput
NamedBeanHandle<Sensor> hNormalInput
-
hReversedInput
NamedBeanHandle<Sensor> hReversedInput
-
-
Constructor Detail
-
TurnoutCentralSection
public TurnoutCentralSection(java.lang.String normalIndicator, java.lang.String reversedIndicator, java.lang.String normalInput, java.lang.String reversedInput)
-
-
Method Detail
-
initializeLamps
void initializeLamps(Turnout to)
-
codeSendStart
public CodeGroupTwoBits codeSendStart()
Start of sending code operation:- Set indicators
- Provide values to send over line
- Specified by:
codeSendStart
in interfaceCentralSection<CodeGroupTwoBits,CodeGroupTwoBits>
- Returns:
- code line value to transmit
-
indicationComplete
public void indicationComplete(CodeGroupTwoBits value)
Process values received from the field unit.- Specified by:
indicationComplete
in interfaceCentralSection<CodeGroupTwoBits,CodeGroupTwoBits>
- Parameters:
value
- to be conveyed.
-
-