Package jmri.jmrit.ussctc
Class MaintainerCallSection
- java.lang.Object
-
- jmri.jmrit.ussctc.MaintainerCallSection
-
- All Implemented Interfaces:
CentralSection<CodeGroupOneBit,CodeGroupNoBits>,FieldSection<CodeGroupOneBit,CodeGroupNoBits>,Section<CodeGroupOneBit,CodeGroupNoBits>
public class MaintainerCallSection extends java.lang.Object implements Section<CodeGroupOneBit,CodeGroupNoBits>
Drive a single Maintainer Call section on a USS CTC panel.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) NamedBeanHandle<Sensor>hInputSensor(package private) NamedBeanHandle<Turnout>hLayoutOutput(package private) Station<CodeGroupOneBit,CodeGroupNoBits>station
-
Constructor Summary
Constructors Constructor Description MaintainerCallSection()Anonymous object only for testingMaintainerCallSection(java.lang.String inputSensor, java.lang.String layoutOutput, Station<CodeGroupOneBit,CodeGroupNoBits> station)Create and configure.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CodeGroupOneBitcodeSendStart()Start of sending code operation.voidcodeValueDelivered(CodeGroupOneBit value)Notification that code has arrived in the field.java.lang.StringgetName()Name of this Section.Station<CodeGroupOneBit,CodeGroupNoBits>getStation()voidindicationComplete(CodeGroupNoBits value)Process values received from the field unit.CodeGroupNoBitsindicationStart()Provide state that's returned from field to machine via indication.
-
-
-
Field Detail
-
hInputSensor
NamedBeanHandle<Sensor> hInputSensor
-
hLayoutOutput
NamedBeanHandle<Turnout> hLayoutOutput
-
station
Station<CodeGroupOneBit,CodeGroupNoBits> station
-
-
Constructor Detail
-
MaintainerCallSection
MaintainerCallSection()
Anonymous object only for testing
-
MaintainerCallSection
public MaintainerCallSection(java.lang.String inputSensor, java.lang.String layoutOutput, Station<CodeGroupOneBit,CodeGroupNoBits> station)
Create and configure. Accepts user or system names.- Parameters:
inputSensor- Sensor for input from central CTC machinelayoutOutput- Turnout name for maintainer call on layoutstation- Station to which this Section belongs
-
-
Method Detail
-
getStation
public Station<CodeGroupOneBit,CodeGroupNoBits> getStation()
- Specified by:
getStationin interfaceSection<CodeGroupOneBit,CodeGroupNoBits>
-
getName
public java.lang.String getName()
Description copied from interface:SectionName of this Section. Does not include name of associated Station.- Specified by:
getNamein interfaceSection<CodeGroupOneBit,CodeGroupNoBits>- Returns:
- section name without station.
-
codeSendStart
public CodeGroupOneBit codeSendStart()
Start of sending code operation.- Specified by:
codeSendStartin interfaceCentralSection<CodeGroupOneBit,CodeGroupNoBits>- Returns:
- code line value to transmit
-
indicationComplete
public void indicationComplete(CodeGroupNoBits value)
Process values received from the field unit.- Specified by:
indicationCompletein interfaceCentralSection<CodeGroupOneBit,CodeGroupNoBits>- Parameters:
value- to be conveyed.
-
codeValueDelivered
public void codeValueDelivered(CodeGroupOneBit value)
Notification that code has arrived in the field. Sets the turnout on the layout.- Specified by:
codeValueDeliveredin interfaceFieldSection<CodeGroupOneBit,CodeGroupNoBits>- Parameters:
value- transfer value.
-
indicationStart
public CodeGroupNoBits indicationStart()
Provide state that's returned from field to machine via indication.- Specified by:
indicationStartin interfaceFieldSection<CodeGroupOneBit,CodeGroupNoBits>- Returns:
- The value to be conveyed to the central CTC machine.
-
-