public class CapacityOTSLink extends OTSLink implements Capacity
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
listenersGTU_ADD_EVENT, GTU_REMOVE_EVENTFIRST_POSITION, LAST_POSITION| Constructor and Description |
|---|
CapacityOTSLink(Network network,
String id,
OTSNode startNode,
OTSNode endNode,
LinkType linkType,
OTSLine3D designLine,
org.djunits.value.vdouble.scalar.Frequency capacity,
LongitudinalDirectionality directionality)
Construct a new link, with a directionality for all GTUs as provided.
|
CapacityOTSLink(Network network,
String id,
OTSNode startNode,
OTSNode endNode,
LinkType linkType,
OTSLine3D designLine,
org.djunits.value.vdouble.scalar.Frequency capacity,
Map<GTUType,LongitudinalDirectionality> directionalityMap)
Construct a new link.
|
| Modifier and Type | Method and Description |
|---|---|
org.djunits.value.vdouble.scalar.Frequency |
getCapacity() |
void |
setCapacity(org.djunits.value.vdouble.scalar.Frequency capacity)
Set the link capacity.
|
String |
toString() |
addDirectionality, addGTU, equals, getBounds, getDesignLine, getDirectionality, getEndNode, getGTUCount, getGTUs, getId, getLength, getLinkType, getLocation, getNetwork, getStartNode, hashCode, removeDirectionality, removeGTUaddListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, removeAllListeners, removeAllListeners, removeListenerpublic CapacityOTSLink(Network network, String id, OTSNode startNode, OTSNode endNode, LinkType linkType, OTSLine3D designLine, org.djunits.value.vdouble.scalar.Frequency capacity, Map<GTUType,LongitudinalDirectionality> directionalityMap) throws NetworkException
network - the network.id - the link idstartNode - start node (directional)endNode - end node (directional)linkType - Link type to indicate compatibility with GTU typesdesignLine - the OTSLine3D design line of the Linkcapacity - link capacity in GTUs per hour // XXX per direction? which GTUType?directionalityMap - the directions (FORWARD, BACKWARD, BOTH, NONE) that GTUtypes can traverse this linkNetworkException - if link already exists in the network, if name of the link is not unique, or if the start node
or the end node of the link are not registered in the network.public CapacityOTSLink(Network network, String id, OTSNode startNode, OTSNode endNode, LinkType linkType, OTSLine3D designLine, org.djunits.value.vdouble.scalar.Frequency capacity, LongitudinalDirectionality directionality) throws NetworkException
network - the network.id - the link idstartNode - start node (directional)endNode - end node (directional)linkType - Link type to indicate compatibility with GTU typesdesignLine - the OTSLine3D design line of the Linkcapacity - link capacity in GTUs per hourdirectionality - the directionality for all GTUsNetworkException - if link already exists in the network, if name of the link is not unique, or if the start node
or the end node of the link are not registered in the network.public final org.djunits.value.vdouble.scalar.Frequency getCapacity()
getCapacity in interface Capacitypublic final void setCapacity(org.djunits.value.vdouble.scalar.Frequency capacity)
setCapacity in interface Capacitycapacity - the new capacity of the link as a frequency in GTUs per time unit.Copyright © 2014–2016 Delft University of Technology. All rights reserved.