public class CapacityOTSLink extends OTSLink implements Capacity
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Constructor and Description |
|---|
CapacityOTSLink(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(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.
|
addDirectionality, equals, getBounds, getDesignLine, getDirectionality, getEndNode, getId, getLength, getLinkType, getLocation, getStartNode, hashCode, removeDirectionality, toStringpublic CapacityOTSLink(String id, OTSNode startNode, OTSNode endNode, LinkType linkType, OTSLine3D designLine, org.djunits.value.vdouble.scalar.Frequency capacity, Map<GTUType,LongitudinalDirectionality> directionalityMap)
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 linkpublic CapacityOTSLink(String id, OTSNode startNode, OTSNode endNode, LinkType linkType, OTSLine3D designLine, org.djunits.value.vdouble.scalar.Frequency capacity, LongitudinalDirectionality directionality)
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 GTUspublic 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–2015 Delft University of Technology. All rights reserved.