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 Node
StrategicalPlanner. getDestination()
Returns the destination.Node
StrategicalPlanner. getOrigin()
Returns the origin.Node
StrategicalPlanner. nextNode(Link link, GTUDirectionality direction, GTUType gtuType)
Determine the next node in a network based on a current Link we are on.Node
StrategicalPlanner. 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 LinkDirection
StrategicalPlanner. 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.Node
StrategicalPlanner. 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 class
OTSNode
The Node is a point with an id.Methods in org.opentrafficsim.core.network that return Node Modifier and Type Method Description Node
Link. getEndNode()
Node
OTSLink. getEndNode()
Node
Network. getNode(String nodeId)
Retrieve a node with a given id from the network, or null if the id cannot be found.Node
OTSNetwork. getNode(String nodeId)
Retrieve a node with a given id from the network, or null if the id cannot be found.Node
LinkDirection. getNodeFrom()
Node
LinkDirection. getNodeTo()
Node
Link. getStartNode()
Node
OTSLink. 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<String,Node>
Network. getNodeMap()
Provide an immutable map of node ids to nodes in the network.ImmutableMap<String,Node>
OTSNetwork. getNodeMap()
Provide an immutable map of node ids to nodes in the network.(package private) Map<GTUType,org.jgrapht.graph.SimpleDirectedWeightedGraph<Node,LinkEdge<Link>>>
OTSNetwork. getRawLinkGraphs()
(package private) Map<String,Node>
OTSNetwork. getRawNodeMap()
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 void
Network. addNode(Node node)
Register a node in the network.void
OTSNetwork. addNode(Node node)
Register a node in the network.boolean
Network. containsNode(Node node)
Test whether a node is present in the network.boolean
OTSNetwork. containsNode(Node node)
Test whether a node is present in the network.Link
Network. getLink(Node node1, Node node2)
Find a link between node1 and node2 and return it if it exists in the network.Link
OTSNetwork. getLink(Node node1, Node node2)
Find a link between node1 and node2 and return it if it exists in the network.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.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 CompleteRoute
Network. getShortestRouteBetween(GTUType gtuType, Node nodeFrom, Node nodeTo)
Calculate the shortest route between two nodes in the network.default CompleteRoute
Network. getShortestRouteBetween(GTUType gtuType, Node nodeFrom, Node nodeTo, List<Node> nodesVia)
Calculate the shortest route between two nodes in the network, via a list of intermediate nodes.CompleteRoute
Network. getShortestRouteBetween(GTUType gtuType, Node nodeFrom, Node nodeTo, List<Node> nodesVia, LinkWeight linkWeight)
Calculate the shortest route between two nodes in the network, via a list of intermediate nodes.CompleteRoute
Network. getShortestRouteBetween(GTUType gtuType, Node nodeFrom, Node nodeTo, LinkWeight linkWeight)
Calculate the shortest route between two nodes in the network.CompleteRoute
OTSNetwork. getShortestRouteBetween(GTUType gtuType, Node nodeFrom, Node nodeTo, List<Node> nodesVia)
Calculate the shortest route between two nodes in the network, via a list of intermediate nodes.CompleteRoute
OTSNetwork. getShortestRouteBetween(GTUType gtuType, Node nodeFrom, Node nodeTo, List<Node> nodesVia, LinkWeight linkWeight)
Calculate the shortest route between two nodes in the network, via a list of intermediate nodes.CompleteRoute
OTSNetwork. getShortestRouteBetween(GTUType gtuType, Node nodeFrom, Node nodeTo, LinkWeight linkWeight)
Calculate the shortest route between two nodes in the network.boolean
Node. isDirectionallyConnectedTo(GTUType gtuType, Node toNode)
Check if the current node is linked to the given Node in the specified direction for the given GTUType.boolean
OTSNode. isDirectionallyConnectedTo(GTUType gtuType, Node toNode)
Note: this method does not take into account explicitly defined connections, as the previous link is not given.void
Network. removeNode(Node node)
Unregister a node from the network.void
OTSNetwork. 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 CompleteRoute
Network. getShortestRouteBetween(GTUType gtuType, Node nodeFrom, Node nodeTo, List<Node> nodesVia)
Calculate the shortest route between two nodes in the network, via a list of intermediate nodes.CompleteRoute
Network. getShortestRouteBetween(GTUType gtuType, Node nodeFrom, Node nodeTo, List<Node> nodesVia, LinkWeight linkWeight)
Calculate the shortest route between two nodes in the network, via a list of intermediate nodes.CompleteRoute
OTSNetwork. getShortestRouteBetween(GTUType gtuType, Node nodeFrom, Node nodeTo, List<Node> nodesVia)
Calculate the shortest route between two nodes in the network, via a list of intermediate nodes.CompleteRoute
OTSNetwork. getShortestRouteBetween(GTUType gtuType, Node nodeFrom, Node nodeTo, 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, String id, Node startNode, Node endNode, LinkType linkType, OTSLine3D designLine, Frequency capacity)
Construct a new link.OTSLink(Network network, 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 Node
Route. destinationNode()
Node
Route. getNode(int i)
Node
Route. originNode()
Methods in org.opentrafficsim.core.network.route that return types with arguments of type Node Modifier and Type Method Description List<Node>
Route. getNodes()
Methods in org.opentrafficsim.core.network.route with parameters of type Node Modifier and Type Method Description CompleteRoute
CompleteRoute. addNode(Node node)
Add a node to the end of the node list.Route
Route. addNode(Node node)
Add a node to the end of the node list.boolean
Route. contains(Node node)
int
Route. 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)
Create a route based on an initial list of nodes.Route(String id, List<Node> nodes)
Create a route based on an initial list of nodes.
-