46 #ifdef CHECK_MEMORY_LEAKS
48 #endif // CHECK_MEMORY_LEAKS
56 : myParameter(pars), myType(type), myRoute(route) {}
SUMOVehicleParameter myParameter
The vehicle's parameter.
void writeStops(OutputDevice &dev) const
Writes the enclosed stops.
Structure representing possible vehicle parameter.
bool saved
Information whether this type was already saved (needed by routers)
bool isSaved() const
Returns the information whether this item was already saved.
SUMOReal getMaxSpeed() const
Returns the vehicle's maximum speed.
RORouteDef *const myRoute
The route the vehicle takes.
void saveAllAsXML(OutputDevice &os, OutputDevice *const altos, OutputDevice *const typeos, bool withExitTimes) const
Saves the complete vehicle description.
static OptionsCont & getOptions()
Retrieves the options.
A vehicle as used by router.
OutputDevice & writeXMLDefinition(OutputDevice &dev, const ROVehicle *const veh, bool asAlternatives, bool withExitTimes) const
Saves the built route / route alternatives.
SUMOTime depart
The vehicle's departure time.
const SUMOVTypeParameter *const myType
The type of the vehicle.
void write(OutputDevice &dev) const
Writes the vtype.
SUMOReal maxSpeed
The vehicle type's maximum speed [m/s].
Structure representing possible vehicle parameter.
ROVehicle(const SUMOVehicleParameter &pars, RORouteDef *route, const SUMOVTypeParameter *type)
Constructor.
Base class for a vehicle's route definition.
void write(OutputDevice &dev, const OptionsCont &oc) const
Writes the parameters as a beginning element.
virtual ROVehicle * copy(const std::string &id, unsigned int depTime, RORouteDef *newRoute) const
Returns a copy of the vehicle using a new id, departure time and route.
Static storage of an output device and its base (abstract) implementation.
bool closeTag()
Closes the most recently opened tag.
virtual ~ROVehicle()
Destructor.
std::string id
The vehicle's id.