public final class InputParameterHelper extends Object implements ParameterFactory
| Constructor and Description | 
|---|
InputParameterHelper(InputParameterMap rootMap)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static Parameters | 
getParametersCar(InputParameterMap rootMap)
Get the car parameters as entered. 
 | 
static Parameters | 
getParametersTruck(InputParameterMap rootMap)
Get the truck parameters as entered. 
 | 
static void | 
makeInputParameterMapCar(InputParameterMap map,
                        double displayPriority)
Make a map of input parameters for a demo with a car tabs with parameters. 
 | 
static void | 
makeInputParameterMapCarTruck(InputParameterMap map,
                             double probabilityDisplayPriority)
Make a map of input parameters for a demo with a car/truck ratio and car/truck tabs with parameters. 
 | 
static void | 
makeInputParameterMapTruck(InputParameterMap map,
                          double displayPriority)
Make a map of input parameters for a demo with a truck tabs with parameters. 
 | 
void | 
setValues(Parameters parameters,
         GTUType gtuType) | 
public InputParameterHelper(InputParameterMap rootMap)
rootMap - InputParameterMap; input parameter mappublic void setValues(Parameters parameters, GTUType gtuType) throws ParameterException
setValues in interface ParameterFactoryParameterExceptionpublic static void makeInputParameterMapCarTruck(InputParameterMap map, double probabilityDisplayPriority)
map - InputParameterMap; the map to add the car/truck input parameters toprobabilityDisplayPriority - double; the display priority to use for the car probability in the generic mappublic static void makeInputParameterMapCar(InputParameterMap map, double displayPriority)
map - InputParameterMap; the map to add the car input tab todisplayPriority - double; the display priority to use for the car tab in the generic mappublic static void makeInputParameterMapTruck(InputParameterMap map, double displayPriority)
map - InputParameterMap; the map to add the truck input tab todisplayPriority - double; the display priority to use for the truck map in the generic mappublic static Parameters getParametersCar(InputParameterMap rootMap) throws ParameterException, InputParameterException
rootMap - InputParameterMap; the root map of the model with a 'car' tab with the parametersParameterException - when the parameter was given an illegal settingInputParameterException - when the input parameter could not be foundpublic static Parameters getParametersTruck(InputParameterMap rootMap) throws ParameterException, InputParameterException
rootMap - InputParameterMap; the root map of the model with a 'truck' tab with the parametersParameterException - when the parameter was given an illegal settingInputParameterException - when the input parameter could not be foundCopyright © 2014–2019 Delft University of Technology. All rights reserved.