Class TopologyInfo

java.lang.Object
jmri.jmrit.ctc.topology.TopologyInfo

public class TopologyInfo extends Object
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 Details

  • Method Details

    • getDestinationSignalMast

    • nonEmpty

      public boolean nonEmpty()
      Returns:
      true if any of our lists have anything.
    • getOSSectionText

      public String getOSSectionText(int index)
      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

      public String getNormalReversed(int index)
      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

      public String getSensorDisplayName(int index)
      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

      public String getUniqueID(int index)
      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

      public void addBlocks(List<Block> blocks)
      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

      public void addTurnouts(SignalMastLogic signalMastLogic, SignalMast signalMast)
      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.