public final class PropertiesParser extends Object
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Method and Description |
---|---|
static org.opentrafficsim.road.gtu.lane.tactical.following.GTUFollowingModelOld |
parseGTUFollowingModelOld(List<org.opentrafficsim.base.modelproperties.Property<?>> properties,
String gtuType)
Get the car following model for a GTU type, e.g.
|
static org.opentrafficsim.road.gtu.lane.tactical.lanechangemobil.LaneChangeModel |
parseLaneChangeModel(List<org.opentrafficsim.base.modelproperties.Property<?>> properties)
Get the lane change model from the properties.
|
static org.opentrafficsim.road.gtu.strategical.LaneBasedStrategicalPlannerFactory<org.opentrafficsim.road.gtu.strategical.LaneBasedStrategicalPlanner> |
parseStrategicalPlannerFactory(List<org.opentrafficsim.base.modelproperties.Property<?>> properties,
org.opentrafficsim.road.gtu.lane.tactical.following.GTUFollowingModelOld gtuFollowingModel,
org.opentrafficsim.road.gtu.lane.tactical.lanechangemobil.LaneChangeModel laneChangeModel)
Get the strategical planner factory from the properties.
|
public static org.opentrafficsim.road.gtu.lane.tactical.following.GTUFollowingModelOld parseGTUFollowingModelOld(List<org.opentrafficsim.base.modelproperties.Property<?>> properties, String gtuType) throws org.opentrafficsim.base.modelproperties.PropertyException
properties
- the properties to parsegtuType
- the type of GTU, e.g. "Car" or "Truck"org.opentrafficsim.base.modelproperties.PropertyException
- in case parsing failspublic static org.opentrafficsim.road.gtu.lane.tactical.lanechangemobil.LaneChangeModel parseLaneChangeModel(List<org.opentrafficsim.base.modelproperties.Property<?>> properties) throws org.opentrafficsim.base.modelproperties.PropertyException
properties
- the properties to parseorg.opentrafficsim.base.modelproperties.PropertyException
- in case parsing failspublic static org.opentrafficsim.road.gtu.strategical.LaneBasedStrategicalPlannerFactory<org.opentrafficsim.road.gtu.strategical.LaneBasedStrategicalPlanner> parseStrategicalPlannerFactory(List<org.opentrafficsim.base.modelproperties.Property<?>> properties, org.opentrafficsim.road.gtu.lane.tactical.following.GTUFollowingModelOld gtuFollowingModel, org.opentrafficsim.road.gtu.lane.tactical.lanechangemobil.LaneChangeModel laneChangeModel) throws org.opentrafficsim.base.modelproperties.PropertyException, org.opentrafficsim.core.gtu.GTUException
properties
- the properties to parsegtuFollowingModel
- the car following model in case it is neededlaneChangeModel
- the lane change model in case it is neededorg.opentrafficsim.base.modelproperties.PropertyException
- in case parsing failsorg.opentrafficsim.core.gtu.GTUException
- in case LMRS Factory cannot be createdCopyright © 2014–2017 Delft University of Technology. All rights reserved.