class GTUTag extends Object
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-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $,
initial version Jul 23, 2015
| Modifier and Type | Field and Description |
|---|---|
(package private) GTUFollowingModel |
followingModel
GTU following model.
|
(package private) org.opentrafficsim.core.gtu.GTUType |
gtuType
type.
|
(package private) LaneChangeModel |
laneChangeModel
lane change model.
|
(package private) org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Length.Rel,org.djunits.unit.LengthUnit> |
lengthDist
GTU length.
|
(package private) org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Speed,org.djunits.unit.SpeedUnit> |
maxSpeedDist
max speed.
|
(package private) String |
name
name.
|
(package private) org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Length.Rel,org.djunits.unit.LengthUnit> |
widthDist
GTU width.
|
| Constructor and Description |
|---|
GTUTag() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static GTUFollowingModel |
parseFollowingModel(String modelName)
XXX probably ok to generate a new model for each GTU 'type'.
|
(package private) static void |
parseGTUs(NodeList nodeList,
XmlNetworkLaneParser parser) |
(package private) static org.opentrafficsim.core.gtu.GTUType |
parseGTUType(String typeName,
XmlNetworkLaneParser parser) |
(package private) static LaneChangeModel |
parseLaneChangeModel(String modelName)
XXX probably ok to generate a new model for each GTU 'type'.
|
String name
org.opentrafficsim.core.gtu.GTUType gtuType
org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Length.Rel,org.djunits.unit.LengthUnit> lengthDist
org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Length.Rel,org.djunits.unit.LengthUnit> widthDist
GTUFollowingModel followingModel
LaneChangeModel laneChangeModel
org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Speed,org.djunits.unit.SpeedUnit> maxSpeedDist
static void parseGTUs(NodeList nodeList, XmlNetworkLaneParser parser) throws SAXException, org.opentrafficsim.core.network.NetworkException, org.opentrafficsim.core.gtu.GTUException
nodeList - nodeList the top-level nodes of the XML-fileparser - the parser with the lists of informationSAXException - when parsing of GTU tag failsorg.opentrafficsim.core.network.NetworkException - when parsing of GTU tag failsorg.opentrafficsim.core.gtu.GTUException - if GTUType defined twicestatic org.opentrafficsim.core.gtu.GTUType parseGTUType(String typeName, XmlNetworkLaneParser parser)
typeName - the name of the GTU type.parser - the parser with the lists of informationstatic GTUFollowingModel parseFollowingModel(String modelName) throws org.opentrafficsim.core.network.NetworkException
modelName - the name of the GTU following model.org.opentrafficsim.core.network.NetworkException - in case of unknown model.static LaneChangeModel parseLaneChangeModel(String modelName) throws org.opentrafficsim.core.network.NetworkException
modelName - the name of the lane change model.org.opentrafficsim.core.network.NetworkException - in case of unknown model.Copyright © 2014–2016 Delft University of Technology. All rights reserved.