 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
53 oc.
addDescription(
"device.fcd.period",
"FCD Device",
"Recording period for FCD-data");
62 into.push_back(device);
87 std::ifstream strm(file.c_str());
89 throw ProcessError(
"Could not load names of edges for filtering fcd-output from '" + file +
"'.");
96 name = name.substr(5);
static void insertOptions(OptionsCont &oc)
Inserts MSDevice_FCD-options.
bool isSet(const std::string &name, bool failOnNonExistant=true) const
Returns the information whether the named option is set.
virtual const std::string & getID() const =0
Get the vehicle's ID.
std::string getString(const std::string &name) const
Returns the string-value of the named option (only for Option_String)
static void buildVehicleDevices(SUMOVehicle &v, std::vector< MSVehicleDevice * > &into)
Build devices for the given vehicle, if needed.
Representation of a vehicle.
static OptionsCont & getOptions()
Retrieves the options.
A device which collects info on the vehicle trip (mainly on departure and arrival)
static bool myEdgeFilterInitialized
void addDescription(const std::string &name, const std::string &subtopic, const std::string &description)
Adds a description for an option.
static void insertDefaultAssignmentOptions(const std::string &deviceName, const std::string &optionsTopic, OptionsCont &oc, const bool isPerson=false)
Adds common command options that allow to assign devices to vehicles.
static void cleanup()
resets the edge filter
static bool dictionary(const std::string &id, MSEdge *edge)
Inserts edge into the static dictionary Returns true if the key id isn't already in the dictionary....
void doRegister(const std::string &name, Option *v)
Adds an option under the given name.
static std::set< const MSEdge * > myEdgeFilter
spatial filter for FCD output
A storage for options typed value containers)
static bool startsWith(const std::string &str, const std::string prefix)
Checks whether a given string starts with the prefix.
~MSDevice_FCD()
Destructor.
void addOptionSubTopic(const std::string &topic)
Adds an option subtopic.
static bool equippedByDefaultAssignmentOptions(const OptionsCont &oc, const std::string &deviceName, DEVICEHOLDER &v, bool outputOptionSet, const bool isPerson=false)
Determines whether a vehicle should get a certain device.
static void initEdgeFilter()
initialize edge filter (once)
MSDevice_FCD(SUMOVehicle &holder, const std::string &id)
Constructor.
Abstract in-vehicle device.