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
FieldsModifier and TypeFieldDescription(package private) NamedBeanHandle<Sensor>(package private) NamedBeanHandle<Turnout>(package private) Station<CodeGroupOneBit,CodeGroupNoBits> -
Constructor Summary
ConstructorsConstructorDescriptionAnonymous object only for testingMaintainerCallSection(String inputSensor, String layoutOutput, Station<CodeGroupOneBit, CodeGroupNoBits> station) Create and configure. -
Method Summary
Modifier and TypeMethodDescriptionStart of sending code operation.voidNotification that code has arrived in the field.getName()Name of this Section.voidProcess values received from the field unit.Provide state that's returned from field to machine via indication.
-
Field Details
-
hInputSensor
-
hLayoutOutput
-
station
-
-
Constructor Details
-
MaintainerCallSection
Anonymous object only for testing -
MaintainerCallSection
public MaintainerCallSection(String inputSensor, 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 Details
-
getStation
- Specified by:
getStationin interfaceSection<CodeGroupOneBit,CodeGroupNoBits>
-
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
Start of sending code operation.- Specified by:
codeSendStartin interfaceCentralSection<CodeGroupOneBit,CodeGroupNoBits> - Returns:
- code line value to transmit
-
indicationComplete
Process values received from the field unit.- Specified by:
indicationCompletein 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:
codeValueDeliveredin interfaceFieldSection<CodeGroupOneBit,CodeGroupNoBits> - Parameters:
value- transfer value.
-
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.
-