Class CapacityOTSLink

java.lang.Object
nl.tudelft.simulation.event.EventProducer
org.opentrafficsim.core.network.OTSLink
org.opentrafficsim.core.network.CapacityOTSLink
All Implemented Interfaces:
Serializable, Locatable, nl.tudelft.simulation.event.EventProducerInterface, Identifiable, Drawable, Capacity, Link

public class CapacityOTSLink
extends OTSLink
implements Capacity
A link with a maximum capacity, expressed as the maximum number of GTUs per time unit that the link can handle.

Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

$LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $, initial version Nov 8, 2015
Author:
Alexander Verbraeck, Peter Knoppers
See Also:
Serialized Form
  • Constructor Details

    • CapacityOTSLink

      public CapacityOTSLink​(Network network, String id, Node startNode, Node endNode, LinkType linkType, OTSLine3D designLine, OTSSimulatorInterface simulator, Frequency capacity) throws NetworkException
      Construct a new link.
      Parameters:
      network - Network; the network.
      id - String; the link id
      startNode - Node; start node (directional)
      endNode - Node; end node (directional)
      linkType - LinkType; Link type to indicate compatibility with GTU types
      designLine - OTSLine3D; the OTSLine3D design line of the Link
      simulator - OTSSimulatorInterface; the simulator on which events can be scheduled
      capacity - Frequency; link capacity in GTUs per hour // XXX per direction? which GTUType?
      Throws:
      NetworkException - 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.
    • CapacityOTSLink

      protected CapacityOTSLink​(Network newNetwork, OTSSimulatorInterface newSimulator, CapacityOTSLink link) throws NetworkException
      Clone a link for a new network.
      Parameters:
      newNetwork - Network; the new network to which the clone belongs
      newSimulator - OTSSimulatorInterface; the new simulator for this network
      link - CapacityOTSLink; the link to clone from
      Throws:
      NetworkException - 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.
  • Method Details