Package jmri.jmrit.ussctc
Class TrackCircuitSection
java.lang.Object
jmri.jmrit.ussctc.TrackCircuitSection
- All Implemented Interfaces:
CentralSection<CodeGroupNoBits,,CodeGroupOneBit> FieldSection<CodeGroupNoBits,,CodeGroupOneBit> Section<CodeGroupNoBits,CodeGroupOneBit>
Drive a single Track Circuit section on a USS CTC panel.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Bell(package private) NamedBeanHandle<Sensor>(package private) NamedBeanHandle<Turnout>(package private) Station<CodeGroupNoBits,CodeGroupOneBit> -
Constructor Summary
ConstructorsConstructorDescriptionAnonymous object only for testingTrackCircuitSection(String inputSensor, String panelOutput, Station<CodeGroupNoBits, CodeGroupOneBit> station) Create and configure.TrackCircuitSection(String inputSensor, String panelOutput, Station<CodeGroupNoBits, CodeGroupOneBit> station, Bell bell) 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.(package private) void
-
Field Details
-
hInputSensor
-
hPanelOutput
-
bell
-
station
-
-
Constructor Details
-
TrackCircuitSection
Anonymous object only for testing -
TrackCircuitSection
public TrackCircuitSection(String inputSensor, String panelOutput, Station<CodeGroupNoBits, CodeGroupOneBit> station, Bell bell) Create and configure. Accepts user or system names.- Parameters:
inputSensor- Sensor for occupancy on layoutpanelOutput- Turnout drives lamp on panelstation- Station to which this Section belongsbell- Bell driver (can be null)
-
TrackCircuitSection
public TrackCircuitSection(String inputSensor, String panelOutput, Station<CodeGroupNoBits, CodeGroupOneBit> station) Create and configure.Accepts user or system names.
- Parameters:
inputSensor- Sensor for input from central CTC machinepanelOutput- Turnout name for maintainer call on layoutstation- Station to which this Section belongs
-
-
Method Details
-
getStation
- Specified by:
getStationin interfaceSection<CodeGroupNoBits,CodeGroupOneBit>
-
getName
Description copied from interface:SectionName of this Section. Does not include name of associated Station.- Specified by:
getNamein interfaceSection<CodeGroupNoBits,CodeGroupOneBit> - Returns:
- section name without station.
-
codeSendStart
Start of sending code operation.- Specified by:
codeSendStartin interfaceCentralSection<CodeGroupNoBits,CodeGroupOneBit> - Returns:
- code line value to transmit
-
indicationComplete
Process values received from the field unit.- Specified by:
indicationCompletein interfaceCentralSection<CodeGroupNoBits,CodeGroupOneBit> - Parameters:
value- to be conveyed.
-
codeValueDelivered
Notification that code has arrived in the field. Sets the turnout on the layout.- Specified by:
codeValueDeliveredin interfaceFieldSection<CodeGroupNoBits,CodeGroupOneBit> - Parameters:
value- transfer value.
-
indicationStart
Provide state that's returned from field to machine via indication.- Specified by:
indicationStartin interfaceFieldSection<CodeGroupNoBits,CodeGroupOneBit> - Returns:
- The value to be conveyed to the central CTC machine.
-
layoutTurnoutChanged
-