public class TemplateGTUType extends Object implements Serializable
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.
$LastChangedDate: 2015-08-29 13:54:21 +0200 (Sat, 29 Aug 2015) $, @version $Revision: 1320 $, by $Author: averbraeck $,
initial version Jul 8, 2014
| Constructor and Description |
|---|
TemplateGTUType(String id,
DistContinuousDoubleScalar.Rel<LengthUnit> lengthDist,
DistContinuousDoubleScalar.Rel<LengthUnit> widthDist,
DistContinuousDoubleScalar.Abs<SpeedUnit> maximumSpeedDist,
OTSDEVSSimulatorInterface simulator) |
| Modifier and Type | Method and Description |
|---|---|
GTUType |
getGtuType() |
DoubleScalar.Rel<LengthUnit> |
getLength() |
DoubleScalar.Abs<SpeedUnit> |
getMaximumVelocity() |
OTSDEVSSimulatorInterface |
getSimulator() |
DoubleScalar.Rel<LengthUnit> |
getWidth() |
boolean |
isCompatible(LaneType laneType) |
public TemplateGTUType(String id, DistContinuousDoubleScalar.Rel<LengthUnit> lengthDist, DistContinuousDoubleScalar.Rel<LengthUnit> widthDist, DistContinuousDoubleScalar.Abs<SpeedUnit> maximumSpeedDist, OTSDEVSSimulatorInterface simulator) throws GTUException
id - The id of the GTUType to make it identifiable.lengthDist - the length of the GTU type (parallel with driving direction).widthDist - the width of the GTU type (perpendicular to driving direction).maximumSpeedDist - the maximum speed of the GTU type (in the driving direction).simulator - the simulator.GTUException - when GTUType defined more than oncepublic final boolean isCompatible(LaneType laneType)
laneType - lane type to look for compatibility.public final DoubleScalar.Rel<LengthUnit> getLength()
public final DoubleScalar.Rel<LengthUnit> getWidth()
public final DoubleScalar.Abs<SpeedUnit> getMaximumVelocity()
public final OTSDEVSSimulatorInterface getSimulator()
public final GTUType getGtuType()
Copyright © 2014–2015 Delft University of Technology. All rights reserved.