Package jmri.jmrit.ussctc
Class Station<To extends Enum<To>,From extends Enum<From>>
java.lang.Object
jmri.jmrit.ussctc.Station<To,From>
A Station represents a specific codeline field station.
It defines the bits in the code message and holds references to the
hardware at both ends that is controlled by those bits. For example:
- Two bits for Turnouts, see
CodeGroupTwoBits - Three bits for Signals, see
CodeGroupThreeBits - One bit for maintainer call, track circuits, etc, see
CodeGroupOneBit
TurnoutSection that functions in both the central CTC machine and field hardware roles.
- The field object listens to the status of the layout and sends indications on changes.
The central (CTC machine) object responds to those indications.
- The central (CTC machine) object sends when Code is pressed.
The field object responds to those when received.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidTell the Sections to start a code-send operation (from machine to field).voidTell the sections that code information has arrived in the field(package private) CodeLineProvide access to CodeLine to which this Station is attached.(package private) StringgetName()Provide access this Station's namevoidGather layout status and turn on code lamp.voidGather layout status and turn on code lamp.voidtoString()
-
Field Details
-
name
-
codeline
-
button
-
sections
-
sentValues
ArrayList<To extends Enum<To>> sentValues -
indicationValues
ArrayList<From extends Enum<From>> indicationValues
-
-
Constructor Details
-
Station
-
-
Method Details
-
add
- Parameters:
section- next Section subclass that makes up part of this Station- Returns:
- this Station to allow chaining
-
getCodeLine
Provide access to CodeLine to which this Station is attached.- Returns:
- Codeline reference for this Station
-
getName
Provide access this Station's name- Returns:
- Human-readable name
-
toString
-
codeSendRequest
Tell the Sections to start a code-send operation (from machine to field). Usually comes from aCodeButton -
codeSendComplete
-
codeValueDelivered
Tell the sections that code information has arrived in the field -
requestIndicationStart
-
indicationStart
Gather layout status and turn on code lamp. Rest of action is on indicationComplete -
indicationComplete
Gather layout status and turn on code lamp. Rest of action is on indicationComplete
-