Package jmri.jmrit.ctc.ctcserialdata
Class TrafficLockingData
java.lang.Object
jmri.jmrit.ctc.ctcserialdata.TrafficLockingData
This describes one traffic locking rule.
The TRLSwitch sub-class contains switch, alignment and ID values.
The list of traffic locking rules for each OS section are in the
_mTRL_LeftTrafficLockingRules and _mTRL_RightTrafficLockingRuless variable
in CodeButtonHandlerData.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
ConstructorsConstructorDescriptionTrafficLockingData(int ruleNumber, String destinationSignalMast, TopologyInfo topologyInfo) Constructor to take a TopologyInfo entry and create a properly formed "this". -
Method Summary
Modifier and TypeMethodDescriptionCreate a list of alignments with 5 entries.Create a list of occupancy sensors with 9 entries.Create a list of optional sensors with 2 entries.Create a list of unique ids with 5 entries.toString()
-
Field Details
-
_mUserRuleNumber
-
_mRuleEnabled
-
_mDestinationSignalOrComment
-
_mSwitchAlignments
-
_mOccupancyExternalSensors
-
_mOptionalExternalSensors
-
-
Constructor Details
-
TrafficLockingData
public TrafficLockingData() -
TrafficLockingData
Constructor to take a TopologyInfo entry and create a properly formed "this".- Parameters:
ruleNumber- Rule # (just an integer, starting with 1)destinationSignalMast- String representation of the destination signal mast so user can see on the form.topologyInfo- Source of data.
-
-
Method Details
-
getOccupancySensors
Create a list of occupancy sensors with 9 entries. Unused entries will be set to a dummy NBHSensor.- Returns:
- a list of occupancy sensors.
-
getOptionalSensors
Create a list of optional sensors with 2 entries. Unused entries will be set to a dummy NBHSensor.- Returns:
- a list of optional sensors.
-
getUniqueIDs
Create a list of unique ids with 5 entries. Unused entries are set to -1.- Returns:
- a list of ids
-
getAlignments
Create a list of alignments with 5 entries. Unused entries are to to Normal.- Returns:
- a list of alignments
-
toString
-