Uses of Interface
org.opentrafficsim.core.network.Link
-
Packages that use Link Package Description org.opentrafficsim.core.gtu.plan.strategical Strategical planners.org.opentrafficsim.core.network Classes that build a network with nodes and links.org.opentrafficsim.core.network.route Routes and route probabilities. -
-
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 Nodes.Methods in org.opentrafficsim.core.network that return Link Modifier and Type Method Description LinkLinkDirection. getLink()Retrieve the link.LinkLinkLocation. getLink()Retrieve the link.LinkNetwork. getLink(String linkId)Retrieve a node with a given id from this Network, or null if the id cannot be found.LinkNetwork. getLink(String nodeId1, String nodeId2)Find a link between node1 and node2 and return it if it exists in this Network.LinkNetwork. getLink(Node node1, Node node2)Find a link between node1 and node2 and return it if it exists in this Network.LinkOTSNetwork. getLink(String linkId)Retrieve a node with a given id from this Network, or null if the id cannot be found.LinkOTSNetwork. getLink(String nodeId1, String nodeId2)Find a link between node1 and node2 and return it if it exists in this Network.LinkOTSNetwork. getLink(Node node1, Node node2)Find a link between node1 and node2 and return it if it exists in this 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()Get an immutable graph map.ImmutableMap<String,Link>Network. getLinkMap()Provide an immutable map of link ids to links in this Network.ImmutableMap<String,Link>OTSNetwork. getLinkMap()Provide an immutable map of link ids to links in this Network.ImmutableSet<Link>Node. getLinks()Return an ImmutableSet of all Links at this Node.ImmutableSet<Link>OTSNode. getLinks()Return an ImmutableSet of all Links at this Node.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 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.voidNetwork. addLink(Link link)Register a link in this Network.voidNode. addLink(Link link)Add a link to this Node.voidOTSNetwork. addLink(Link link)Register a link in this Network.voidOTSNode. addLink(Link link)Add a link to this Node.booleanNetwork. containsLink(Link link)Test whether a link is present in this Network.booleanOTSNetwork. containsLink(Link link)Test whether a link is present in this Network.doubleLinkWeight. getWeight(Link link)Retrieve 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.voidNetwork. removeLink(Link link)Unregister a link from this Network.voidNode. removeLink(Link link)Remove a Link from this Node.voidOTSNetwork. removeLink(Link link)Unregister a link from this 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, 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)Construct a new DirectedLinkPosition.DirectedLinkPosition(Link link, Length position, GtuDirectionality direction)Construct a new DirectedLinkPosition.LinkDirection(Link link, GtuDirectionality direction)Construct a new LinkDirection.LinkLocation(Link link, double fractionalLongitudinalPosition)Construct a new LinkLocation.LinkLocation(Link link, Length position)Construct a new LinkLocation. -
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 specific Link.
-