public interface Link extends nl.tudelft.simulation.dsol.animation.Locatable, Serializable, org.opentrafficsim.base.Identifiable
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2018-09-19 13:55:45 +0200 (Wed, 19 Sep 2018) $, @version $Revision: 4006 $, by $Author: averbraeck $,
initial version Aug 19, 2014
| Modifier and Type | Field and Description |
|---|---|
static nl.tudelft.simulation.event.EventType |
GTU_ADD_EVENT
The timed event type for pub/sub indicating the addition of a GTU to the link.
|
static nl.tudelft.simulation.event.EventType |
GTU_REMOVE_EVENT
The timed event type for pub/sub indicating the removal of a GTU from the link.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addGTU(GTU gtu)
Add a GTU to this link (e.g., for statistical purposes, or for a model on macro level).
|
OTSLine3D |
getDesignLine() |
LongitudinalDirectionality |
getDirectionality(GTUType gtuType)
This method returns the directionality of the link for a GTU type.
|
Node |
getEndNode() |
int |
getGTUCount()
Provide the number of GTUs on this link.
|
Set<GTU> |
getGTUs()
Provide a safe copy of the set of GTUs.
|
String |
getId() |
org.djunits.value.vdouble.scalar.Length |
getLength() |
LinkType |
getLinkType() |
Network |
getNetwork()
Return the network in which this link is registered.
|
nl.tudelft.simulation.dsol.simulators.SimulatorInterface.TimeDoubleUnit |
getSimulator() |
Node |
getStartNode() |
void |
removeGTU(GTU gtu)
Remove a GTU from this link.
|
static final nl.tudelft.simulation.event.EventType GTU_ADD_EVENT
static final nl.tudelft.simulation.event.EventType GTU_REMOVE_EVENT
Network getNetwork()
String getId()
getId in interface org.opentrafficsim.base.IdentifiableNode getStartNode()
Node getEndNode()
LinkType getLinkType()
OTSLine3D getDesignLine()
nl.tudelft.simulation.dsol.simulators.SimulatorInterface.TimeDoubleUnit getSimulator()
org.djunits.value.vdouble.scalar.Length getLength()
LongitudinalDirectionality getDirectionality(GTUType gtuType)
gtuType - the GTU type to request the directionality forvoid addGTU(GTU gtu)
gtu - GTU; the GTU to add.void removeGTU(GTU gtu)
gtu - GTU; the GTU to remove.Set<GTU> getGTUs()
int getGTUCount()
Copyright © 2014–2018 Delft University of Technology. All rights reserved.