public class Edge extends Segment
  • Constructor Details

    • Edge

      public Edge(int index, int startIndex, int endIndex, int cost, int fromNodeId, int toNodeId)
  • Method Details

    • getCost

      public int getCost()
    • getFromNodeId

      public int getFromNodeId()
    • getToNodeId

      public int getToNodeId()
    • getFromNode

      public Node getFromNode()
    • setFromNode

      public void setFromNode(Node fromNode)
    • getToNode

      public Node getToNode()
    • setToNode

      public void setToNode(Node toNode)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isOn

      public boolean isOn()
      Specified by:
      isOn in class Segment