Package jmri.jmrit.ussctc
Class TurnoutSection.TurnoutFieldSection
java.lang.Object
jmri.jmrit.ussctc.TurnoutSection.TurnoutFieldSection
- All Implemented Interfaces:
FieldSection<CodeGroupTwoBits,CodeGroupTwoBits>
- Enclosing class:
- TurnoutSection
class TurnoutSection.TurnoutFieldSection extends Object implements FieldSection<CodeGroupTwoBits,CodeGroupTwoBits>
-
Field Summary
Fields Modifier and Type Field Description (package private) NamedBeanHandle<Turnout>
hLayoutTO
(package private) CodeGroupTwoBits
lastCodeValue
Defines intended (commanded by central) field for this state.(package private) CodeGroupTwoBits
lastIndicationValue
Last indication actually sent(package private) List<Lock>
locks
-
Constructor Summary
Constructors Constructor Description TurnoutFieldSection(String layoutTO)
-
Method Summary
Modifier and Type Method Description void
addLocks(List<Lock> locks)
void
codeValueDelivered(CodeGroupTwoBits value)
Notification that code has arrived in the field.CodeGroupTwoBits
getCurrentIndication()
CodeGroupTwoBits
indicationStart()
Provide state that's returned from field to machine via indication.(package private) void
initializeState(Turnout to)
Initially, align with what's in the field(package private) void
layoutTurnoutChanged(PropertyChangeEvent e)
-
Field Details
-
lastCodeValue
Defines intended (commanded by central) field for this state. -
lastIndicationValue
Last indication actually sent -
hLayoutTO
-
locks
-
-
Constructor Details
-
Method Details
-
addLocks
-
initializeState
Initially, align with what's in the field- Parameters:
to
- Turnout in field to align to
-
codeValueDelivered
Notification that code has arrived in the field. Sets the turnout on the layout.- Specified by:
codeValueDelivered
in interfaceFieldSection<CodeGroupTwoBits,CodeGroupTwoBits>
- Parameters:
value
- transfer value.
-
indicationStart
Provide state that's returned from field to machine via indication.- Specified by:
indicationStart
in interfaceFieldSection<CodeGroupTwoBits,CodeGroupTwoBits>
- Returns:
- The value to be conveyed to the central CTC machine.
-
getCurrentIndication
-
layoutTurnoutChanged
-