Uses of Interface
org.opentrafficsim.core.network.Node
-
Packages that use Node Package Description org.opentrafficsim.core.gtu.plan.strategical Strategical planners.org.opentrafficsim.core.network Classes that build a network with nodes and links.org.opentrafficsim.core.network.route Routes and route probabilities. -
-
Uses of Node in org.opentrafficsim.core.gtu.plan.strategical
Methods in org.opentrafficsim.core.gtu.plan.strategical that return Node Modifier and Type Method Description NodeStrategicalPlanner. getDestination()Retrieve the destination.NodeStrategicalPlanner. getOrigin()Retrieve the origin.NodeStrategicalPlanner. nextNode(Link link, GtuDirectionality direction, GtuType gtuType)Determine the next node in a network based on a current Link we are on.NodeStrategicalPlanner. nextNode(Node node, Link previousLink, GtuType gtuType)Determine the next node in a network based on a given node.Methods in org.opentrafficsim.core.gtu.plan.strategical with parameters of type Node Modifier and Type Method Description LinkDirectionStrategicalPlanner. nextLinkDirection(Node node, Link previousLink, GtuType gtuType)Determine the next link and driving direction (with or against the design line) in a network based on a node and a driving direction of the GTU.NodeStrategicalPlanner. nextNode(Node node, Link previousLink, GtuType gtuType)Determine the next node in a network based on a given node. -
Uses of Node in org.opentrafficsim.core.network
Classes in org.opentrafficsim.core.network that implement Node Modifier and Type Class Description classOTSNodeThe OTSNode is a point with a heading and an id.Methods in org.opentrafficsim.core.network that return Node Modifier and Type Method Description NodeLink. getEndNode()NodeOTSLink. getEndNode()NodeNetwork. getNode(String nodeId)Retrieve a node with a given id from this Network, or null if the id cannot be found.NodeOTSNetwork. getNode(String nodeId)Retrieve a node with a given id from this Network, or null if the id cannot be found.NodeLinkDirection. getNodeFrom()Retrieve the origin node of this LinkDirection.NodeLinkDirection. getNodeTo()Retrieve the destination node of this LinkDirection.NodeLink. getStartNode()NodeOTSLink. getStartNode()Methods in org.opentrafficsim.core.network that return types with arguments of type Node Modifier and Type Method Description ImmutableMap<GtuType,org.jgrapht.graph.SimpleDirectedWeightedGraph<Node,LinkEdge<Link>>>OTSNetwork. getLinkGraphs()Get an immutable graph map.ImmutableMap<String,Node>Network. getNodeMap()Return an immutable map of node ids to nodes in this Network.ImmutableMap<String,Node>OTSNetwork. getNodeMap()Return an immutable map of node ids to nodes in this Network.List<Node>OTSNetwork. getUnbalancedCentroids(GtuType gtuType)Return a list of Centroid nodes that have incoming connectors without corresponding outgoing connectors to the same node or vice versa (which can be fully okay, especially when the lanes are a dead end, or when lanes / links only go in a single direction).Methods in org.opentrafficsim.core.network with parameters of type Node Modifier and Type Method Description voidNetwork. addNode(Node node)Register a node in this Network.voidOTSNetwork. addNode(Node node)Register a node in this Network.booleanNetwork. containsNode(Node node)Test whether a node is present in this Network.booleanOTSNetwork. containsNode(Node node)Test whether a node is present in this Network.LinkNetwork. getLink(Node node1, Node node2)Find a link between node1 and node2 and return it if it exists in this Network.LinkOTSNetwork. getLink(Node node1, Node node2)Find a link between node1 and node2 and return it if it exists in this Network.Set<Route>Network. getRoutesBetween(GtuType gtuType, Node nodeFrom, Node nodeTo)Return the the shortest route for a specific GTUType between two nodes in this Network, via a list of intermediate nodes.Set<Route>OTSNetwork. getRoutesBetween(GtuType gtuType, Node nodeFrom, Node nodeTo)Return the the shortest route for a specific GTUType between two nodes in this Network, via a list of intermediate nodes.default CompleteRouteNetwork. getShortestRouteBetween(GtuType gtuType, Node nodeFrom, Node nodeTo)Calculate the shortest route between two nodes in this Network.default CompleteRouteNetwork. getShortestRouteBetween(GtuType gtuType, Node nodeFrom, Node nodeTo, List<Node> nodesVia)Calculate the shortest route between two nodes in this Network, via a list of intermediate nodes.CompleteRouteNetwork. getShortestRouteBetween(GtuType gtuType, Node nodeFrom, Node nodeTo, List<Node> nodesVia, LinkWeight linkWeight)Calculate the shortest route between two nodes in this Network, via a list of intermediate nodes.CompleteRouteNetwork. getShortestRouteBetween(GtuType gtuType, Node nodeFrom, Node nodeTo, LinkWeight linkWeight)Calculate the shortest route between two nodes in this Network.CompleteRouteOTSNetwork. getShortestRouteBetween(GtuType gtuType, Node nodeFrom, Node nodeTo, List<Node> nodesVia)Calculate the shortest route between two nodes in this Network, via a list of intermediate nodes.CompleteRouteOTSNetwork. getShortestRouteBetween(GtuType gtuType, Node nodeFrom, Node nodeTo, List<Node> nodesVia, LinkWeight linkWeight)Calculate the shortest route between two nodes in this Network, via a list of intermediate nodes.CompleteRouteOTSNetwork. getShortestRouteBetween(GtuType gtuType, Node nodeFrom, Node nodeTo, LinkWeight linkWeight)Calculate the shortest route between two nodes in this Network.booleanNode. isDirectionallyConnectedTo(GtuType gtuType, Node toNode)Check if this Node is linked to a specific Node in the specified direction for the given GTUType.booleanOTSNode. isDirectionallyConnectedTo(GtuType gtuType, Node toNode)Note: this method does not take into account explicitly defined connections, as the previous link is not given.voidNetwork. removeNode(Node node)Unregister a node from this Network.voidOTSNetwork. removeNode(Node node)Unregister a node from this Network.Method parameters in org.opentrafficsim.core.network with type arguments of type Node Modifier and Type Method Description default CompleteRouteNetwork. getShortestRouteBetween(GtuType gtuType, Node nodeFrom, Node nodeTo, List<Node> nodesVia)Calculate the shortest route between two nodes in this Network, via a list of intermediate nodes.CompleteRouteNetwork. getShortestRouteBetween(GtuType gtuType, Node nodeFrom, Node nodeTo, List<Node> nodesVia, LinkWeight linkWeight)Calculate the shortest route between two nodes in this Network, via a list of intermediate nodes.CompleteRouteOTSNetwork. getShortestRouteBetween(GtuType gtuType, Node nodeFrom, Node nodeTo, List<Node> nodesVia)Calculate the shortest route between two nodes in this Network, via a list of intermediate nodes.CompleteRouteOTSNetwork. getShortestRouteBetween(GtuType gtuType, Node nodeFrom, Node nodeTo, List<Node> nodesVia, LinkWeight linkWeight)Calculate the shortest route between two nodes in this Network, via a list of intermediate nodes.Constructors in org.opentrafficsim.core.network with parameters of type Node Constructor Description CapacityOTSLink(Network network, String id, Node startNode, Node endNode, LinkType linkType, PolyLine3d designLine, Frequency capacity)Construct a new CapacityOTSLink.OTSLink(Network network, String id, Node startNode, Node endNode, LinkType linkType, PolyLine3d designLine)Construct a new OTSLink and register it in a Network. -
Uses of Node in org.opentrafficsim.core.network.route
Methods in org.opentrafficsim.core.network.route that return Node Modifier and Type Method Description NodeRoute. destinationNode()Retrieve the last Node of this Route.NodeRoute. getNode(int i)Retrieve one Node of this Route.NodeRoute. originNode()Retrieve the origin node of this Route.Methods in org.opentrafficsim.core.network.route that return types with arguments of type Node Modifier and Type Method Description List<Node>Route. getNodes()Retrieve the Node List of this Route.Methods in org.opentrafficsim.core.network.route with parameters of type Node Modifier and Type Method Description CompleteRouteCompleteRoute. addNode(Node node)Add a node to the end of the node list of this Route.RouteRoute. addNode(Node node)Add a node to the end of the node list of this Route.booleanRoute. contains(Node node)Indicate if this Route contains a specific Node.intRoute. indexOf(Node node)Return the index of a Node in this Route, or -1 if this Route does not contain the specified Node.Constructor parameters in org.opentrafficsim.core.network.route with type arguments of type Node Constructor Description CompleteRoute(String id, GtuType gtuType, List<Node> nodes)Construct a new CompleteRoute for a specific GTUType, based on an initial list of nodes.Route(String id, List<Node> nodes)Construct a new Route based on an initial list of nodes.
-