 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
47 oc.
addCallExample(
"-c <CONFIGURATION>",
"run with routing options defined in file");
62 oc.
addDescription(
"turn-ratio-files",
"Input",
"Read turning ratios from FILE(s)");
65 oc.
addDescription(
"exit-times",
"Output",
"Write exit times (weights) for each edge");
68 oc.
addDescription(
"max-edges-factor",
"Processing",
"Routes are cut off when the route edges to net edges ratio is larger than FLOAT");
71 oc.
addDescription(
"turn-defaults",
"Processing",
"Use STR as default turn definition");
75 oc.
addDescription(
"sink-edges",
"Processing",
"Use STR as list of sink edges");
78 oc.
addDescription(
"accept-all-destinations",
"Processing",
"Whether all edges are allowed as sink edges");
81 oc.
addDescription(
"ignore-vclasses",
"Processing",
"Ignore road restrictions based on vehicle class");
84 oc.
addDescription(
"allow-loops",
"Processing",
"Allow to re-use a road");
96 oc.
set(
"no-internal-links",
"true");
bool isSet(const std::string &name, bool failOnNonExistant=true) const
Returns the information whether the named option is set.
static void addConfigurationOptions(OptionsCont &oc)
Adds configuration options to the given container.
ArrivalSpeedDefinition arrivalSpeedProcedure
Information how the vehicle's end speed shall be chosen.
bool set(const std::string &name, const std::string &value)
Sets the given value for the named option.
double departSpeed
(optional) The initial speed of the vehicle
DepartPosDefinition departPosProcedure
Information how the vehicle shall choose the departure position.
static bool parseDepartSpeed(const std::string &val, const std::string &element, const std::string &id, double &speed, DepartSpeedDefinition &dsd, std::string &error)
Validates a given departSpeed value.
std::string getString(const std::string &name) const
Returns the string-value of the named option (only for Option_String)
static bool parseDepartLane(const std::string &val, const std::string &element, const std::string &id, int &lane, DepartLaneDefinition &dld, std::string &error)
Validates a given departLane value.
static OptionsCont & getOptions()
Retrieves the options.
Structure representing possible vehicle parameter.
static bool parseArrivalPos(const std::string &val, const std::string &element, const std::string &id, double &pos, ArrivalPosDefinition &apd, std::string &error)
Validates a given arrivalPos value.
static void addReportOptions(OptionsCont &oc)
Adds reporting options to the given container.
void addDescription(const std::string &name, const std::string &subtopic, const std::string &description)
Adds a description for an option.
ArrivalLaneDefinition arrivalLaneProcedure
Information how the vehicle shall choose the lane to arrive on.
void addSynonyme(const std::string &name1, const std::string &name2, bool isDeprecated=false)
Adds a synonyme for an options name (any order)
static bool parseArrivalLane(const std::string &val, const std::string &element, const std::string &id, int &lane, ArrivalLaneDefinition &ald, std::string &error)
Validates a given arrivalLane value.
static bool checkOptions()
Checks set options from the OptionsCont-singleton for being valid for usage within jtrrouter.
double arrivalPos
(optional) The position the vehicle shall arrive on
void doRegister(const std::string &name, Option *v)
Adds an option under the given name.
ArrivalPosDefinition arrivalPosProcedure
Information how the vehicle shall choose the arrival position.
static bool parseArrivalSpeed(const std::string &val, const std::string &element, const std::string &id, double &speed, ArrivalSpeedDefinition &asd, std::string &error)
Validates a given arrivalSpeed value.
A storage for options typed value containers)
bool isDefault(const std::string &name) const
Returns the information whether the named option has still the default value.
void addOptionSubTopic(const std::string &topic)
Adds an option subtopic.
static bool checkOptions(OptionsCont &oc)
Checks whether options are valid.
int departLane
(optional) The lane the vehicle shall depart from (index in edge)
DepartLaneDefinition departLaneProcedure
Information how the vehicle shall choose the lane to depart from.
void addCallExample(const std::string &example, const std::string &desc)
Add a call example.
static void fillOptions()
Inserts options used by jtrrouter into the OptionsCont-singleton.
static void fillOptions(OptionsCont &oc)
Inserts options used by routing applications into the OptionsCont-singleton.
static void insertRandOptions()
Initialises the given options container with random number options.
static bool parseDepartPos(const std::string &val, const std::string &element, const std::string &id, double &pos, DepartPosDefinition &dpd, std::string &error)
Validates a given departPos value.
double departPos
(optional) The position the vehicle shall depart from
DepartSpeedDefinition departSpeedProcedure
Information how the vehicle's initial speed shall be chosen.
double arrivalSpeed
(optional) The final speed of the vehicle (not used yet)