65 bool addRouteStops =
true)
override;
std::shared_ptr< const MSRoute > ConstMSRoutePtr
The class responsible for building and deletion of vehicles (gui-version)
GUIMEVehicleControl()
Constructor.
virtual std::pair< double, double > getVehicleMeanSpeeds() const override
get current absolute and relative mean vehicle speed in the network
void secureVehicles()
lock access to vehicle removal/additions for thread synchronization
GUIMEVehicleControl(const GUIMEVehicleControl &s)
invalidated copy constructor
bool addVehicle(const std::string &id, SUMOVehicle *v) override
Tries to insert the vehicle into the internal vehicle container.
virtual int getHaltingVehicleNo() const override
Returns the number of halting vehicles.
GUIMEVehicleControl & operator=(const GUIMEVehicleControl &s)
invalidated assignment operator
~GUIMEVehicleControl()
Destructor.
void releaseVehicles()
unlock access to vehicle removal/additions for thread synchronization
SUMOVehicle * buildVehicle(SUMOVehicleParameter *defs, ConstMSRoutePtr route, MSVehicleType *type, const bool ignoreStopErrors, const VehicleDefinitionSource source=VehicleDefinitionSource::ROUTEFILE, bool addRouteStops=true) override
Builds a vehicle, increases the number of built vehicles.
void deleteVehicle(SUMOVehicle *v, bool discard=false, bool wasKept=false) override
Deletes the vehicle.
FXMutex myLock
The mutex used to avoid concurrent updates of the vehicle buffer.
void insertVehicleIDs(std::vector< GUIGlID > &into)
Returns the list of all known vehicles by gl-id.
The class responsible for building and deletion of vehicles (gui-version)
VehicleDefinitionSource
possible origins of a vehicle definition
The car-following model and parameter.
Representation of a vehicle.
Structure representing possible vehicle parameter.