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 Link
AbstractLinkBasedGTU. 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 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 Link in org.opentrafficsim.core.network
Classes in org.opentrafficsim.core.network with type parameters of type Link Modifier and Type Class Description class
LinkEdge<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 class
CapacityOTSLink
A link with a maximum capacity, expressed as the maximum number of GTUs per time unit that the link can handle.class
OTSLink
A standard implementation of a link between two OTSNodes.Methods in org.opentrafficsim.core.network that return Link Modifier and Type Method Description Link
LinkDirection. getLink()
Link
LinkLocation. getLink()
Link
Network. getLink(String linkId)
Retrieve a node with a given id from the network, or null if the id cannot be found.Link
Network. getLink(String nodeId1, String nodeId2)
Find a link between node1 and node2 and return it if it exists in the network.Link
Network. getLink(Node node1, Node node2)
Find a link between node1 and node2 and return it if it exists in the network.Link
OTSNetwork. getLink(String linkId)
Retrieve a node with a given id from the network, or null if the id cannot be found.Link
OTSNetwork. getLink(String nodeId1, String nodeId2)
Find a link between node1 and node2 and return it if it exists in the network.Link
OTSNetwork. 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<String,Link>
Network. getLinkMap()
Provide an immutable map of link ids to links in the network.ImmutableMap<String,Link>
OTSNetwork. getLinkMap()
Provide an immutable map of link ids to links in the network.ImmutableSet<Link>
Node. getLinks()
ImmutableSet<Link>
OTSNode. getLinks()
(package private) Map<GTUType,org.jgrapht.graph.SimpleDirectedWeightedGraph<Node,LinkEdge<Link>>>
OTSNetwork. getRawLinkGraphs()
(package private) Map<String,Link>
OTSNetwork. getRawLinkMap()
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.Methods in org.opentrafficsim.core.network with parameters of type Link 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
Network. addLink(Link link)
Register a link in the network.void
Node. addLink(Link link)
Add a link to this Node.void
OTSNetwork. addLink(Link link)
Register a link in the network.void
OTSNode. addLink(Link link)
Add a link to this Node.boolean
Network. containsLink(Link link)
Test whether a link is present in the network.boolean
OTSNetwork. containsLink(Link link)
Test whether a link is present in the network.double
LinkWeight. getWeight(Link link)
Returns the link weight.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. removeLink(Link link)
Unregister a link from the network.void
Node. removeLink(Link link)
Remove a link from this Node.void
OTSNetwork. removeLink(Link link)
Unregister a link from the network.void
OTSNode. 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 void
OTSNode. addConnections(GTUType gtuType, Link incomingLink, 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 boolean
CompleteRoute. containsLink(Link link)
Determine if this Route contains the specified Link.
-