| 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.animation |
Animation for Links, Lanes, Nodes.
|
| org.opentrafficsim.core.network.route |
Routes and route probabilities.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
| Modifier and Type | Method and 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.
|
| Modifier and Type | Class and Description |
|---|---|
class |
OTSNode
The Node is a point with an id.
|
| Modifier and Type | Method and Description |
|---|---|
Node |
OTSLink.getEndNode() |
Node |
Link.getEndNode() |
Node |
OTSNetwork.getNode(String nodeId)
Retrieve a node with a given id from the network, or null if the id cannot be found.
|
Node |
Network.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 |
OTSLink.getStartNode() |
Node |
Link.getStartNode() |
| Modifier and Type | Method and Description |
|---|---|
ImmutableMap<String,Node> |
OTSNetwork.getNodeMap()
Provide an immutable map of node ids to nodes in the network.
|
ImmutableMap<String,Node> |
Network.getNodeMap()
Provide an immutable map of node ids to nodes in the network.
|
| Modifier and Type | Method and Description |
|---|---|
void |
OTSNetwork.addNode(Node node)
Register a node in the network.
|
void |
Network.addNode(Node node)
Register a node in the network.
|
boolean |
OTSNetwork.containsNode(Node node)
Test whether a node is present in the network.
|
boolean |
Network.containsNode(Node node)
Test whether a node is present 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.
|
Link |
Network.getLink(Node node1,
Node node2)
Find a link between node1 and node2 and return it if it exists in the network.
|
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.
|
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.
|
CompleteRoute |
OTSNetwork.getShortestRouteBetween(GTUType gtuType,
Node nodeFrom,
Node nodeTo)
Calculate the shortest route between two nodes in the network.
|
CompleteRoute |
Network.getShortestRouteBetween(GTUType gtuType,
Node nodeFrom,
Node nodeTo)
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 |
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.
|
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.
|
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.
|
void |
OTSNetwork.removeNode(Node node)
Unregister a node from the network.
|
void |
Network.removeNode(Node node)
Unregister a node from the network.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
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.
|
| Constructor and Description |
|---|
CapacityOTSLink(Network network,
String id,
Node startNode,
Node endNode,
LinkType linkType,
OTSLine3D designLine,
org.djunits.value.vdouble.scalar.Frequency capacity,
LongitudinalDirectionality directionality)
Construct a new link, with a directionality for all GTUs as provided.
|
CapacityOTSLink(Network network,
String id,
Node startNode,
Node endNode,
LinkType linkType,
OTSLine3D designLine,
org.djunits.value.vdouble.scalar.Frequency capacity,
Map<GTUType,LongitudinalDirectionality> directionalityMap)
Construct a new link.
|
OTSLink(Network network,
String id,
Node startNode,
Node endNode,
LinkType linkType,
OTSLine3D designLine,
LongitudinalDirectionality directionality)
Construct a new link, with a directionality for all GTUs as provided.
|
OTSLink(Network network,
String id,
Node startNode,
Node endNode,
LinkType linkType,
OTSLine3D designLine,
Map<GTUType,LongitudinalDirectionality> directionalityMap)
Construct a new link.
|
| Constructor and Description |
|---|
NodeAnimation(Node node,
OTSSimulatorInterface simulator) |
| Modifier and Type | Method and Description |
|---|---|
Node |
Route.destinationNode() |
Node |
Route.getNode(int i) |
Node |
Route.originNode() |
| Modifier and Type | Method and Description |
|---|---|
List<Node> |
Route.getNodes() |
| Modifier and Type | Method and Description |
|---|---|
void |
Route.addNode(Node node)
Add a node to the end of the node list.
|
void |
CompleteRoute.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 and 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.
|
Copyright © 2014–2016 Delft University of Technology. All rights reserved.