Package jmri.jmrit.ctc.topology
Class TopologyInfo
java.lang.Object
jmri.jmrit.ctc.topology.TopologyInfo
This class contains all of the information needed (in lists) for the higher level
"TRL_Rules" to generate all of the entries in "_mTRL_TrafficLockingRulesSSVList"
-
Constructor Summary
ConstructorsConstructorDescriptionTopologyInfo(CTCSerialData CTCSerialData, String destinationSignalMast, String normal, String reverse) -
Method Summary
Modifier and TypeMethodDescriptionvoidQuick and dirty routine to all all of the sensors in the passed blocks to our internal lists.voidaddTurnouts(SignalMastLogic signalMastLogic, SignalMast signalMast) Quick and dirty routine to add all of the turnouts in SML to our internal lists.getNormalReversed(int index) Quick and dirty routine to get "Normal"/"Reverse" information.getOSSectionText(int index) Quick and dirty routine to get O.S. section information.getSensorDisplayName(int index) Quick and dirty routine to get the Display Name of the sensor.getUniqueID(int index) Quick and dirty routine to get the unique id..booleannonEmpty()
-
Constructor Details
-
TopologyInfo
public TopologyInfo() -
TopologyInfo
public TopologyInfo(CTCSerialData CTCSerialData, String destinationSignalMast, String normal, String reverse)
-
-
Method Details
-
getDestinationSignalMast
-
nonEmpty
- Returns:
- true if any of our lists have anything.
-
getOSSectionText
Quick and dirty routine to get O.S. section information.- Parameters:
index- Index into array- Returns:
- null if no information, else text (of form "29/30" for instance)
-
getNormalReversed
Quick and dirty routine to get "Normal"/"Reverse" information.- Parameters:
index- Index into array- Returns:
- "Normal" if no information, else text (of form "Normal" for instance)
-
getSensorDisplayName
Quick and dirty routine to get the Display Name of the sensor.- Parameters:
index- Index into array- Returns:
- "" if no information, else text (of form "SW31-OS" for instance)
-
getUniqueID
Quick and dirty routine to get the unique id..- Parameters:
index- Index into array- Returns:
- null if no information, else uniqueID as String of the O.S. section.
-
addBlocks
Quick and dirty routine to all all of the sensors in the passed blocks to our internal lists. Duplicates are ignored. It is possible that the user didn't associate a sensor with the block. Ignore such entries.- Parameters:
blocks- List of Blocks to add.
-
addTurnouts
Quick and dirty routine to add all of the turnouts in SML to our internal lists. Duplicates are ignored.- Parameters:
signalMastLogic- SML to work against.signalMast- Destination mast in SML.
-