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, links, and cross-sections.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()Returns the destination.NodeStrategicalPlanner. getOrigin()Returns 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 Node is a point with an id.Methods in org.opentrafficsim.core.network that return Node Modifier and Type Method Description NodeLink. getEndNode()NodeOTSLink. getEndNode()NodeNetwork. getNode(java.lang.String nodeId)Retrieve a node with a given id from the network, or null if the id cannot be found.NodeOTSNetwork. getNode(java.lang.String nodeId)Retrieve a node with a given id from the network, or null if the id cannot be found.NodeLinkDirection. getNodeFrom()NodeLinkDirection. getNodeTo()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()ImmutableMap<java.lang.String,Node>Network. getNodeMap()Provide an immutable map of node ids to nodes in the network.ImmutableMap<java.lang.String,Node>OTSNetwork. getNodeMap()Provide an immutable map of node ids to nodes in the network.java.util.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 the network.voidOTSNetwork. addNode(Node node)Register a node in the network.booleanNetwork. containsNode(Node node)Test whether a node is present in the network.booleanOTSNetwork. containsNode(Node node)Test whether a node is present in the network.LinkNetwork. getLink(Node node1, Node node2)Find a link between node1 and node2 and return it if it exists in the network.LinkOTSNetwork. getLink(Node node1, Node node2)Find a link between node1 and node2 and return it if it exists in the network.java.util.Set<Route>Network. getRoutesBetween(GTUType gtuType, Node nodeFrom, Node nodeTo)Return the the shortest route between two nodes in the network, via a list of intermediate nodes.java.util.Set<Route>OTSNetwork. getRoutesBetween(GTUType gtuType, Node nodeFrom, Node nodeTo)Return the the shortest route between two nodes in the network, via a list of intermediate nodes.default CompleteRouteNetwork. getShortestRouteBetween(GTUType gtuType, Node nodeFrom, Node nodeTo)Calculate the shortest route between two nodes in the network.default CompleteRouteNetwork. getShortestRouteBetween(GTUType gtuType, Node nodeFrom, Node nodeTo, java.util.List<Node> nodesVia)Calculate the shortest route between two nodes in the network, via a list of intermediate nodes.CompleteRouteNetwork. getShortestRouteBetween(GTUType gtuType, Node nodeFrom, Node nodeTo, java.util.List<Node> nodesVia, LinkWeight linkWeight)Calculate the shortest route between two nodes in the 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 the network.CompleteRouteOTSNetwork. getShortestRouteBetween(GTUType gtuType, Node nodeFrom, Node nodeTo, java.util.List<Node> nodesVia)Calculate the shortest route between two nodes in the network, via a list of intermediate nodes.CompleteRouteOTSNetwork. getShortestRouteBetween(GTUType gtuType, Node nodeFrom, Node nodeTo, java.util.List<Node> nodesVia, LinkWeight linkWeight)Calculate the shortest route between two nodes in the 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 the network.booleanNode. isDirectionallyConnectedTo(GTUType gtuType, Node toNode)Check if the current node is linked to the given 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 the network.voidOTSNetwork. removeNode(Node node)Unregister a node from the 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, java.util.List<Node> nodesVia)Calculate the shortest route between two nodes in the network, via a list of intermediate nodes.CompleteRouteNetwork. getShortestRouteBetween(GTUType gtuType, Node nodeFrom, Node nodeTo, java.util.List<Node> nodesVia, LinkWeight linkWeight)Calculate the shortest route between two nodes in the network, via a list of intermediate nodes.CompleteRouteOTSNetwork. getShortestRouteBetween(GTUType gtuType, Node nodeFrom, Node nodeTo, java.util.List<Node> nodesVia)Calculate the shortest route between two nodes in the network, via a list of intermediate nodes.CompleteRouteOTSNetwork. getShortestRouteBetween(GTUType gtuType, Node nodeFrom, Node nodeTo, java.util.List<Node> nodesVia, LinkWeight linkWeight)Calculate the shortest route between two nodes in the network, via a list of intermediate nodes.Constructors in org.opentrafficsim.core.network with parameters of type Node Constructor Description CapacityOTSLink(Network network, java.lang.String id, Node startNode, Node endNode, LinkType linkType, OTSLine3D designLine, Frequency capacity)Construct a new link.OTSLink(Network network, java.lang.String id, Node startNode, Node endNode, LinkType linkType, OTSLine3D designLine)Construct a new link. -
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()NodeRoute. getNode(int i)NodeRoute. originNode()Methods in org.opentrafficsim.core.network.route that return types with arguments of type Node Modifier and Type Method Description java.util.List<Node>Route. getNodes()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.RouteRoute. addNode(Node node)Add a node to the end of the node list.booleanRoute. contains(Node 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(java.lang.String id, GTUType gtuType, java.util.List<Node> nodes)Create a route based on an initial list of nodes.Route(java.lang.String id, java.util.List<Node> nodes)Create a route based on an initial list of nodes.
-