SUMO - Simulation of Urban MObility
|
The class responsible for building and deletion of vehicles (gui-version) More...
#include <GUIVehicleControl.h>
Public Types | |
typedef std::map< std::string, SUMOVehicle * > ::const_iterator | constVehIt |
Definition of the internal vehicles map iterator. More... | |
Public Member Functions | |
void | abortWaiting () |
removes any vehicles that are still waiting More... | |
bool | addVehicle (const std::string &id, SUMOVehicle *v) |
Tries to insert the vehicle into the internal vehicle container. More... | |
void | addWaiting (const MSEdge *const edge, SUMOVehicle *vehicle) |
void | deleteVehicle (SUMOVehicle *v, bool discard=false) |
Deletes the vehicle. More... | |
SUMOVehicle * | getWaitingVehicle (const MSEdge *const edge, const std::set< std::string > &lines) |
GUIVehicleControl () | |
Constructor. More... | |
void | insertVehicleIDs (std::vector< GUIGlID > &into) |
Returns the list of all known vehicles by gl-id. More... | |
void | registerCollision () |
registers one collision-related teleport More... | |
void | registerOneWaitingForPerson () |
increases the count of vehicles waiting for a person to allow recogniztion of person related deadlocks More... | |
void | registerTeleportJam () |
register one non-collision-related teleport More... | |
void | registerTeleportWrongLane () |
register one non-collision-related teleport More... | |
void | registerTeleportYield () |
register one non-collision-related teleport More... | |
void | releaseVehicles () |
unlock access to vehicle removal/additions for thread synchronization More... | |
void | removeWaiting (const MSEdge *const edge, SUMOVehicle *vehicle) |
void | secureVehicles () |
lock access to vehicle removal/additions for thread synchronization More... | |
void | unregisterOneWaitingForPerson () |
decreases the count of vehicles waiting for a person to allow recogniztion of person related deadlocks More... | |
~GUIVehicleControl () | |
Destructor. More... | |
Vehicle creation | |
SUMOVehicle * | buildVehicle (SUMOVehicleParameter *defs, const MSRoute *route, const MSVehicleType *type) |
Builds a vehicle, increases the number of built vehicles. More... | |
Insertion, deletion and retrieval of vehicles | |
SUMOVehicle * | getVehicle (const std::string &id) const |
Returns the vehicle with the given id. More... | |
void | scheduleVehicleRemoval (SUMOVehicle *veh) |
Removes a vehicle after it has ended. More... | |
constVehIt | loadedVehBegin () const |
Returns the begin of the internal vehicle map. More... | |
constVehIt | loadedVehEnd () const |
Returns the end of the internal vehicle map. More... | |
Setting vehicle statistics | |
void | vehicleDeparted (const SUMOVehicle &v) |
Informs this control about a vehicle's departure. More... | |
Retrieval of vehicle statistics (always accessable) | |
unsigned int | getLoadedVehicleNo () const |
Returns the number of build vehicles. More... | |
unsigned int | getEndedVehicleNo () const |
Returns the number of removed vehicles. More... | |
unsigned int | getRunningVehicleNo () const |
Returns the number of build and inserted, but not yet deleted vehicles. More... | |
unsigned int | getDepartedVehicleNo () const |
Returns the number of inserted vehicles. More... | |
bool | isInQuota (SUMOReal frac=-1) const |
Returns the information whether the currently vehicle number shall be emitted considering that only frac of all vehicles shall be emitted overall if a negative fraction is given the demand scaling factor is used (–scale or –incremental-dua-step / –incremental-dua-base) More... | |
int | getActiveVehicleCount () const |
Returns the number of build vehicles that have not been removed or need to wait for a passenger. More... | |
unsigned int | getCollisionCount () const |
return the number of collisions More... | |
unsigned int | getTeleportsJam () const |
return the number of teleports due to jamming More... | |
unsigned int | getTeleportsYield () const |
return the number of teleports due to vehicles stuck on a minor road More... | |
unsigned int | getTeleportsWrongLane () const |
return the number of teleports due to vehicles stuck on the wrong lane More... | |
unsigned int | getTeleportCount () const |
return the number of teleports (including collisions) More... | |
SUMOReal | getTotalDepartureDelay () const |
Returns the total departure delay. More... | |
SUMOReal | getTotalTravelTime () const |
Returns the total travel time. More... | |
Insertion and retrieval of vehicle types | |
bool | addVType (MSVehicleType *vehType) |
Adds a vehicle type. More... | |
bool | addVTypeDistribution (const std::string &id, RandomDistributor< MSVehicleType * > *vehTypeDistribution) |
Adds a vehicle type distribution. More... | |
bool | hasVTypeDistribution (const std::string &id) const |
Asks for a vehicle type distribution. More... | |
MSVehicleType * | getVType (const std::string &id=DEFAULT_VTYPE_ID) |
Returns the named vehicle type or a sample from the named distribution. More... | |
void | insertVTypeIDs (std::vector< std::string > &into) const |
Inserts ids of all known vehicle types and vehicle type distributions to the given vector. More... | |
State I/O (mesosim only) | |
void | setState (int runningVehNo, int endedVehNo, SUMOReal totalDepartureDelay, SUMOReal totalTravelTime) |
Sets the current state variables as loaded from the stream. More... | |
void | saveState (OutputDevice &out) |
Saves the current state into the given stream. More... | |
Static Public Attributes | |
static MTRand | myVehicleParamsRNG |
A random number generator used to choose from vtype/route distributions and computing the speed factors. More... | |
Protected Attributes | |
Vehicle statistics (always accessable) | |
unsigned int | myLoadedVehNo |
The number of build vehicles. More... | |
unsigned int | myRunningVehNo |
The number of vehicles within the network (build and inserted but not removed) More... | |
unsigned int | myEndedVehNo |
The number of removed vehicles. More... | |
unsigned int | myDiscarded |
The number of vehicles which were discarded while loading. More... | |
unsigned int | myCollisions |
The number of collisions. More... | |
unsigned int | myTeleportsJam |
The number of teleports due to jam. More... | |
unsigned int | myTeleportsYield |
The number of teleports due to vehicles stuck on a minor road. More... | |
unsigned int | myTeleportsWrongLane |
The number of teleports due to vehicles stuck on the wrong lane. More... | |
Vehicle statistics | |
SUMOReal | myTotalDepartureDelay |
The aggregated time vehicles had to wait for departure (in seconds) More... | |
SUMOReal | myTotalTravelTime |
The aggregated time vehicles needed to aacomplish their route (in seconds) More... | |
Private Member Functions | |
GUIVehicleControl (const GUIVehicleControl &s) | |
invalidated copy constructor More... | |
GUIVehicleControl & | operator= (const GUIVehicleControl &s) |
invalidated assignment operator More... | |
Private Attributes | |
MFXMutex | myLock |
The mutex used to avoid concurrent updates of the vehicle buffer. More... | |
Vehicle container | |
typedef std::map< std::string, SUMOVehicle * > | VehicleDictType |
Vehicle dictionary type. More... | |
VehicleDictType | myVehicleDict |
Dictionary of vehicles. More... | |
Vehicle type container | |
typedef std::map< std::string, MSVehicleType * > | VTypeDictType |
Vehicle type dictionary type. More... | |
typedef std::map< std::string, RandomDistributor < MSVehicleType * > * > | VTypeDistDictType |
Vehicle type distribution dictionary type. More... | |
VTypeDictType | myVTypeDict |
Dictionary of vehicle types. More... | |
VTypeDistDictType | myVTypeDistDict |
A distribution of vehicle types (probability->vehicle type) More... | |
bool | myDefaultVTypeMayBeDeleted |
Whether no vehicle type was loaded. More... | |
std::map< const MSEdge *const, std::vector< SUMOVehicle * > > | myWaiting |
the lists of waiting vehicles More... | |
unsigned int | myWaitingForPerson |
the number of vehicles contained in myWaiting which can only continue by being triggered More... | |
SUMOReal | myScale |
The scaling factor (especially for inc-dua) More... | |
The class responsible for building and deletion of vehicles (gui-version)
Builds GUIVehicle instances instead of MSVehicle.
This is partially unsecure due to concurrent access...
Recheck vehicle deletion
Definition at line 58 of file GUIVehicleControl.h.
|
inherited |
Definition of the internal vehicles map iterator.
Definition at line 78 of file MSVehicleControl.h.
|
protectedinherited |
Vehicle dictionary type.
Definition at line 461 of file MSVehicleControl.h.
|
protectedinherited |
Vehicle type dictionary type.
Definition at line 471 of file MSVehicleControl.h.
|
protectedinherited |
Vehicle type distribution dictionary type.
Definition at line 476 of file MSVehicleControl.h.
GUIVehicleControl::GUIVehicleControl | ( | ) |
Constructor.
Definition at line 47 of file GUIVehicleControl.cpp.
GUIVehicleControl::~GUIVehicleControl | ( | ) |
Destructor.
Definition at line 51 of file GUIVehicleControl.cpp.
References MFXMutex::locked(), myLock, and MFXMutex::unlock().
|
private |
invalidated copy constructor
|
inherited |
removes any vehicles that are still waiting
Definition at line 321 of file MSVehicleControl.cpp.
References MSVehicleControl::myVehicleDict, and WRITE_WARNING.
Referenced by MSNet::simulationState().
|
virtual |
Tries to insert the vehicle into the internal vehicle container.
Identical to the MSVehicleControl implementation except for locking.
[in] | id | The id of the vehicle |
[in] | v | The vehicle |
Reimplemented from MSVehicleControl.
Definition at line 70 of file GUIVehicleControl.cpp.
References MSVehicleControl::addVehicle(), and myLock.
|
inherited |
Adds a vehicle type.
If another vehicle type (or distribution) with the same id exists, false is returned. Otherwise, the vehicle type is added to the internal vehicle type container "myVTypeDict".
This control get responsible for deletion of the added vehicle type.
[in] | vehType | The vehicle type to add |
Definition at line 232 of file MSVehicleControl.cpp.
References MSVehicleControl::checkVType(), MSVehicleType::getID(), and MSVehicleControl::myVTypeDict.
Referenced by MSStateHandler::myEndElement().
|
inherited |
Adds a vehicle type distribution.
If another vehicle type (or distribution) with the same id exists, false is returned. Otherwise, the vehicle type distribution is added to the internal vehicle type distribution container "myVTypeDistDict".
This control get responsible for deletion of the added vehicle type distribution.
[in] | id | The id of the distribution to add |
[in] | vehTypeDistribution | The vehicle type distribution to add |
Definition at line 242 of file MSVehicleControl.cpp.
References MSVehicleControl::checkVType(), and MSVehicleControl::myVTypeDistDict.
Referenced by MSStateHandler::myStartElement().
|
inherited |
Definition at line 287 of file MSVehicleControl.cpp.
References MSVehicleControl::myWaiting.
Referenced by MSRouteHandler::closeVehicle(), and MSVehicle::processNextStop().
|
virtual |
Builds a vehicle, increases the number of built vehicles.
Instead of a MSVehicle, a GUIVehicle is built
[in] | defs | The parameter defining the vehicle |
[in] | route | The route of this vehicle |
[in] | type | The type of this vehicle |
Reimplemented from MSVehicleControl.
Definition at line 60 of file GUIVehicleControl.cpp.
References MSVehicleType::computeChosenSpeedDeviation(), MSNet::getInstance(), MSNet::informVehicleStateListener(), MSVehicleControl::myLoadedVehNo, MSVehicleControl::myVehicleParamsRNG, and MSNet::VEHICLE_STATE_BUILT.
|
virtual |
Deletes the vehicle.
Identical to the MSVehicleControl implementation except for locking.
[in] | v | The vehicle to delete |
discard] | Whether the vehicle is discard during loading (scale < 1) |
Reimplemented from MSVehicleControl.
Definition at line 77 of file GUIVehicleControl.cpp.
References MSVehicleControl::deleteVehicle(), and myLock.
|
inlineinherited |
Returns the number of build vehicles that have not been removed or need to wait for a passenger.
Definition at line 239 of file MSVehicleControl.h.
References MSVehicleControl::myEndedVehNo, MSVehicleControl::myLoadedVehNo, and MSVehicleControl::myWaitingForPerson.
Referenced by MSNet::simulationState().
|
inlineinherited |
return the number of collisions
Definition at line 245 of file MSVehicleControl.h.
References MSVehicleControl::myCollisions.
Referenced by MSNet::closeSimulation(), and GUINet::getParameterWindow().
|
inlineinherited |
Returns the number of inserted vehicles.
Definition at line 221 of file MSVehicleControl.h.
References MSVehicleControl::myDiscarded, MSVehicleControl::myEndedVehNo, and MSVehicleControl::myRunningVehNo.
Referenced by MSNet::closeSimulation(), GUINet::getParameterWindow(), MSNet::postSimStepOutput(), and MSNet::writeOutput().
|
inlineinherited |
Returns the number of removed vehicles.
Definition at line 205 of file MSVehicleControl.h.
References MSVehicleControl::myEndedVehNo.
Referenced by GUINet::getParameterWindow(), and MSNet::writeOutput().
|
inlineinherited |
Returns the number of build vehicles.
Definition at line 197 of file MSVehicleControl.h.
References MSVehicleControl::myLoadedVehNo.
Referenced by MSNet::closeSimulation(), GUINet::getParameterWindow(), and MSNet::writeOutput().
|
inlineinherited |
Returns the number of build and inserted, but not yet deleted vehicles.
Definition at line 213 of file MSVehicleControl.h.
References MSVehicleControl::myRunningVehNo.
Referenced by MSNet::closeSimulation(), GUINet::getParameterWindow(), MSNet::postSimStepOutput(), GUINet::setSimDuration(), MSNet::simulationState(), MSNet::simulationStep(), and MSNet::writeOutput().
|
inlineinherited |
return the number of teleports (including collisions)
Definition at line 265 of file MSVehicleControl.h.
References MSVehicleControl::myCollisions, MSVehicleControl::myTeleportsJam, MSVehicleControl::myTeleportsWrongLane, and MSVehicleControl::myTeleportsYield.
Referenced by MSNet::closeSimulation(), and GUINet::getParameterWindow().
|
inlineinherited |
return the number of teleports due to jamming
Definition at line 250 of file MSVehicleControl.h.
References MSVehicleControl::myTeleportsJam.
Referenced by MSNet::closeSimulation().
|
inlineinherited |
return the number of teleports due to vehicles stuck on the wrong lane
Definition at line 260 of file MSVehicleControl.h.
References MSVehicleControl::myTeleportsWrongLane.
Referenced by MSNet::closeSimulation().
|
inlineinherited |
return the number of teleports due to vehicles stuck on a minor road
Definition at line 255 of file MSVehicleControl.h.
References MSVehicleControl::myTeleportsYield.
Referenced by MSNet::closeSimulation().
|
inlineinherited |
Returns the total departure delay.
Definition at line 273 of file MSVehicleControl.h.
References MSVehicleControl::myTotalDepartureDelay.
Referenced by MSNet::writeOutput().
|
inlineinherited |
Returns the total travel time.
Definition at line 281 of file MSVehicleControl.h.
References MSVehicleControl::myTotalTravelTime.
Referenced by MSNet::writeOutput().
|
inherited |
Returns the vehicle with the given id.
If no vehicle with the given id is store din "myVehicleDict", 0 is returned.
[in] | id | The id of the vehicle to retrieve |
Definition at line 181 of file MSVehicleControl.cpp.
References MSVehicleControl::myVehicleDict.
Referenced by MSInsertionControl::checkFlows(), MSRouteHandler::closeVehicle(), TraCIServerAPI_Vehicle::getPosition(), MSLane::loadState(), MSStateHandler::myStartElement(), TraCIServer::postProcessVTD(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Vehicle::processSet(), TraCIServerAPI_GUI::processSet(), MSCalibrator::removePending(), and GUINet::vehicleExists().
|
inherited |
Returns the named vehicle type or a sample from the named distribution.
[in] | id | The id of the vehicle type to return. If left out, the default type is returned. |
Definition at line 258 of file MSVehicleControl.cpp.
References DEFAULT_VTYPE_ID, MSVehicleControl::myDefaultVTypeMayBeDeleted, MSVehicleControl::myVehicleParamsRNG, MSVehicleControl::myVTypeDict, and MSVehicleControl::myVTypeDistDict.
Referenced by MSInsertionControl::checkFlows(), MSRouteHandler::closePerson(), MSRouteHandler::closeVehicle(), MSCalibrator::execute(), MSStateHandler::myStartElement(), MSCalibrator::myStartElement(), MSRouteHandler::openVehicleTypeDistribution(), TraCIServerAPI_VehicleType::processGet(), TraCIServerAPI_Vehicle::processSet(), TraCIServerAPI_VehicleType::processSet(), MSCalibrator::remainingVehicleCapacity(), and MSMeanData_Emissions::MSLaneMeanDataValues::write().
|
inherited |
Definition at line 307 of file MSVehicleControl.cpp.
References SUMOVehicle::getParameter(), SUMOVehicleParameter::line, and MSVehicleControl::myWaiting.
Referenced by MSPerson::MSPersonStage_Driving::proceed().
|
inherited |
Asks for a vehicle type distribution.
If vehicle type distribution with the id exists, true is returned, false otherwise.
[in] | id | The id of the distribution |
Definition at line 252 of file MSVehicleControl.cpp.
References MSVehicleControl::myVTypeDistDict.
Referenced by MSInsertionControl::add().
void GUIVehicleControl::insertVehicleIDs | ( | std::vector< GUIGlID > & | into | ) |
Returns the list of all known vehicles by gl-id.
fill] | into The list to fill with vehicle ids |
Definition at line 84 of file GUIVehicleControl.cpp.
References SUMOVehicle::isOnRoad(), myLock, and MSVehicleControl::myVehicleDict.
|
inherited |
Inserts ids of all known vehicle types and vehicle type distributions to the given vector.
[in] | into | The vector to fill with ids |
Definition at line 275 of file MSVehicleControl.cpp.
References MSVehicleControl::myVTypeDict, and MSVehicleControl::myVTypeDistDict.
Referenced by TraCIServerAPI_VehicleType::processGet().
Returns the information whether the currently vehicle number shall be emitted considering that only frac of all vehicles shall be emitted overall if a negative fraction is given the demand scaling factor is used (–scale or –incremental-dua-step / –incremental-dua-base)
Definition at line 329 of file MSVehicleControl.cpp.
References MSVehicleControl::myLoadedVehNo, and MSVehicleControl::myScale.
Referenced by MSDevice_Emissions::buildVehicleDevices(), MSInsertionControl::checkFlows(), MSRouteHandler::closeVehicle(), and MSDevice::equippedByDefaultAssignmentOptions().
|
inherited |
Returns the begin of the internal vehicle map.
Definition at line 202 of file MSVehicleControl.cpp.
References MSVehicleControl::myVehicleDict.
Referenced by MSVTypeProbe::execute(), MSVTKExport::getPositions(), MSVTKExport::getSpeed(), TraCIServerAPI_Vehicle::processGet(), MSFCDExport::write(), MSEmissionExport::write(), and MSFullExport::writeVehicles().
|
inherited |
Returns the end of the internal vehicle map.
Definition at line 208 of file MSVehicleControl.cpp.
References MSVehicleControl::myVehicleDict.
Referenced by MSVTypeProbe::execute(), MSVTKExport::getPositions(), MSVTKExport::getSpeed(), TraCIServerAPI_Vehicle::processGet(), MSFCDExport::write(), MSEmissionExport::write(), and MSFullExport::writeVehicles().
|
private |
invalidated assignment operator
|
inlineinherited |
registers one collision-related teleport
Definition at line 364 of file MSVehicleControl.h.
References MSVehicleControl::myCollisions.
Referenced by MSLane::detectCollisions(), and MSLane::executeMovements().
|
inlineinherited |
increases the count of vehicles waiting for a person to allow recogniztion of person related deadlocks
Definition at line 353 of file MSVehicleControl.h.
References MSVehicleControl::myWaitingForPerson.
Referenced by MSRouteHandler::closeVehicle(), and MSVehicle::processNextStop().
|
inlineinherited |
register one non-collision-related teleport
Definition at line 369 of file MSVehicleControl.h.
References MSVehicleControl::myTeleportsJam.
Referenced by MSLane::executeMovements().
|
inlineinherited |
register one non-collision-related teleport
Definition at line 379 of file MSVehicleControl.h.
References MSVehicleControl::myTeleportsWrongLane.
Referenced by MSLane::executeMovements().
|
inlineinherited |
register one non-collision-related teleport
Definition at line 374 of file MSVehicleControl.h.
References MSVehicleControl::myTeleportsYield.
Referenced by MSLane::executeMovements().
void GUIVehicleControl::releaseVehicles | ( | ) |
unlock access to vehicle removal/additions for thread synchronization
Definition at line 103 of file GUIVehicleControl.cpp.
References myLock, and MFXMutex::unlock().
|
inherited |
Definition at line 296 of file MSVehicleControl.cpp.
References MSVehicleControl::myWaiting.
Referenced by MSPerson::MSPersonStage_Driving::proceed(), and MSVehicle::processNextStop().
|
inherited |
Saves the current state into the given stream.
Definition at line 149 of file MSVehicleControl.cpp.
References OutputDevice::closeTag(), MSVehicleControl::myEndedVehNo, MSVehicleControl::myRunningVehNo, MSVehicleControl::myTotalDepartureDelay, MSVehicleControl::myTotalTravelTime, MSVehicleControl::myVehicleDict, MSVehicleControl::myVTypeDict, MSVehicleControl::myVTypeDistDict, OutputDevice::openTag(), SUMO_ATTR_DEPART, SUMO_ATTR_END, SUMO_ATTR_ID, SUMO_ATTR_NUMBER, SUMO_ATTR_PROBS, SUMO_ATTR_TIME, SUMO_ATTR_VTYPES, SUMO_TAG_DELAY, SUMO_TAG_VTYPE_DISTRIBUTION, and OutputDevice::writeAttr().
Referenced by MSStateHandler::saveState().
|
inherited |
Removes a vehicle after it has ended.
Writes output to tripinfos and vehroutes if wished; decrements the number of running vehicles and increments the number of ended vehicles. Then deletes the vehicle using "deleteVehicle".
This method should be called for each vehicle that was inserted into the network and quits its ride.
[in] | veh | The vehicle to remove |
Definition at line 116 of file MSVehicleControl.cpp.
References OutputDevice::closeTag(), MSVehicleControl::deleteVehicle(), SUMOVehicle::getDeparture(), OutputDevice::getDeviceByOption(), SUMOVehicle::getDevices(), MSNet::getInstance(), OptionsCont::getOptions(), MSNet::informVehicleStateListener(), MSVehicleControl::myRunningVehNo, MSVehicleControl::myTotalTravelTime, STEPS2TIME, and MSNet::VEHICLE_STATE_ARRIVED.
Referenced by MSVehicleTransfer::addVeh(), MSVehicleTransfer::checkInsertions(), MSLane::executeMovements(), TraCIServerAPI_Vehicle::processSet(), and MSCalibrator::removePending().
void GUIVehicleControl::secureVehicles | ( | ) |
lock access to vehicle removal/additions for thread synchronization
Definition at line 97 of file GUIVehicleControl.cpp.
References MFXMutex::lock(), and myLock.
|
inherited |
Sets the current state variables as loaded from the stream.
Definition at line 140 of file MSVehicleControl.cpp.
References MSVehicleControl::myEndedVehNo, MSVehicleControl::myRunningVehNo, MSVehicleControl::myTotalDepartureDelay, and MSVehicleControl::myTotalTravelTime.
Referenced by MSStateHandler::myStartElement().
|
inlineinherited |
decreases the count of vehicles waiting for a person to allow recogniztion of person related deadlocks
Definition at line 359 of file MSVehicleControl.h.
References MSVehicleControl::myWaitingForPerson.
Referenced by MSPerson::MSPersonStage_Driving::proceed(), and MSVehicle::processNextStop().
|
inherited |
Informs this control about a vehicle's departure.
If the mean waiting time shall be computed (f.e. for summary-output), the absolut waiting time is increased by the waiting time of the given vehicle.
[in] | v | The inserted vehicle |
Definition at line 132 of file MSVehicleControl.cpp.
References SUMOVehicleParameter::depart, SUMOVehicle::getDeparture(), MSNet::getInstance(), SUMOVehicle::getParameter(), MSNet::informVehicleStateListener(), MSVehicleControl::myRunningVehNo, MSVehicleControl::myTotalDepartureDelay, STEPFLOOR, STEPS2TIME, and MSNet::VEHICLE_STATE_DEPARTED.
Referenced by MSBaseVehicle::onDepart().
|
protectedinherited |
The number of collisions.
Definition at line 432 of file MSVehicleControl.h.
Referenced by MSVehicleControl::getCollisionCount(), MSVehicleControl::getTeleportCount(), and MSVehicleControl::registerCollision().
|
protectedinherited |
Whether no vehicle type was loaded.
Definition at line 481 of file MSVehicleControl.h.
Referenced by MSVehicleControl::checkVType(), and MSVehicleControl::getVType().
|
protectedinherited |
The number of vehicles which were discarded while loading.
Definition at line 429 of file MSVehicleControl.h.
Referenced by MSVehicleControl::deleteVehicle(), and MSVehicleControl::getDepartedVehicleNo().
|
protectedinherited |
The number of removed vehicles.
Definition at line 426 of file MSVehicleControl.h.
Referenced by MSVehicleControl::deleteVehicle(), MSVehicleControl::getActiveVehicleCount(), MSVehicleControl::getDepartedVehicleNo(), MSVehicleControl::getEndedVehicleNo(), MSVehicleControl::saveState(), and MSVehicleControl::setState().
|
protectedinherited |
The number of build vehicles.
Definition at line 420 of file MSVehicleControl.h.
Referenced by buildVehicle(), MSVehicleControl::buildVehicle(), MSVehicleControl::getActiveVehicleCount(), MSVehicleControl::getLoadedVehicleNo(), and MSVehicleControl::isInQuota().
|
mutableprivate |
The mutex used to avoid concurrent updates of the vehicle buffer.
Definition at line 123 of file GUIVehicleControl.h.
Referenced by addVehicle(), deleteVehicle(), insertVehicleIDs(), releaseVehicles(), secureVehicles(), and ~GUIVehicleControl().
|
protectedinherited |
The number of vehicles within the network (build and inserted but not removed)
Definition at line 423 of file MSVehicleControl.h.
Referenced by MSVehicleControl::getDepartedVehicleNo(), MSVehicleControl::getRunningVehicleNo(), MSVehicleControl::saveState(), MSVehicleControl::scheduleVehicleRemoval(), MSVehicleControl::setState(), and MSVehicleControl::vehicleDeparted().
|
protectedinherited |
The scaling factor (especially for inc-dua)
Definition at line 490 of file MSVehicleControl.h.
Referenced by MSVehicleControl::isInQuota(), and MSVehicleControl::MSVehicleControl().
|
protectedinherited |
The number of teleports due to jam.
Definition at line 435 of file MSVehicleControl.h.
Referenced by MSVehicleControl::getTeleportCount(), MSVehicleControl::getTeleportsJam(), and MSVehicleControl::registerTeleportJam().
|
protectedinherited |
The number of teleports due to vehicles stuck on the wrong lane.
Definition at line 441 of file MSVehicleControl.h.
Referenced by MSVehicleControl::getTeleportCount(), MSVehicleControl::getTeleportsWrongLane(), and MSVehicleControl::registerTeleportWrongLane().
|
protectedinherited |
The number of teleports due to vehicles stuck on a minor road.
Definition at line 438 of file MSVehicleControl.h.
Referenced by MSVehicleControl::getTeleportCount(), MSVehicleControl::getTeleportsYield(), and MSVehicleControl::registerTeleportYield().
|
protectedinherited |
The aggregated time vehicles had to wait for departure (in seconds)
Definition at line 450 of file MSVehicleControl.h.
Referenced by MSVehicleControl::getTotalDepartureDelay(), MSVehicleControl::saveState(), MSVehicleControl::setState(), and MSVehicleControl::vehicleDeparted().
|
protectedinherited |
The aggregated time vehicles needed to aacomplish their route (in seconds)
Definition at line 453 of file MSVehicleControl.h.
Referenced by MSVehicleControl::getTotalTravelTime(), MSVehicleControl::saveState(), MSVehicleControl::scheduleVehicleRemoval(), and MSVehicleControl::setState().
|
protectedinherited |
Dictionary of vehicles.
Definition at line 463 of file MSVehicleControl.h.
Referenced by MSVehicleControl::abortWaiting(), MSVehicleControl::addVehicle(), MSVehicleControl::deleteVehicle(), MSVehicleControl::getVehicle(), insertVehicleIDs(), MSVehicleControl::loadedVehBegin(), MSVehicleControl::loadedVehEnd(), MSVehicleControl::saveState(), and MSVehicleControl::~MSVehicleControl().
|
staticinherited |
A random number generator used to choose from vtype/route distributions and computing the speed factors.
Definition at line 403 of file MSVehicleControl.h.
Referenced by buildVehicle(), MSVehicleControl::buildVehicle(), MSVehicleControl::getVType(), main(), MSVehicle::MSVehicle(), and GUILoadThread::run().
|
protectedinherited |
Dictionary of vehicle types.
Definition at line 473 of file MSVehicleControl.h.
Referenced by MSVehicleControl::addVType(), MSVehicleControl::checkVType(), MSVehicleControl::getVType(), MSVehicleControl::insertVTypeIDs(), MSVehicleControl::MSVehicleControl(), MSVehicleControl::saveState(), and MSVehicleControl::~MSVehicleControl().
|
protectedinherited |
A distribution of vehicle types (probability->vehicle type)
Definition at line 478 of file MSVehicleControl.h.
Referenced by MSVehicleControl::addVTypeDistribution(), MSVehicleControl::checkVType(), MSVehicleControl::getVType(), MSVehicleControl::hasVTypeDistribution(), MSVehicleControl::insertVTypeIDs(), MSVehicleControl::saveState(), and MSVehicleControl::~MSVehicleControl().
|
protectedinherited |
the lists of waiting vehicles
Definition at line 484 of file MSVehicleControl.h.
Referenced by MSVehicleControl::addWaiting(), MSVehicleControl::getWaitingVehicle(), and MSVehicleControl::removeWaiting().
|
protectedinherited |
the number of vehicles contained in myWaiting which can only continue by being triggered
Definition at line 487 of file MSVehicleControl.h.
Referenced by MSVehicleControl::getActiveVehicleCount(), MSVehicleControl::registerOneWaitingForPerson(), and MSVehicleControl::unregisterOneWaitingForPerson().