java.lang.Object
org.opentcs.components.kernel.routing.Edge

public class Edge extends Object
A wrapper for Paths that can be used to build routing graphs.
  • Konstruktordetails

    • Edge

      public Edge(@Nonnull Path modelPath, boolean travellingReverse)
      Creates a new instance.
      Parameter:
      modelPath - The path in the model that is traversed on this edge.
      travellingReverse - Whether the path is travelled in reverse direction.
  • Methodendetails

    • getPath

      public Path getPath()
      Returns the path in the model that is traversed on this edge.
      Gibt zurück:
      The path in the model that is traversed on this edge.
    • isTravellingReverse

      public boolean isTravellingReverse()
      Indicates whether the path is travelled in reverse direction.
      Gibt zurück:
      Whether the path is travelled in reverse direction.
    • getSourceVertex

      public String getSourceVertex()
      Returns the source vertex of this edge.
      Gibt zurück:
      The source vertex of this edge.
    • getTargetVertex

      public String getTargetVertex()
      Returns the target vertex of this edge.
      Gibt zurück:
      The target vertex of this edge.
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object