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-12-01 00:39:32 +0100 (Tue, 01 Dec 2015) $, @version $Revision: 1601 $, 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 GTUType getGtuType()
Copyright © 2014–2016 Delft University of Technology. All rights reserved.