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 java.lang.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) java.util.List<Lock>
locks
-
Constructor Summary
Constructors Constructor Description TurnoutFieldSection(java.lang.String layoutTO)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLocks(java.util.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(java.beans.PropertyChangeEvent e)
(package private) void
logLocked(CodeGroupTwoBits value)
-
-
-
Field Detail
-
lastCodeValue
CodeGroupTwoBits lastCodeValue
Defines intended (commanded by central) field for this state.
-
lastIndicationValue
CodeGroupTwoBits lastIndicationValue
Last indication actually sent
-
hLayoutTO
NamedBeanHandle<Turnout> hLayoutTO
-
-
Constructor Detail
-
TurnoutFieldSection
public TurnoutFieldSection(java.lang.String layoutTO)
-
-
Method Detail
-
initializeState
void initializeState(Turnout to)
Initially, align with what's in the field- Parameters:
to
- Turnout in field to align to
-
codeValueDelivered
public void codeValueDelivered(CodeGroupTwoBits value)
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.
-
logLocked
void logLocked(CodeGroupTwoBits value)
-
indicationStart
public CodeGroupTwoBits 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
public CodeGroupTwoBits getCurrentIndication()
-
layoutTurnoutChanged
void layoutTurnoutChanged(java.beans.PropertyChangeEvent e)
-
-