Uses of Class
org.opentrafficsim.core.gtu.GTUType
-
Packages that use GTUType 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. -
-
Uses of GTUType in org.opentrafficsim.core.compatibility
Classes in org.opentrafficsim.core.compatibility with type parameters of type GTUType Modifier and Type Class Description class
GTUCompatibility<I extends HierarchicalType<I> & Compatibility<GTUType,I>>
Directional GTUType dependent compatibility.Methods in org.opentrafficsim.core.compatibility with parameters of type GTUType Modifier and Type Method 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
Compatible. isCompatible(GTUType gtuType, GTUDirectionality directionality)
Test if a GTUType is handled by the infrastructure in the given direction.Boolean
GTUCompatibility. isCompatible(GTUType gtuType, GTUDirectionality directionality)
Determine if this Compatibility allows or denies a particular GTUType.GTUCompatibility<I>
GTUCompatibility. removeAllowedGTUType(GTUType gtuType, LongitudinalDirectionality directionality)
Remove a GTUType from the allowed set of this Compatibility.Method parameters in org.opentrafficsim.core.compatibility with type arguments of type GTUType Modifier and Type Method 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. -
Uses of GTUType in org.opentrafficsim.core.definitions
Methods in org.opentrafficsim.core.definitions that return GTUType Modifier and Type Method Description GTUType
Definitions. getGtuType(String gtuId)
Retrieve a defined GTUType based on its id.GTUType
Definitions. getGtuType(GTUType.DEFAULTS gtuEnum)
Retrieve a defined default GTUType based on its enum.Methods in org.opentrafficsim.core.definitions that return types with arguments of type GTUType Modifier and Type Method Description ImmutableMap<String,GTUType>
Definitions. getGtuTypes()
Retrieve a safe copy of the map of defined GTUTypes in this network.Methods in org.opentrafficsim.core.definitions with parameters of type GTUType Modifier and Type Method Description void
Definitions. addGtuType(GTUType gtuType)
Add a GTU type to the map. -
Uses of GTUType in org.opentrafficsim.core.gtu
Methods in org.opentrafficsim.core.gtu that return GTUType Modifier and Type Method Description GTUType
AbstractGTU. getGTUType()
GTUType
GTU. getGTUType()
GTUType
GTUCharacteristics. getGTUType()
Retrieve the GTU type.GTUType
TemplateGTUType. getGTUType()
Methods in org.opentrafficsim.core.gtu with parameters of type GTUType Modifier and Type Method Description TemplateGTUType
TemplateGTUType. copyForGtuType(GTUType newGtuType)
Returns the same Characteristics, but pertaining to a different GTU type.static GTUCharacteristics
GTUType. defaultCharacteristics(GTUType gtuType, Network network, StreamInterface randomStream)
Returns default characteristics for given GTUType.Constructors in org.opentrafficsim.core.gtu with parameters of type GTUType Constructor Description AbstractGTU(String id, GTUType gtuType, OTSSimulatorInterface simulator, PerceivableContext perceivableContext)
AbstractGTU(IdGenerator idGenerator, GTUType gtuType, OTSSimulatorInterface simulator, PerceivableContext perceivableContext)
AbstractLinkBasedGTU(String id, GTUType gtuType, 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)
-
Uses of GTUType in org.opentrafficsim.core.gtu.plan.strategical
Methods in org.opentrafficsim.core.gtu.plan.strategical with parameters of type GTUType Modifier and Type Method 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. -
Uses of GTUType in org.opentrafficsim.core.network
Methods in org.opentrafficsim.core.network that return GTUType Modifier and Type Method Description GTUType
OTSNetwork. getGtuType(String gtuId)
Retrieve a defined GTUType based on its id.GTUType
OTSNetwork. getGtuType(GTUType.DEFAULTS gtuEnum)
Retrieve a defined default GTUType based on its enum.Methods in org.opentrafficsim.core.network that return types with arguments of type GTUType Modifier and Type Method Description ImmutableMap<String,GTUType>
OTSNetwork. getGtuTypes()
Retrieve a safe copy of the map of defined GTUTypes in this network.ImmutableMap<GTUType,org.jgrapht.graph.SimpleDirectedWeightedGraph<Node,LinkEdge<Link>>>
OTSNetwork. getLinkGraphs()
(package private) Map<GTUType,org.jgrapht.graph.SimpleDirectedWeightedGraph<Node,LinkEdge<Link>>>
OTSNetwork. getRawLinkGraphs()
(package private) Map<GTUType,Map<String,Route>>
OTSNetwork. getRawRouteMap()
ImmutableMap<GTUType,Map<String,Route>>
OTSNetwork. getRouteMap()
Methods in org.opentrafficsim.core.network with parameters of type GTUType Modifier and Type Method 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
Network. addRoute(GTUType gtuType, Route route)
Add a route to the network.void
OTSNetwork. addRoute(GTUType gtuType, Route route)
Add a route to the network.void
Network. buildGraph(GTUType gtuType)
(Re)build the underlying graph for the given GTUType.void
OTSNetwork. buildGraph(GTUType gtuType)
(Re)build the underlying graph 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.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
OTSNetwork. containsRoute(GTUType gtuType, Route route)
Determine whether the provided route exists in the network for the given GTUType.ImmutableMap<String,Route>
Network. getDefinedRouteMap(GTUType gtuType)
Return an immutable map of routes that exist in the network for the GTUType.ImmutableMap<String,Route>
OTSNetwork. getDefinedRouteMap(GTUType gtuType)
Return an immutable map of routes that exist in the network for the GTUType.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.LongitudinalDirectionality
OTSLink. getDirectionality(GTUType gtuType)
This method returns the directionality of the link for a GTU type.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.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.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.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).Boolean
LinkType. isCompatible(GTUType gtuType, GTUDirectionality directionality)
Test if a GTUType can travel over the infrastructure.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.Set<Link>
Node. nextLinks(GTUType gtuType, Link prevLink)
Determine the links connecting from the previous link via this Node for the given GTU type.Set<Link>
OTSNode. nextLinks(GTUType gtuType, Link prevLink)
Determine the links connecting from the previous link via this Node for the given GTU type.void
Network. removeRoute(GTUType gtuType, Route route)
Remove the route from the network, e.g.void
OTSNetwork. removeRoute(GTUType gtuType, Route route)
Remove the route from the network, e.g.Method parameters in org.opentrafficsim.core.network with type arguments of type GTUType Modifier and Type Method Description void
OTSNetwork. setRawRouteMap(Map<GTUType,Map<String,Route>> newRouteMap)
-
Uses of GTUType in org.opentrafficsim.core.network.route
Constructors in org.opentrafficsim.core.network.route with parameters of type GTUType Constructor 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. -
Uses of GTUType in org.opentrafficsim.core.parameters
Methods in org.opentrafficsim.core.parameters with parameters of type GTUType Modifier and Type Method Description <C,T>
voidParameterFactoryByType. 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>>
voidParameterFactoryByType. addParameter(GTUType gtuType, ParameterTypeNumeric<T> parameterType, ContinuousDistDoubleScalar.Rel<T,U> distribution)
void
ParameterFactory. 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
ParameterFactoryDefault. setValues(Parameters parameters, GTUType gtuType)
Creates a set of parameters for the provided GTU type.
-