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 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
station
-
Constructor Summary
Constructors Constructor Description MaintainerCallSection()
Anonymous object only for testingMaintainerCallSection(String inputSensor, String layoutOutput, Station station)
Create and configure. -
Method Summary
Modifier and Type Method Description CodeGroupOneBit
codeSendStart()
Start of sending code operation.void
codeValueDelivered(CodeGroupOneBit value)
Notification that code has arrived in the field.String
getName()
Name of this Section.Station
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 Details
-
Constructor Details
-
MaintainerCallSection
Anonymous object only for testing -
MaintainerCallSection
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 Details
-
getStation
- Specified by:
getStation
in interfaceSection<CodeGroupOneBit,CodeGroupNoBits>
-
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
Start of sending code operation.- Specified by:
codeSendStart
in interfaceCentralSection<CodeGroupOneBit,CodeGroupNoBits>
- Returns:
- code line value to transmit
-
indicationComplete
Process values received from the field unit.- Specified by:
indicationComplete
in interfaceCentralSection<CodeGroupOneBit,CodeGroupNoBits>
- Parameters:
value
- to be conveyed.
-
codeValueDelivered
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
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.
-