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 CodeGroupOneBit
codeSendStart()
Start of sending code operation.void
codeValueDelivered(CodeGroupOneBit value)
Notification that code has arrived in the field.java.lang.String
getName()
Name of this Section.Station<CodeGroupOneBit,CodeGroupNoBits>
getStation()
void
indicationComplete(CodeGroupNoBits value)
Process values received from the field unit.CodeGroupNoBits
indicationStart()
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:
getStation
in interfaceSection<CodeGroupOneBit,CodeGroupNoBits>
-
getName
public java.lang.String getName()
Description copied from interface:Section
Name of this Section. Does not include name of associated Station.- Specified by:
getName
in interfaceSection<CodeGroupOneBit,CodeGroupNoBits>
- Returns:
- section name without station.
-
codeSendStart
public CodeGroupOneBit codeSendStart()
Start of sending code operation.- Specified by:
codeSendStart
in interfaceCentralSection<CodeGroupOneBit,CodeGroupNoBits>
- Returns:
- code line value to transmit
-
indicationComplete
public void indicationComplete(CodeGroupNoBits value)
Process values received from the field unit.- Specified by:
indicationComplete
in 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:
codeValueDelivered
in interfaceFieldSection<CodeGroupOneBit,CodeGroupNoBits>
- Parameters:
value
- transfer value.
-
indicationStart
public CodeGroupNoBits indicationStart()
Provide state that's returned from field to machine via indication.- Specified by:
indicationStart
in interfaceFieldSection<CodeGroupOneBit,CodeGroupNoBits>
- Returns:
- The value to be conveyed to the central CTC machine.
-
-