| Package | Description |
|---|---|
| org.opentrafficsim.core.gtu |
GTU (Generalized Travel Unit) is the base class for cars, trains, pedestrians, etc.
|
| 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.
|
| Modifier and Type | Field and Description |
|---|---|
static GTUType |
GTUType.ALL
ALL GTUType to be used only for permeability and accessibility.
|
static GTUType |
GTUType.NONE
NONE GTUType to be used only for permeability and accessibility.
|
| Modifier and Type | Method and Description |
|---|---|
GTUType |
TemplateGTUType.getGtuType() |
GTUType |
GTU.getGTUType() |
GTUType |
AbstractGTU.getGTUType() |
static GTUType |
GTUType.makeGTUType(String id)
Construct a new GTUType or (if it already exists) return an existing GTUType.
|
| Constructor and Description |
|---|
AbstractGTU(String id,
GTUType gtuType,
OTSDEVSSimulatorInterface simulator,
StrategicalPlanner strategicalPlanner,
Perception perception,
DirectedPoint initialLocation,
org.djunits.value.vdouble.scalar.Speed initialSpeed,
PerceivableContext perceivableContext) |
AbstractLinkBasedGTU(String id,
GTUType gtuType,
OTSDEVSSimulatorInterface simulator,
StrategicalPlanner strategicalPlanner,
Perception perception,
DirectedPoint initialLocation,
org.djunits.value.vdouble.scalar.Speed initialSpeed,
OTSNetwork network) |
| Modifier and Type | Method and Description |
|---|---|
LinkDirection |
StrategicalPlanner.nextLinkDirection(Link link,
GTUDirectionality direction,
GTUType gtuType)
Determine the next link and driving direction (with or against the design line) in a network based on a current Link we
are on.
|
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(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 |
|---|---|
void |
LinkType.addCompatibility(GTUType gtuType) |
void |
OTSNode.addConnection(GTUType gtuType,
Link incomingLink,
Link outgoingLink)
Add a single connection for a GTU type to the connections map.
|
void |
OTSNode.addConnections(GTUType gtuType,
Link incomingLink,
Set<Link> outgoingLinks)
Add a set of connections for a GTU type to the connections map.
|
void |
OTSLink.addDirectionality(GTUType gtuType,
LongitudinalDirectionality directionality)
This method sets the directionality of the link for a GTU type.
|
void |
Link.addDirectionality(GTUType gtuType,
LongitudinalDirectionality directionality)
This method sets the directionality of the link for a GTU type.
|
void |
OTSNetwork.addRoute(GTUType gtuType,
Route route)
Add a route to the network.
|
void |
Network.addRoute(GTUType gtuType,
Route route)
Add a route to the network.
|
void |
OTSNetwork.buildGraph(GTUType gtuType)
(Re)build the underlying graph for the given GTUType.
|
void |
Network.buildGraph(GTUType gtuType)
(Re)build the underlying graph for the given GTUType.
|
boolean |
OTSNetwork.containsRoute(GTUType gtuType,
Route route)
Determine whether the provided route exists in the network for the given GTUType.
|
boolean |
Network.containsRoute(GTUType gtuType,
Route route)
Determine whether the provided route exists in the network for the given GTUType.
|
boolean |
OTSNetwork.containsRoute(GTUType gtuType,
String routeId)
Determine whether a route with the given id exists in the network for the given GTUType.
|
boolean |
Network.containsRoute(GTUType gtuType,
String routeId)
Determine whether a route with the given id exists in the network for the given GTUType.
|
Map<String,Route> |
OTSNetwork.getDefinedRouteMap(GTUType gtuType)
Return a defensive copy of the defined routes that exist in the network for the GTUType.
|
Map<String,Route> |
Network.getDefinedRouteMap(GTUType gtuType)
Return a defensive copy of the defined routes that exist in the network for the GTUType.
|
LongitudinalDirectionality |
OTSLink.getDirectionality(GTUType gtuType)
This method returns the directionality of the link for a GTU type.
|
LongitudinalDirectionality |
Link.getDirectionality(GTUType gtuType)
This method returns the directionality of the link for a GTU type.
|
Route |
OTSNetwork.getRoute(GTUType gtuType,
String routeId)
Return the route with the given id in the network for the given GTUType, or null if it the route with the id does not
exist.
|
Route |
Network.getRoute(GTUType gtuType,
String routeId)
Return the route with the given id in the network for the given GTUType, or null if it the route with the id does not
exist.
|
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 |
LinkType.isCompatible(GTUType 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.
|
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.
|
Set<Link> |
OTSNode.nextLinks(GTUType gtuType,
Link prevLink)
Determine the links connecting from the previous link via this Node for the given GTU type.
|
Set<Link> |
Node.nextLinks(GTUType gtuType,
Link prevLink)
Determine the links connecting from the previous link via this Node for the given GTU type.
|
void |
OTSLink.removeDirectionality(GTUType gtuType)
This method removes an earlier provided directionality of the link for a given GTU type, e.g.
|
void |
Link.removeDirectionality(GTUType gtuType)
This method removes an earlier provided directionality of the link for a given GTU type, e.g.
|
void |
OTSNetwork.removeRoute(GTUType gtuType,
Route route)
Remove the route from the network, e.g.
|
void |
Network.removeRoute(GTUType gtuType,
Route route)
Remove the route from the network, e.g.
|
| Constructor and Description |
|---|
CapacityOTSLink(String id,
OTSNode startNode,
OTSNode endNode,
LinkType linkType,
OTSLine3D designLine,
org.djunits.value.vdouble.scalar.Frequency capacity,
Map<GTUType,LongitudinalDirectionality> directionalityMap)
Construct a new link.
|
OTSLink(String id,
OTSNode startNode,
OTSNode endNode,
LinkType linkType,
OTSLine3D designLine,
Map<GTUType,LongitudinalDirectionality> directionalityMap)
Construct a new link.
|
| Constructor and Description |
|---|
CompleteRoute(String id,
GTUType gtuType)
Create an empty route for the given GTUType.
|
CompleteRoute(String id,
GTUType gtuType,
List<Node> nodes)
Create a route based on an initial list of nodes.
|
Copyright © 2014–2016 Delft University of Technology. All rights reserved.