Class LaneBasedIndividualGTU

All Implemented Interfaces:
java.io.Serializable, Locatable, EventProducerInterface, Identifiable, Drawable, GTU, LaneBasedGTU

public class LaneBasedIndividualGTU
extends AbstractLaneBasedIndividualGTU
Augments the AbstractLaneBasedIndividualGTU with a LaneBasedIndividualCarBuilder and animation support

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.

Version:
$Revision: 1401 $, $LastChangedDate: 2015-09-14 01:33:02 +0200 (Mon, 14 Sep 2015) $, by $Author: averbraeck $, initial version Oct 22, 2014
Author:
Alexander Verbraeck, Peter Knoppers
See Also:
Serialized Form
  • Constructor Details

    • LaneBasedIndividualGTU

      public LaneBasedIndividualGTU​(java.lang.String id, GTUType gtuType, Length length, Length width, Speed maximumSpeed, Length front, OTSSimulatorInterface simulator, OTSRoadNetwork network) throws GTUException
      Construct a new LaneBasedIndividualGTU.
      Parameters:
      id - String; the id of the GTU
      gtuType - GTUType; the type of GTU, e.g. TruckType, CarType, BusType
      length - Length; the maximum length of the GTU (parallel with driving direction)
      width - Length; the maximum width of the GTU (perpendicular to driving direction)
      maximumSpeed - Speed;the maximum speed of the GTU (in the driving direction)
      front - Length; front distance relative to the reference position
      simulator - OTSSimulatorInterface; the simulator
      network - OTSRoadNetwork; the network that the GTU is initially registered in
      Throws:
      GTUException - when a parameter is invalid
    • LaneBasedIndividualGTU

      public LaneBasedIndividualGTU​(java.lang.String id, GTUType gtuType, Length length, Length width, Speed maximumSpeed, Length front, Length centerOfGravity, OTSSimulatorInterface simulator, OTSRoadNetwork network) throws GTUException
      Construct a new LaneBasedIndividualGTU.
      Parameters:
      id - String; the id of the GTU
      gtuType - GTUType; the type of GTU, e.g. TruckType, CarType, BusType
      length - Length; the maximum length of the GTU (parallel with driving direction)
      width - Length; the maximum width of the GTU (perpendicular to driving direction)
      maximumSpeed - Speed;the maximum speed of the GTU (in the driving direction)
      front - Length; front distance relative to the reference position
      centerOfGravity - Length; distance from the center of gravity to the reference position
      simulator - OTSSimulatorInterface; the simulator
      network - OTSRoadNetwork; the network that the GTU is initially registered in
      Throws:
      GTUException - when a parameter is invalid
  • Method Details