 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
19 #ifndef GUIVehicleControl_h
20 #define GUIVehicleControl_h
74 const bool ignoreStopErrors,
const bool fromRouteFile =
true);
105 void insertVehicleIDs(std::vector<GUIGlID>& into,
bool listParking,
bool listTeleporting);
The car-following model and parameter.
bool addVehicle(const std::string &id, SUMOVehicle *v)
Tries to insert the vehicle into the internal vehicle container.
GUIVehicleControl & operator=(const GUIVehicleControl &s)
invalidated assignment operator
Representation of a vehicle.
void secureVehicles()
lock access to vehicle removal/additions for thread synchronization
The class responsible for building and deletion of vehicles (gui-version)
Structure representing possible vehicle parameter.
~GUIVehicleControl()
Destructor.
void deleteVehicle(SUMOVehicle *v, bool discard=false)
Deletes the vehicle.
virtual int getHaltingVehicleNo() const
Returns the number of halting vehicles.
virtual std::pair< double, double > getVehicleMeanSpeeds() const
get current absolute and relative mean vehicle speed in the network
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.
void releaseVehicles()
unlock access to vehicle removal/additions for thread synchronization
void insertVehicleIDs(std::vector< GUIGlID > &into, bool listParking, bool listTeleporting)
Returns the list of all known vehicles by gl-id.
The class responsible for building and deletion of vehicles.
FXMutex myLock
The mutex used to avoid concurrent updates of the vehicle buffer.