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