public final class PropertiesParser extends Object
Copyright (c) 2013-2018 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 GTUFollowingModelOld |
parseGTUFollowingModelOld(List<Property<?>> properties,
String gtuType)
Get the car following model for a GTU type, e.g.
|
static LaneChangeModel |
parseLaneChangeModel(List<Property<?>> properties)
Get the lane change model from the properties.
|
static LaneBasedStrategicalPlannerFactory<LaneBasedStrategicalPlanner> |
parseStrategicalPlannerFactory(List<Property<?>> properties,
GTUFollowingModelOld gtuFollowingModel,
LaneChangeModel laneChangeModel,
StreamInterface stream)
Get the strategical planner factory from the properties.
|
public static GTUFollowingModelOld parseGTUFollowingModelOld(List<Property<?>> properties, String gtuType) throws PropertyException
properties
- the properties to parsegtuType
- the type of GTU, e.g. "Car" or "Truck"PropertyException
- in case parsing failspublic static LaneChangeModel parseLaneChangeModel(List<Property<?>> properties) throws PropertyException
properties
- the properties to parsePropertyException
- in case parsing failspublic static LaneBasedStrategicalPlannerFactory<LaneBasedStrategicalPlanner> parseStrategicalPlannerFactory(List<Property<?>> properties, GTUFollowingModelOld gtuFollowingModel, LaneChangeModel laneChangeModel, StreamInterface stream) throws PropertyException, GTUException
properties
- the properties to parsegtuFollowingModel
- the car following model in case it is neededlaneChangeModel
- the lane change model in case it is neededstream
- random streamPropertyException
- in case parsing failsGTUException
- in case LMRS Factory cannot be createdCopyright © 2014–2018 Delft University of Technology. All rights reserved.