Class RouteData

    • Constructor Detail

      • RouteData

        public RouteData​(String routeName,
                         NodeData startNode,
                         NodeData endNode)
        Parameters:
        routeName - String; name of the route
        startNode - NodeData; data of the start node of the route
        endNode - NodeData; data of the end node of the route
    • Method Detail

      • getRouteName

        public final String getRouteName()
        Returns:
        routeName
      • getStartNode

        public final NodeData getStartNode()
        Returns:
        startNode
      • getEndNode

        public final NodeData getEndNode()
        Returns:
        endNode
      • getId

        public String getId()
        Specified by:
        getId in interface org.opentrafficsim.base.Identifiable
        Specified by:
        getId in interface RouteDataInterface
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object