50 const bool ignoreStopErrors,
const bool fromRouteFile) {
59 FXMutexLock locker(
myLock);
66 FXMutexLock locker(
myLock);
73 FXMutexLock locker(
myLock);
78 std::pair<double, double>
80 FXMutexLock locker(
myLock);
87 FXMutexLock locker(
myLock);
GUIGlID getGlID() const
Returns the numerical id of the object.
virtual std::pair< double, double > getVehicleMeanSpeeds() const
get current absolute and relative mean vehicle speed in the network
void secureVehicles()
lock access to vehicle removal/additions for thread synchronization
FXMutex myLock
The mutex used to avoid concurrent updates of the vehicle buffer.
void insertVehicleIDs(std::vector< GUIGlID > &into, bool listParking, bool listTeleporting)
Returns the list of all known vehicles by gl-id.
void deleteVehicle(SUMOVehicle *v, bool discard=false)
Deletes the vehicle.
bool addVehicle(const std::string &id, SUMOVehicle *v)
Tries to insert the vehicle into the internal vehicle container.
void releaseVehicles()
unlock access to vehicle removal/additions for thread synchronization
virtual int getHaltingVehicleNo() const
Returns the number of halting vehicles.
~GUIVehicleControl()
Destructor.
GUIVehicleControl()
Constructor.
SUMOVehicle * buildVehicle(SUMOVehicleParameter *defs, const MSRoute *route, MSVehicleType *type, const bool ignoreStopErrors, const bool fromRouteFile=true)
Builds a vehicle, increases the number of built vehicles.
A MSVehicle extended by some values for usage within the gui.
static std::mt19937 * getParsingRNG()
get parsing RNG
The class responsible for building and deletion of vehicles.
virtual void deleteVehicle(SUMOVehicle *v, bool discard=false)
Deletes the vehicle.
virtual bool addVehicle(const std::string &id, SUMOVehicle *v)
Tries to insert the vehicle into the internal vehicle container.
virtual std::pair< double, double > getVehicleMeanSpeeds() const
get current absolute and relative mean vehicle speed in the network
void initVehicle(MSBaseVehicle *built, const bool ignoreStopErrors)
virtual int getHaltingVehicleNo() const
Returns the number of halting vehicles.
VehicleDictType myVehicleDict
Dictionary of vehicles.
Representation of a vehicle in the micro simulation.
The car-following model and parameter.
double computeChosenSpeedDeviation(std::mt19937 *rng, const double minDev=-1.) const
Computes and returns the speed deviation.
Representation of a vehicle.
virtual bool isOnRoad() const =0
Returns the information whether the vehicle is on a road (is simulated)
virtual bool isParking() const =0
Returns the information whether the vehicle is parked.
Structure representing possible vehicle parameter.