43 #ifdef CHECK_MEMORY_LEAKS 45 #endif // CHECK_MEMORY_LEAKS 61 const bool ignoreStopErrors,
const bool fromRouteFile) {
virtual SUMOVehicle * buildVehicle(SUMOVehicleParameter *defs, const MSRoute *route, const MSVehicleType *type, const bool ignoreStopErrors, const bool fromRouteFile=true)
Builds a vehicle, increases the number of built vehicles.
SUMOTime computeRandomDepartOffset() const
compute (optional) random offset to the departure time
A vehicle from the mesoscopic point of view.
static MTRand * getParsingRNG()
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
The car-following model and parameter.
SUMOReal computeChosenSpeedDeviation(MTRand *rng, const SUMOReal minDevFactor=0.2) const
Computes and returns the speed deviation.
Representation of a vehicle.
SUMOTime depart
The vehicle's departure time.
int myLoadedVehNo
The number of build vehicles.
~MEVehicleControl()
Destructor.
The vehicle was built, but has not yet departed.
void addStops(const bool ignoreStopErrors)
Adds stops to the built vehicle.
Structure representing possible vehicle parameter.
void informVehicleStateListener(const SUMOVehicle *const vehicle, VehicleState to)
Informs all added listeners about a vehicle's state change.
MEVehicleControl()
Constructor.
The class responsible for building and deletion of vehicles.