 |
Eclipse SUMO - Simulation of Urban MObility
|
ROMARouteHandler(ODMatrix &matrix)
standard constructor
bool wasSet(int what) const
Returns whether the given parameter was set.
virtual bool hasAttribute(int id) const =0
Returns the information whether the named (by its enum-value) attribute is within the current list.
int parametersSet
Information for the router which parameter were set, TraCI may modify this (whe changing color)
#define WRITE_WARNING(msg)
virtual std::string getString(int id) const =0
Returns the string-value of the named (by its enum-value) attribute.
SAX-handler base for SUMO-files.
parameter associated to a certain key
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
std::string vtypeid
The vehicle's type id.
virtual ~ROMARouteHandler()
standard destructor
static OptionsCont & getOptions()
Retrieves the options.
const StringVector & getStringVector(const std::string &name) const
Returns the list of string-value of the named option (only for Option_StringVector)
static SUMOVehicleParameter * parseVehicleAttributes(const SUMOSAXAttributes &attrs, const bool hardFail, const bool optionalID=false, const bool skipDepart=false, const bool isPerson=false)
Parses a vehicle's attributes.
bool add(double vehicleNumber, SUMOTime begin, SUMOTime end, const std::string &origin, const std::string &destination, const std::string &vehicleType, const bool originIsEdge=false, const bool destinationIsEdge=false)
Builds a single cell from the given values, verifying them.
std::string id
The vehicle's id.
std::string fromTaz
The vehicle's origin zone (district)
An O/D (origin/destination) matrix.
void myEndElement(int element)
Callback method for a closing tag to implement by derived classes.
ODMatrix & myMatrix
The matrix to fill.
std::vector< std::string > myTazParamKeys
The keys for reading taz.
const int VEHPARS_FROM_TAZ_SET
const int VEHPARS_TO_TAZ_SET
SUMOVehicleParameter * myVehicleParameter
The current vehicle parameters.
std::string toTaz
The vehicle's destination zone (district)
Encapsulated SAX-Attributes.
a single trip definition (used by router)