39 #ifdef CHECK_MEMORY_LEAKS 41 #endif // CHECK_MEMORY_LEAKS ODMatrix & myMatrix
The matrix to fill.
ROMARouteHandler(ODMatrix &matrix)
standard constructor
std::string vtypeid
The vehicle's type id.
static SUMOVehicleParameter * parseVehicleAttributes(const SUMOSAXAttributes &attrs, const bool optionalID=false, const bool skipDepart=false, const bool isPerson=false)
Parses a vehicle's attributes.
virtual ~ROMARouteHandler()
standard destructor
SAX-handler base for SUMO-files.
static OptionsCont & getOptions()
Retrieves the options.
std::string toTaz
The vehicle's destination zone (district)
virtual std::string getString(int id) const =0
Returns the string-value of the named (by its enum-value) attribute.
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
std::vector< std::string > myTazParamKeys
The keys for reading taz.
Encapsulated SAX-Attributes.
An O/D (origin/destination) matrix.
SUMOTime depart
The vehicle's departure time.
std::vector< std::string > getStringVector(const std::string &name) const
Returns the list of string-vector-value of the named option (only for Option_String) ...
std::string fromTaz
The vehicle's origin zone (district)
void myEndElement(int element)
Callback method for a closing tag to implement by derived classes.
SUMOVehicleParameter * myVehicleParameter
The current vehicle parameters.
std::string id
The vehicle's id.
bool add(SUMOReal vehicleNumber, SUMOTime begin, SUMOTime end, const std::string &origin, const std::string &destination, const std::string &vehicleType)
Builds a single cell from the given values, verifying them.