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>
 
 public class TrackCircuitSection extends java.lang.Object implements Section<CodeGroupNoBits,CodeGroupOneBit> Drive a single Track Circuit section on a USS CTC panel.
- 
- 
Field SummaryFields Modifier and Type Field Description (package private) Bellbell(package private) NamedBeanHandle<Sensor>hInputSensor(package private) NamedBeanHandle<Turnout>hPanelOutput(package private) Station<CodeGroupNoBits,CodeGroupOneBit>station
 - 
Constructor SummaryConstructors Constructor Description TrackCircuitSection()Anonymous object only for testingTrackCircuitSection(java.lang.String inputSensor, java.lang.String panelOutput, Station<CodeGroupNoBits,CodeGroupOneBit> station)Create and configure.TrackCircuitSection(java.lang.String inputSensor, java.lang.String panelOutput, Station<CodeGroupNoBits,CodeGroupOneBit> station, Bell bell)Create and configure.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description CodeGroupNoBitscodeSendStart()Start of sending code operation.voidcodeValueDelivered(CodeGroupNoBits value)Notification that code has arrived in the field.java.lang.StringgetName()Name of this Section.Station<CodeGroupNoBits,CodeGroupOneBit>getStation()voidindicationComplete(CodeGroupOneBit value)Process values received from the field unit.CodeGroupOneBitindicationStart()Provide state that's returned from field to machine via indication.(package private) voidlayoutTurnoutChanged(java.beans.PropertyChangeEvent e)
 
- 
- 
- 
Field Detail- 
hInputSensorNamedBeanHandle<Sensor> hInputSensor 
 - 
hPanelOutputNamedBeanHandle<Turnout> hPanelOutput 
 - 
stationStation<CodeGroupNoBits,CodeGroupOneBit> station 
 
- 
 - 
Constructor Detail- 
TrackCircuitSectionTrackCircuitSection() Anonymous object only for testing
 - 
TrackCircuitSectionpublic TrackCircuitSection(java.lang.String inputSensor, java.lang.String panelOutput, Station<CodeGroupNoBits,CodeGroupOneBit> station, Bell bell) Create and configure. Accepts user or system names.- Parameters:
- inputSensor- Sensor for occupancy on layout
- panelOutput- Turnout drives lamp on panel
- station- Station to which this Section belongs
- bell- Bell driver (can be null)
 
 - 
TrackCircuitSectionpublic TrackCircuitSection(java.lang.String inputSensor, java.lang.String panelOutput, Station<CodeGroupNoBits,CodeGroupOneBit> station) Create and configure.Accepts user or system names. - Parameters:
- inputSensor- Sensor for input from central CTC machine
- panelOutput- Turnout name for maintainer call on layout
- station- Station to which this Section belongs
 
 
- 
 - 
Method Detail- 
getStationpublic Station<CodeGroupNoBits,CodeGroupOneBit> getStation() - Specified by:
- getStationin interface- Section<CodeGroupNoBits,CodeGroupOneBit>
 
 - 
getNamepublic java.lang.String getName() Description copied from interface:SectionName of this Section. Does not include name of associated Station.- Specified by:
- getNamein interface- Section<CodeGroupNoBits,CodeGroupOneBit>
- Returns:
- section name without station.
 
 - 
codeSendStartpublic CodeGroupNoBits codeSendStart() Start of sending code operation.- Specified by:
- codeSendStartin interface- CentralSection<CodeGroupNoBits,CodeGroupOneBit>
- Returns:
- code line value to transmit
 
 - 
indicationCompletepublic void indicationComplete(CodeGroupOneBit value) Process values received from the field unit.- Specified by:
- indicationCompletein interface- CentralSection<CodeGroupNoBits,CodeGroupOneBit>
- Parameters:
- value- to be conveyed.
 
 - 
codeValueDeliveredpublic void codeValueDelivered(CodeGroupNoBits value) Notification that code has arrived in the field. Sets the turnout on the layout.- Specified by:
- codeValueDeliveredin interface- FieldSection<CodeGroupNoBits,CodeGroupOneBit>
- Parameters:
- value- transfer value.
 
 - 
indicationStartpublic CodeGroupOneBit indicationStart() Provide state that's returned from field to machine via indication.- Specified by:
- indicationStartin interface- FieldSection<CodeGroupNoBits,CodeGroupOneBit>
- Returns:
- The value to be conveyed to the central CTC machine.
 
 - 
layoutTurnoutChangedvoid layoutTurnoutChanged(java.beans.PropertyChangeEvent e) 
 
- 
 
-