Uses of Interface
org.opentrafficsim.core.network.Link
-
Packages that use Link 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. -
-
Uses of Link in org.opentrafficsim.core.gtu
Methods in org.opentrafficsim.core.gtu that return Link Modifier and Type Method Description abstract LinkAbstractLinkBasedGTU. getLink()Return the link on which the REFERENCE position of the GTU currently is on. -
Uses of Link in org.opentrafficsim.core.gtu.plan.strategical
Methods in org.opentrafficsim.core.gtu.plan.strategical with parameters of type Link 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 Link in org.opentrafficsim.core.network
Classes in org.opentrafficsim.core.network with type parameters of type Link Modifier and Type Class Description classLinkEdge<LINK extends Link>The LinkEdge is a class that embeds a Link (extension of AbstractLink) to be put in a graph.Classes in org.opentrafficsim.core.network that implement Link Modifier and Type Class Description classCapacityOTSLinkA link with a maximum capacity, expressed as the maximum number of GTUs per time unit that the link can handle.classOTSLinkA standard implementation of a link between two OTSNodes.Methods in org.opentrafficsim.core.network that return Link Modifier and Type Method Description LinkLinkDirection. getLink()LinkLinkLocation. getLink()LinkNetwork. getLink(java.lang.String linkId)Retrieve a node with a given id from the network, or null if the id cannot be found.LinkNetwork. getLink(java.lang.String nodeId1, java.lang.String nodeId2)Find a link between node1 and node2 and return it if it exists in the network.LinkNetwork. getLink(Node node1, Node node2)Find a link between node1 and node2 and return it if it exists in the network.LinkOTSNetwork. getLink(java.lang.String linkId)Retrieve a node with a given id from the network, or null if the id cannot be found.LinkOTSNetwork. getLink(java.lang.String nodeId1, java.lang.String nodeId2)Find a link between node1 and node2 and return it if it exists in the network.LinkOTSNetwork. getLink(Node node1, Node node2)Find a link between node1 and node2 and return it if it exists in the network.Methods in org.opentrafficsim.core.network that return types with arguments of type Link Modifier and Type Method Description ImmutableMap<GTUType,org.jgrapht.graph.SimpleDirectedWeightedGraph<Node,LinkEdge<Link>>>OTSNetwork. getLinkGraphs()ImmutableMap<java.lang.String,Link>Network. getLinkMap()Provide an immutable map of link ids to links in the network.ImmutableMap<java.lang.String,Link>OTSNetwork. getLinkMap()Provide an immutable map of link ids to links in the network.ImmutableSet<Link>Node. getLinks()ImmutableSet<Link>OTSNode. getLinks()java.util.Set<Link>Node. nextLinks(GTUType gtuType, Link prevLink)Determine the links connecting from the previous link via this Node for the given GTU type.java.util.Set<Link>OTSNode. nextLinks(GTUType gtuType, Link prevLink)Determine the links connecting from the previous link via this Node for the given GTU type.Methods in org.opentrafficsim.core.network with parameters of type Link 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, java.util.Set<Link> outgoingLinks)Add a set of connections for a GTU type to the connections map.voidNetwork. addLink(Link link)Register a link in the network.voidNode. addLink(Link link)Add a link to this Node.voidOTSNetwork. addLink(Link link)Register a link in the network.voidOTSNode. addLink(Link link)Add a link to this Node.booleanNetwork. containsLink(Link link)Test whether a link is present in the network.booleanOTSNetwork. containsLink(Link link)Test whether a link is present in the network.doubleLinkWeight. getWeight(Link link)Returns the link weight.java.util.Set<Link>Node. nextLinks(GTUType gtuType, Link prevLink)Determine the links connecting from the previous link via this Node for the given GTU type.java.util.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. removeLink(Link link)Unregister a link from the network.voidNode. removeLink(Link link)Remove a link from this Node.voidOTSNetwork. removeLink(Link link)Unregister a link from the network.voidOTSNode. removeLink(Link link)Remove a link from this Node.Method parameters in org.opentrafficsim.core.network with type arguments of type Link Modifier and Type Method Description voidOTSNode. addConnections(GTUType gtuType, Link incomingLink, java.util.Set<Link> outgoingLinks)Add a set of connections for a GTU type to the connections map.Constructors in org.opentrafficsim.core.network with parameters of type Link Constructor Description DirectedLinkPosition(Link link, double fractionalLongitudinalPosition, GTUDirectionality direction)DirectedLinkPosition(Link link, Length position, GTUDirectionality direction)LinkDirection(Link link, GTUDirectionality direction)LinkLocation(Link link, double fractionalLongitudinalPosition)LinkLocation(Link link, Length position) -
Uses of Link in org.opentrafficsim.core.network.route
Methods in org.opentrafficsim.core.network.route with parameters of type Link Modifier and Type Method Description booleanCompleteRoute. containsLink(Link link)Determine if this Route contains the specified Link.
-