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-09-26 12:11:42 +0200 (Sat, 26 Sep 2015) $, @version $Revision: 1454 $, by $Author: averbraeck $,
initial version Jul 8, 2014
| Constructor and Description |
|---|
TemplateGTUType(String id,
ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Length.Rel,org.djunits.unit.LengthUnit> lengthDist,
ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Length.Rel,org.djunits.unit.LengthUnit> widthDist,
ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Speed,org.djunits.unit.SpeedUnit> maximumSpeedDist,
OTSDEVSSimulatorInterface simulator) |
| Modifier and Type | Method and Description |
|---|---|
GTUType |
getGtuType() |
org.djunits.value.vdouble.scalar.Length.Rel |
getLength() |
org.djunits.value.vdouble.scalar.Speed |
getMaximumVelocity() |
OTSDEVSSimulatorInterface |
getSimulator() |
org.djunits.value.vdouble.scalar.Length.Rel |
getWidth() |
public TemplateGTUType(String id, ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Length.Rel,org.djunits.unit.LengthUnit> lengthDist, ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Length.Rel,org.djunits.unit.LengthUnit> widthDist, ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Speed,org.djunits.unit.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 org.djunits.value.vdouble.scalar.Length.Rel getLength()
public final org.djunits.value.vdouble.scalar.Length.Rel getWidth()
public final org.djunits.value.vdouble.scalar.Speed getMaximumVelocity()
public final OTSDEVSSimulatorInterface getSimulator()
public final GTUType getGtuType()
Copyright © 2014–2015 Delft University of Technology. All rights reserved.