Class OPath

java.lang.Object
jmri.Path
jmri.jmrit.logix.OPath
All Implemented Interfaces:
Comparable<Path>

public class OPath extends Path
Extends jmri.Path. An OPath is a route that traverses a Block from one boundary to another. The dest parameter of Path (renamed to owner) is used to reference the Block to which this OPath belongs. (Not a destination Block as might be inferred from the naming in Path.java)

An OPath inherits the List of BeanSettings for all the turnouts needed to traverse the Block. It also has references to the Portals (block boundary objects) through which it enters or exits the block. One of these may be null, if the OPath dead ends within the block.

  • Constructor Details

    • OPath

      public OPath(Block owner, String name)
      Create an OPath object with default directions of NONE, and no setting element.
      Parameters:
      owner - Block owning the path
      name - name of the path
    • OPath

      public OPath(String name, OBlock owner, Portal entry, Portal exit, List<BeanSetting> settings)
      Create an OPath object with default directions of NONE, and no setting element.
      Parameters:
      owner - Block owning the path
      name - name of the path
      entry - Portal where path enters
      exit - Portal where path exits
      settings - array of turnout settings of the path
  • Method Details