Uses of Class
org.opentrafficsim.core.gtu.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 classGTUCompatibility<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.LongitudinalDirectionalityGTUCompatibility. getDirectionality(GTUType gtuType, boolean tryParentsOfGTUType)Retrieve the allowed driving directions for a GTUType.booleanCompatible. isCompatible(GTUType gtuType, GTUDirectionality directionality)Test if a GTUType is handled by the infrastructure in the given direction.BooleanGTUCompatibility. 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 voidGTUCompatibility. 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 GTUTypeDefinitions. getGtuType(String gtuId)Retrieve a defined GTUType based on its id.GTUTypeDefinitions. 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 voidDefinitions. 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 GTUTypeAbstractGTU. getGTUType()GTUTypeGTU. getGTUType()GTUTypeGTUCharacteristics. getGTUType()Retrieve the GTU type.GTUTypeTemplateGTUType. getGTUType()Methods in org.opentrafficsim.core.gtu with parameters of type GTUType Modifier and Type Method Description static GTUCharacteristicsGTUType. 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, 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) -
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 LinkDirectionStrategicalPlanner. 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.LinkDirectionStrategicalPlanner. 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.NodeStrategicalPlanner. nextNode(Link link, GTUDirectionality direction, GTUType gtuType)Determine the next node in a network based on a current Link we are on.NodeStrategicalPlanner. 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 GTUTypeOTSNetwork. getGtuType(String gtuId)Retrieve a defined GTUType based on its id.GTUTypeOTSNetwork. 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,SimpleDirectedWeightedGraph<Node,LinkEdge<Link>>>OTSNetwork. getLinkGraphs()ImmutableMap<GTUType,Map<String,Route>>OTSNetwork. getRouteMap()Methods in org.opentrafficsim.core.network with parameters of type GTUType Modifier and Type Method Description voidOTSNode. addConnection(GTUType gtuType, Link incomingLink, Link outgoingLink)Add a single connection for a GTU type to the connections map.voidOTSNode. addConnections(GTUType gtuType, Link incomingLink, Set<Link> outgoingLinks)Add a set of connections for a GTU type to the connections map.voidOTSNetwork. addGtuType(GTUType gtuType)Add a GTU type to the map.voidNetwork. addRoute(GTUType gtuType, Route route)Add a route to the network.voidOTSNetwork. addRoute(GTUType gtuType, Route route)Add a route to the network.voidNetwork. buildGraph(GTUType gtuType)(Re)build the underlying graph for the given GTUType.voidOTSNetwork. buildGraph(GTUType gtuType)(Re)build the underlying graph for the given GTUType.booleanNetwork. containsRoute(GTUType gtuType, String routeId)Determine whether a route with the given id exists in the network for the given GTUType.booleanNetwork. containsRoute(GTUType gtuType, Route route)Determine whether the provided route exists in the network for the given GTUType.booleanOTSNetwork. containsRoute(GTUType gtuType, String routeId)Determine whether a route with the given id exists in the network for the given GTUType.booleanOTSNetwork. 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.LongitudinalDirectionalityLink. getDirectionality(GTUType gtuType)This method returns the directionality of the link for a GTU type.LongitudinalDirectionalityLinkType. getDirectionality(GTUType gtuType, boolean tryParentsOfGTUType)Retrieve the allowed driving directions for a GTUType.LongitudinalDirectionalityOTSLink. getDirectionality(GTUType gtuType)This method returns the directionality of the link for a GTU type.RouteNetwork. 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.RouteOTSNetwork. 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 CompleteRouteNetwork. getShortestRouteBetween(GTUType gtuType, Node nodeFrom, Node nodeTo)Calculate the shortest route between two nodes in the network.default CompleteRouteNetwork. 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.CompleteRouteNetwork. 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.CompleteRouteNetwork. getShortestRouteBetween(GTUType gtuType, Node nodeFrom, Node nodeTo, LinkWeight linkWeight)Calculate the shortest route between two nodes in the network.CompleteRouteOTSNetwork. 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.CompleteRouteOTSNetwork. 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.CompleteRouteOTSNetwork. getShortestRouteBetween(GTUType gtuType, Node nodeFrom, Node nodeTo, LinkWeight linkWeight)Calculate the shortest route between two nodes in the network.BooleanLinkType. isCompatible(GTUType gtuType, GTUDirectionality directionality)Test if a GTUType can travel over the infrastructure.booleanNode. isDirectionallyConnectedTo(GTUType gtuType, Node toNode)Check if the current node is linked to the given Node in the specified direction for the given GTUType.booleanOTSNode. 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.voidNetwork. removeRoute(GTUType gtuType, Route route)Remove the route from the network, e.g.voidOTSNetwork. 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 voidOTSNetwork. 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.voidParameterFactoryByType. addParameter(GTUType gtuType, ParameterType<Double> parameterType, DistContinuous distribution)voidParameterFactoryByType. addParameter(GTUType gtuType, ParameterType<Integer> parameterType, DistDiscrete distribution)<T> voidParameterFactoryByType. 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)voidParameterFactory. setValues(Parameters parameters, GTUType gtuType)Creates a set of parameters for the provided GTU type.voidParameterFactoryByType. setValues(Parameters parameters, GTUType gtuType)Creates a set of parameters for the provided GTU type.voidParameterFactoryDefault. setValues(Parameters parameters, GTUType gtuType)Creates a set of parameters for the provided GTU type.