55 oc.
addDescription(
"device.fcd.period",
"FCD Device",
"Recording period for FCD-data");
64 into.push_back(device);
89 std::ifstream strm(file.c_str());
91 throw ProcessError(
"Could not load names of edges for filtering fcd-output from '" + file +
"'.");
98 name = name.substr(5);
void doRegister(const std::string &name, Option *v)
Adds an option under the given name.
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...
static void insertOptions(OptionsCont &oc)
Inserts MSDevice_FCD-options.
static OptionsCont & getOptions()
Retrieves the options.
bool isSet(const std::string &name, bool failOnNonExistant=true) const
Returns the information whether the named option is set.
static void buildVehicleDevices(SUMOVehicle &v, std::vector< MSVehicleDevice *> &into)
Build devices for the given vehicle, if needed.
static bool startsWith(const std::string &str, const std::string prefix)
Checks whether a given string starts with the prefix.
static std::set< const MSEdge * > myEdgeFilter
spatial filter for FCD output
Representation of a vehicle.
std::string getString(const std::string &name) const
Returns the string-value of the named option (only for Option_String)
~MSDevice_FCD()
Destructor.
static bool myEdgeFilterInitialized
void addOptionSubTopic(const std::string &topic)
Adds an option subtopic.
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.
MSDevice_FCD(SUMOVehicle &holder, const std::string &id)
Constructor.
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.
A device which collects info on the vehicle trip (mainly on departure and arrival) ...
A storage for options typed value containers)
Abstract in-vehicle device.
void addDescription(const std::string &name, const std::string &subtopic, const std::string &description)
Adds a description for an option.
static void initEdgeFilter()
initialize edge filter (once)
virtual const std::string & getID() const =0
Get the vehicle's ID.