Package | Description |
---|---|
org.opentrafficsim.core.compatibility |
Compatibility package.
|
org.opentrafficsim.core.definitions |
The definitions package contains the core definitions that can be used to interpret the Network and the PerceivableContext.
|
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.
|
org.opentrafficsim.core.parameters |
Objects involving parameters.
|
Modifier and Type | Class and Description |
---|---|
class |
GTUCompatibility<I extends HierarchicalType<I> & Compatibility<GTUType,I>>
Directional GTUType dependent compatibility.
|
Modifier and Type | Method and Description |
---|---|
GTUCompatibility<I> |
GTUCompatibility.addAllowedGTUType(GTUType gtuType,
LongitudinalDirectionality directionality)
Add a GTUType to this GTUCompatibility.
|
LongitudinalDirectionality |
GTUCompatibility.getDirectionality(GTUType gtuType,
boolean tryParentsOfGTUType)
Retrieve the allowed driving directions for a GTUType.
|
Boolean |
GTUCompatibility.isCompatible(GTUType gtuType,
GTUDirectionality directionality)
Determine if this Compatibility allows or denies a particular GTUType.
|
boolean |
Compatible.isCompatible(GTUType gtuType,
GTUDirectionality directionality)
Test if a GTUType is handled by the infrastructure in the given direction.
|
GTUCompatibility<I> |
GTUCompatibility.removeAllowedGTUType(GTUType gtuType,
LongitudinalDirectionality directionality)
Remove a GTUType from the allowed set of this Compatibility.
|
Modifier and Type | Method and Description |
---|---|
void |
GTUCompatibility.isCompatibleWith(Compatibility<GTUType,?> parentCompatibility,
boolean tryParentsOfGTUType)
Check if a GTUCompatibility does not allow things that the GTUCompatibility of a parent object disallows, e.g.
|
Modifier and Type | Method and Description |
---|---|
GTUType |
Definitions.getGtuType(GTUType.DEFAULTS gtuEnum)
Retrieve a defined default GTUType based on its enum.
|
GTUType |
Definitions.getGtuType(String gtuId)
Retrieve a defined GTUType based on its id.
|
Modifier and Type | Method and Description |
---|---|
ImmutableMap<String,GTUType> |
Definitions.getGtuTypes()
Retrieve a safe copy of the map of defined GTUTypes in this network.
|
Modifier and Type | Method and Description |
---|---|
void |
Definitions.addGtuType(GTUType gtuType)
Add a GTU type to the map.
|
Modifier and Type | Method and Description |
---|---|
GTUType |
TemplateGTUType.getGTUType() |
GTUType |
GTUCharacteristics.getGTUType()
Retrieve the GTU type.
|
GTUType |
GTU.getGTUType() |
GTUType |
AbstractGTU.getGTUType() |
Modifier and Type | Method and Description |
---|---|
static GTUCharacteristics |
GTUType.defaultCharacteristics(GTUType gtuType,
Network network,
StreamInterface randomStream)
Returns default characteristics for given GTUType.
|
Constructor and Description |
---|
AbstractGTU(IdGenerator idGenerator,
GTUType gtuType,
OTSSimulatorInterface simulator,
PerceivableContext perceivableContext) |
AbstractGTU(String id,
GTUType gtuType,
OTSSimulatorInterface simulator,
PerceivableContext perceivableContext) |
AbstractLinkBasedGTU(String id,
GTUType gtuType,
OTSSimulatorInterface simulator,
OTSNetwork network) |
GTUCharacteristics(GTUType gtuType,
Length length,
Length width,
Speed maximumSpeed,
Acceleration maximumAcceleration,
Acceleration maximumDeceleration,
Length front)
Construct a new set of GTUCharacteristics.
|
GTUType(String id,
GTUType parent) |
TemplateGTUType(GTUType gtuType,
Generator<Length> lengthGenerator,
Generator<Length> widthGenerator,
Generator<Speed> maximumSpeedGenerator) |
TemplateGTUType(GTUType gtuType,
Generator<Length> lengthGenerator,
Generator<Length> widthGenerator,
Generator<Speed> maximumSpeedGenerator,
Generator<Acceleration> maximumAccelerationGenerator,
Generator<Acceleration> maximumDecelerationGenerator) |
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 |
---|---|
GTUType |
OTSNetwork.getGtuType(GTUType.DEFAULTS gtuEnum)
Retrieve a defined default GTUType based on its enum.
|
GTUType |
OTSNetwork.getGtuType(String gtuId)
Retrieve a defined GTUType based on its id.
|
Modifier and Type | Method and Description |
---|---|
ImmutableMap<String,GTUType> |
OTSNetwork.getGtuTypes()
Retrieve a safe copy of the map of defined GTUTypes in this network.
|
ImmutableMap<GTUType,SimpleDirectedWeightedGraph<Node,LinkEdge<Link>>> |
OTSNetwork.getLinkGraphs() |
ImmutableMap<GTUType,Map<String,Route>> |
OTSNetwork.getRouteMap() |
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 |
OTSNetwork.addGtuType(GTUType gtuType)
Add a GTU type to the map.
|
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.
|
LongitudinalDirectionality |
LinkType.getDirectionality(GTUType gtuType,
boolean tryParentsOfGTUType)
Retrieve the allowed driving directions for a GTUType.
|
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.
|
default 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,
LinkWeight linkWeight)
Calculate the shortest route between two nodes in the network.
|
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.
|
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 |
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 |
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.
|
Boolean |
LinkType.isCompatible(GTUType gtuType,
GTUDirectionality directionality)
Test if a GTUType can travel over the infrastructure.
|
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 |
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.
|
Modifier and Type | Method and Description |
---|---|
void |
OTSNetwork.setRawRouteMap(Map<GTUType,Map<String,Route>> newRouteMap) |
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.
|
Modifier and Type | Method and Description |
---|---|
<C,T> void |
ParameterFactoryByType.addCorrelation(GTUType gtuType,
ParameterType<C> first,
ParameterType<T> then,
ParameterFactoryByType.Correlation<C,T> correlation)
Correlates one parameter to another.
|
void |
ParameterFactoryByType.addParameter(GTUType gtuType,
ParameterType<Double> parameterType,
DistContinuous distribution) |
void |
ParameterFactoryByType.addParameter(GTUType gtuType,
ParameterType<Integer> parameterType,
DistDiscrete distribution) |
<T> void |
ParameterFactoryByType.addParameter(GTUType gtuType,
ParameterType<T> parameterType,
T value) |
<U extends Unit<U>,T extends AbstractDoubleScalarRel<U,T>> |
ParameterFactoryByType.addParameter(GTUType gtuType,
ParameterTypeNumeric<T> parameterType,
ContinuousDistDoubleScalar.Rel<T,U> distribution) |
void |
ParameterFactoryDefault.setValues(Parameters parameters,
GTUType gtuType)
Creates a set of parameters for the provided GTU type.
|
void |
ParameterFactoryByType.setValues(Parameters parameters,
GTUType gtuType)
Creates a set of parameters for the provided GTU type.
|
void |
ParameterFactory.setValues(Parameters parameters,
GTUType gtuType)
Creates a set of parameters for the provided GTU type.
|
Copyright © 2014–2019 Delft University of Technology. All rights reserved.