| Package | Description |
|---|---|
| org.opentrafficsim.core.gtu |
GTU (Generalized Travel Unit) is the base class for cars, trains, pedestrians, etc.
|
| org.opentrafficsim.core.gtu.behavioralcharacteristics |
List of behavioral characteristics in the form of parameters.
|
| 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.BIKE
Super type for bikes.
|
static GTUType |
GTUType.BOAT
Super type for boats.
|
static GTUType |
GTUType.NONE
NONE GTUType to be used only for permeability and accessibility.
|
static GTUType |
GTUType.PEDESTRIAN
Super type for pedestrians.
|
static GTUType |
GTUType.TRAIN
Super type for trains.
|
static GTUType |
GTUType.VEHICLE
Super type for vehicles.
|
| Modifier and Type | Method and Description |
|---|---|
GTUType |
TemplateGTUType.getGTUType() |
GTUType |
GTUCharacteristics.getGTUType()
Retrieve the GTU type.
|
GTUType |
GTU.getGTUType() |
GTUType |
AbstractGTU.getGTUType() |
GTUType |
GTUType.getParent() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
GTUType.isOfType(GTUType gtuType)
Whether this, or any of the parent GTU types, equals the given GTU type.
|
| Constructor and Description |
|---|
AbstractGTU(IdGenerator idGenerator,
GTUType gtuType,
OTSDEVSSimulatorInterface simulator,
PerceivableContext perceivableContext) |
AbstractGTU(String id,
GTUType gtuType,
OTSDEVSSimulatorInterface simulator,
PerceivableContext perceivableContext) |
AbstractLinkBasedGTU(String id,
GTUType gtuType,
OTSDEVSSimulatorInterface simulator,
OTSNetwork network) |
GTUCharacteristics(GTUType gtuType,
IdGenerator idGenerator,
org.djunits.value.vdouble.scalar.Length length,
org.djunits.value.vdouble.scalar.Length width,
org.djunits.value.vdouble.scalar.Speed maximumSpeed,
OTSDEVSSimulatorInterface simulator,
OTSNetwork network)
Construct a new set of GTUCharacteristics.
|
GTUType(String id,
GTUType parent) |
TemplateGTUType(GTUType gtuType,
IdGenerator idGenerator,
Generator<org.djunits.value.vdouble.scalar.Length> lengthGenerator,
Generator<org.djunits.value.vdouble.scalar.Length> widthGenerator,
Generator<org.djunits.value.vdouble.scalar.Speed> maximumSpeedGenerator,
OTSDEVSSimulatorInterface simulator,
OTSNetwork network) |
| Modifier and Type | Method and Description |
|---|---|
<U extends org.djunits.unit.Unit<U>,T extends org.djunits.value.vdouble.scalar.AbstractDoubleScalarRel<U,T>> |
BehavioralCharacteristicsFactoryByType.addGaussianParameter(GTUType gtuType,
ParameterType<T> parameterType,
T mu,
T sig,
StreamInterface stream) |
void |
BehavioralCharacteristicsFactoryByType.addGaussianParameter(GTUType gtuType,
ParameterTypeDouble parameterType,
double mu,
double sig,
StreamInterface stream) |
<T extends org.djunits.value.vdouble.scalar.DoubleScalarInterface> |
BehavioralCharacteristicsFactoryByType.addParameter(GTUType gtuType,
ParameterType<T> parameterType,
T value) |
void |
BehavioralCharacteristicsFactoryByType.addParameter(GTUType gtuType,
ParameterTypeDouble parameterType,
double value) |
void |
BehavioralCharacteristicsFactoryDefault.setValues(BehavioralCharacteristics defaultCharacteristics,
GTUType gtuType)
Creates a set of behavioral characteristics for the provided GTU type.
|
void |
BehavioralCharacteristicsFactoryByType.setValues(BehavioralCharacteristics defaultCharacteristics,
GTUType gtuType)
Creates a set of behavioral characteristics for the provided GTU type.
|
void |
BehavioralCharacteristicsFactory.setValues(BehavioralCharacteristics defaultCharacteristics,
GTUType gtuType)
Creates a set of behavioral characteristics for the provided GTU type.
|
| 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 |
|---|---|
protected Map<GTUType,LongitudinalDirectionality> |
OTSLink.getDirectionalityMap() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
ImmutableMap<String,Route> |
OTSNetwork.getDefinedRouteMap(GTUType gtuType)
Return an immutable map of routes that exist in the network for the GTUType.
|
ImmutableMap<String,Route> |
Network.getDefinedRouteMap(GTUType gtuType)
Return an immutable map of 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(Network network,
String id,
Node startNode,
Node endNode,
LinkType linkType,
OTSLine3D designLine,
OTSSimulatorInterface simulator,
org.djunits.value.vdouble.scalar.Frequency capacity,
Map<GTUType,LongitudinalDirectionality> directionalityMap)
Construct a new link.
|
LinkType(String id,
Collection<GTUType> compatibility)
Create a new Link type with an immutable compatibility set.
|
OTSLink(Network network,
String id,
Node startNode,
Node endNode,
LinkType linkType,
OTSLine3D designLine,
OTSSimulatorInterface simulator,
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–2017 Delft University of Technology. All rights reserved.