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) CodeGroupTwoBitslastCodeValueDefines intended (commanded by central) field for this state.(package private) CodeGroupTwoBitslastIndicationValueLast 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 voidaddLocks(java.util.List<Lock> locks)voidcodeValueDelivered(CodeGroupTwoBits value)Notification that code has arrived in the field.CodeGroupTwoBitsgetCurrentIndication()CodeGroupTwoBitsindicationStart()Provide state that's returned from field to machine via indication.(package private) voidinitializeState(Turnout to)Initially, align with what's in the field(package private) voidlayoutTurnoutChanged(java.beans.PropertyChangeEvent e)(package private) voidlogLocked(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:
codeValueDeliveredin 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:
indicationStartin 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)
-
-