SUMO - Simulation of Urban MObility
|
The class responsible for building and deletion of vehicles. More...
#include <MSVehicleControl.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... | |
void | addWaiting (const MSEdge *const edge, SUMOVehicle *vehicle) |
SUMOVehicle * | getWaitingVehicle (const MSEdge *const edge, const std::set< std::string > &lines) |
MSVehicleControl () | |
Constructor. More... | |
void | registerCollision () |
registers one collision-related teleport More... | |
void | registerEmergencyStop () |
register emergency stop 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 | removeWaiting (const MSEdge *const edge, SUMOVehicle *vehicle) |
void | unregisterOneWaitingForPerson () |
decreases the count of vehicles waiting for a person to allow recogniztion of person related deadlocks More... | |
virtual | ~MSVehicleControl () |
Destructor. More... | |
Vehicle creation | |
virtual 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 | |
virtual bool | addVehicle (const std::string &id, SUMOVehicle *v) |
Tries to insert the vehicle into the internal vehicle container. More... | |
SUMOVehicle * | getVehicle (const std::string &id) const |
Returns the vehicle with the given id. More... | |
virtual void | deleteVehicle (SUMOVehicle *v, bool discard=false) |
Deletes the vehicle. 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... | |
unsigned int | getQuota (SUMOReal frac=-1) const |
Returns the number of instances of the current vehicle that shall be emitted considering that "frac" of all vehicles shall be emitted overall if a negative fraction is given the demand scaling factor is used (–scale) 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... | |
unsigned int | getEmergencyStops () const |
return the number of emergency stops 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... | |
unsigned int | myEmergencyStops |
The number of emergency stops. 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 | |
bool | checkVType (const std::string &id) |
Checks whether the vehicle type (distribution) may be added. 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... | |
SUMOTime | myMaxRandomDepartOffset |
The maximum random offset to be added to vehicles departure times (non-negative) More... | |
MSVehicleControl (const MSVehicleControl &s) | |
invalidated copy constructor More... | |
MSVehicleControl & | operator= (const MSVehicleControl &s) |
invalidated assignment operator More... | |
The class responsible for building and deletion of vehicles.
This class is responsible for vehicle building and deletion. It stores vehicle types, vehicles and statistics about the last.
This class also realizes the tripinfos and the vehroutes - outputs, both generated when a vehicle is removed from the simulation, see scheduleVehicleRemoval.
Use this class for the pure microsim and GUIVehicleControl within the gui.
Definition at line 75 of file MSVehicleControl.h.
typedef std::map<std::string, SUMOVehicle*>::const_iterator MSVehicleControl::constVehIt |
Definition of the internal vehicles map iterator.
Definition at line 78 of file MSVehicleControl.h.
|
protected |
Vehicle dictionary type.
Definition at line 474 of file MSVehicleControl.h.
|
protected |
Vehicle type dictionary type.
Definition at line 484 of file MSVehicleControl.h.
|
protected |
Vehicle type distribution dictionary type.
Definition at line 489 of file MSVehicleControl.h.
MSVehicleControl::MSVehicleControl | ( | ) |
Constructor.
Definition at line 59 of file MSVehicleControl.cpp.
References MSVehicleType::build(), DEFAULT_VTYPE_ID, OptionsCont::getFloat(), OptionsCont::getOptions(), OptionsCont::getString(), OptionsCont::isSet(), myMaxRandomDepartOffset, myScale, myVTypeDict, string2time(), and SVC_IGNORING.
|
virtual |
Destructor.
Definition at line 84 of file MSVehicleControl.cpp.
References myVehicleDict, myVTypeDict, and myVTypeDistDict.
|
private |
invalidated copy constructor
void MSVehicleControl::abortWaiting | ( | ) |
removes any vehicles that are still waiting
Definition at line 324 of file MSVehicleControl.cpp.
References myVehicleDict, and WRITE_WARNING.
Referenced by MSNet::simulationState().
|
virtual |
Tries to insert the vehicle into the internal vehicle container.
Checks whether another vehicle with the same id exists; returns false if so. Otherwise, the vehicle is added to "myVehicleDict" and true is returned.
The vehicle control gets responsible for vehicle deletion.
[in] | id | The id of the vehicle |
[in] | v | The vehicle |
Reimplemented in GUIVehicleControl.
Definition at line 172 of file MSVehicleControl.cpp.
References myVehicleDict.
Referenced by GUIVehicleControl::addVehicle(), MSInsertionControl::checkFlows(), MSRouteHandler::closeVehicle(), MSStateHandler::myStartElement(), and TraCIServerAPI_Vehicle::processSet().
bool MSVehicleControl::addVType | ( | MSVehicleType * | vehType | ) |
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 235 of file MSVehicleControl.cpp.
References checkVType(), MSVehicleType::getID(), and myVTypeDict.
Referenced by MSStateHandler::myEndElement().
bool MSVehicleControl::addVTypeDistribution | ( | const std::string & | id, |
RandomDistributor< MSVehicleType * > * | vehTypeDistribution | ||
) |
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 245 of file MSVehicleControl.cpp.
References checkVType(), and myVTypeDistDict.
Referenced by MSStateHandler::myStartElement().
void MSVehicleControl::addWaiting | ( | const MSEdge *const | edge, |
SUMOVehicle * | vehicle | ||
) |
Definition at line 290 of file MSVehicleControl.cpp.
References myWaiting.
Referenced by MSRouteHandler::closeVehicle(), and MSVehicle::processNextStop().
|
virtual |
Builds a vehicle, increases the number of built vehicles.
Builds a MSVehicle instance using the given parameter. Increases the number of loaded vehicles ("myLoadedVehNo").
[in] | defs | The parameter defining the vehicle |
[in] | route | The route of this vehicle |
[in] | type | The type of this vehicle |
Reimplemented in GUIVehicleControl.
Definition at line 104 of file MSVehicleControl.cpp.
References MSVehicleType::computeChosenSpeedDeviation(), DELTA_T, SUMOVehicleParameter::depart, MSNet::getInstance(), MSNet::informVehicleStateListener(), myLoadedVehNo, myMaxRandomDepartOffset, myVehicleParamsRNG, MTRand::rand(), and MSNet::VEHICLE_STATE_BUILT.
Referenced by MSInsertionControl::checkFlows(), MSRouteHandler::closeVehicle(), MSCalibrator::execute(), MSStateHandler::myStartElement(), and TraCIServerAPI_Vehicle::processSet().
|
private |
Checks whether the vehicle type (distribution) may be added.
This method checks also whether the default type may still be replaced
[in] | id | The id of the vehicle type (distribution) to add |
Definition at line 217 of file MSVehicleControl.cpp.
References DEFAULT_VTYPE_ID, myDefaultVTypeMayBeDeleted, myVTypeDict, and myVTypeDistDict.
Referenced by addVType(), and addVTypeDistribution().
|
virtual |
Deletes the vehicle.
[in] | v | The vehicle to delete |
Reimplemented in GUIVehicleControl.
Definition at line 194 of file MSVehicleControl.cpp.
References SUMOVehicle::getID(), myDiscarded, myEndedVehNo, and myVehicleDict.
Referenced by MSInsertionControl::checkFlows(), MSInsertionControl::clearPendingVehicles(), MSRouteHandler::closeVehicle(), GUIVehicleControl::deleteVehicle(), MSCalibrator::execute(), scheduleVehicleRemoval(), and MSInsertionControl::tryInsert().
|
inline |
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 myEndedVehNo, myLoadedVehNo, and myWaitingForPerson.
Referenced by MSNet::simulationState().
|
inline |
return the number of collisions
Definition at line 245 of file MSVehicleControl.h.
References myCollisions.
Referenced by MSNet::closeSimulation(), and GUINet::getParameterWindow().
|
inline |
Returns the number of inserted vehicles.
Definition at line 221 of file MSVehicleControl.h.
References myDiscarded, myEndedVehNo, and myRunningVehNo.
Referenced by MSNet::closeSimulation(), GUINet::getParameterWindow(), MSNet::postSimStepOutput(), and MSNet::writeOutput().
|
inline |
return the number of emergency stops
Definition at line 270 of file MSVehicleControl.h.
References myEmergencyStops.
Referenced by MSNet::closeSimulation().
|
inline |
Returns the number of removed vehicles.
Definition at line 205 of file MSVehicleControl.h.
References myEndedVehNo.
Referenced by GUINet::getParameterWindow(), and MSNet::writeOutput().
|
inline |
Returns the number of build vehicles.
Definition at line 197 of file MSVehicleControl.h.
References myLoadedVehNo.
Referenced by MSNet::closeSimulation(), GUINet::getParameterWindow(), and MSNet::writeOutput().
Returns the number of instances of the current vehicle that shall be emitted considering that "frac" of all vehicles shall be emitted overall if a negative fraction is given the demand scaling factor is used (–scale)
Definition at line 332 of file MSVehicleControl.cpp.
References myLoadedVehNo, and myScale.
Referenced by MSInsertionControl::checkFlows(), MSRouteHandler::closeVehicle(), and MSDevice::equippedByDefaultAssignmentOptions().
|
inline |
Returns the number of build and inserted, but not yet deleted vehicles.
Definition at line 213 of file MSVehicleControl.h.
References myRunningVehNo.
Referenced by MSNet::closeSimulation(), GUINet::getParameterWindow(), MSNet::postSimStepOutput(), GUINet::setSimDuration(), MSNet::simulationState(), MSNet::simulationStep(), and MSNet::writeOutput().
|
inline |
return the number of teleports (including collisions)
Definition at line 265 of file MSVehicleControl.h.
References myCollisions, myTeleportsJam, myTeleportsWrongLane, and myTeleportsYield.
Referenced by MSNet::closeSimulation(), and GUINet::getParameterWindow().
|
inline |
return the number of teleports due to jamming
Definition at line 250 of file MSVehicleControl.h.
References myTeleportsJam.
Referenced by MSNet::closeSimulation().
|
inline |
return the number of teleports due to vehicles stuck on the wrong lane
Definition at line 260 of file MSVehicleControl.h.
References myTeleportsWrongLane.
Referenced by MSNet::closeSimulation().
|
inline |
return the number of teleports due to vehicles stuck on a minor road
Definition at line 255 of file MSVehicleControl.h.
References myTeleportsYield.
Referenced by MSNet::closeSimulation().
|
inline |
Returns the total departure delay.
Definition at line 278 of file MSVehicleControl.h.
References myTotalDepartureDelay.
Referenced by MSNet::writeOutput().
|
inline |
Returns the total travel time.
Definition at line 286 of file MSVehicleControl.h.
References myTotalTravelTime.
Referenced by MSNet::writeOutput().
SUMOVehicle * MSVehicleControl::getVehicle | ( | const std::string & | id | ) | const |
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 184 of file MSVehicleControl.cpp.
References 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().
MSVehicleType * MSVehicleControl::getVType | ( | const std::string & | id = DEFAULT_VTYPE_ID | ) |
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 261 of file MSVehicleControl.cpp.
References DEFAULT_VTYPE_ID, myDefaultVTypeMayBeDeleted, myVehicleParamsRNG, myVTypeDict, and myVTypeDistDict.
Referenced by MSInsertionControl::checkFlows(), MSRouteHandler::closePerson(), MSRouteHandler::closeVehicle(), MSCalibrator::execute(), MSRouteHandler::myStartElement(), MSStateHandler::myStartElement(), MSCalibrator::myStartElement(), MSRouteHandler::openVehicleTypeDistribution(), TraCIServerAPI_VehicleType::processGet(), TraCIServerAPI_Vehicle::processSet(), TraCIServerAPI_VehicleType::processSet(), MSCalibrator::remainingVehicleCapacity(), and MSMeanData_Emissions::MSLaneMeanDataValues::write().
SUMOVehicle * MSVehicleControl::getWaitingVehicle | ( | const MSEdge *const | edge, |
const std::set< std::string > & | lines | ||
) |
Definition at line 310 of file MSVehicleControl.cpp.
References SUMOVehicle::getParameter(), SUMOVehicleParameter::line, and myWaiting.
Referenced by MSPerson::MSPersonStage_Driving::proceed().
bool MSVehicleControl::hasVTypeDistribution | ( | const std::string & | id | ) | const |
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 255 of file MSVehicleControl.cpp.
References myVTypeDistDict.
Referenced by MSInsertionControl::add().
void MSVehicleControl::insertVTypeIDs | ( | std::vector< std::string > & | into | ) | const |
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 278 of file MSVehicleControl.cpp.
References myVTypeDict, and myVTypeDistDict.
Referenced by TraCIServerAPI_VehicleType::processGet().
MSVehicleControl::constVehIt MSVehicleControl::loadedVehBegin | ( | ) | const |
Returns the begin of the internal vehicle map.
Definition at line 205 of file MSVehicleControl.cpp.
References myVehicleDict.
Referenced by GUIApplicationWindow::checkGamingEvents(), MSVTypeProbe::execute(), MSVTKExport::getPositions(), MSVTKExport::getSpeed(), TraCIServerAPI_Vehicle::processGet(), MSEmissionExport::write(), MSFCDExport::write(), MSAmitranTrajectories::write(), and MSFullExport::writeVehicles().
MSVehicleControl::constVehIt MSVehicleControl::loadedVehEnd | ( | ) | const |
Returns the end of the internal vehicle map.
Definition at line 211 of file MSVehicleControl.cpp.
References myVehicleDict.
Referenced by GUIApplicationWindow::checkGamingEvents(), MSVTypeProbe::execute(), MSVTKExport::getPositions(), MSVTKExport::getSpeed(), TraCIServerAPI_Vehicle::processGet(), MSEmissionExport::write(), MSFCDExport::write(), MSAmitranTrajectories::write(), and MSFullExport::writeVehicles().
|
private |
invalidated assignment operator
|
inline |
registers one collision-related teleport
Definition at line 369 of file MSVehicleControl.h.
References myCollisions.
Referenced by MSLane::detectCollisions(), and MSLane::executeMovements().
|
inline |
register emergency stop
Definition at line 389 of file MSVehicleControl.h.
References myEmergencyStops.
Referenced by MSVehicle::executeMove().
|
inline |
increases the count of vehicles waiting for a person to allow recogniztion of person related deadlocks
Definition at line 358 of file MSVehicleControl.h.
References myWaitingForPerson.
Referenced by MSRouteHandler::closeVehicle(), and MSVehicle::processNextStop().
|
inline |
register one non-collision-related teleport
Definition at line 374 of file MSVehicleControl.h.
References myTeleportsJam.
Referenced by MSLane::executeMovements().
|
inline |
register one non-collision-related teleport
Definition at line 384 of file MSVehicleControl.h.
References myTeleportsWrongLane.
Referenced by MSLane::executeMovements().
|
inline |
register one non-collision-related teleport
Definition at line 379 of file MSVehicleControl.h.
References myTeleportsYield.
Referenced by MSLane::executeMovements().
void MSVehicleControl::removeWaiting | ( | const MSEdge *const | edge, |
SUMOVehicle * | vehicle | ||
) |
Definition at line 299 of file MSVehicleControl.cpp.
References myWaiting.
Referenced by MSPerson::MSPersonStage_Driving::proceed(), and MSVehicle::resumeFromStopping().
void MSVehicleControl::saveState | ( | OutputDevice & | out | ) |
Saves the current state into the given stream.
Definition at line 152 of file MSVehicleControl.cpp.
References OutputDevice::closeTag(), myEndedVehNo, myRunningVehNo, myTotalDepartureDelay, myTotalTravelTime, myVehicleDict, myVTypeDict, 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().
void MSVehicleControl::scheduleVehicleRemoval | ( | SUMOVehicle * | veh | ) |
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 119 of file MSVehicleControl.cpp.
References OutputDevice::closeTag(), deleteVehicle(), SUMOVehicle::getDeparture(), OutputDevice::getDeviceByOption(), SUMOVehicle::getDevices(), MSNet::getInstance(), OptionsCont::getOptions(), MSNet::informVehicleStateListener(), myRunningVehNo, myTotalTravelTime, STEPS2TIME, and MSNet::VEHICLE_STATE_ARRIVED.
Referenced by MSVehicleTransfer::add(), MSVehicleTransfer::checkInsertions(), MSLane::executeMovements(), TraCIServerAPI_Vehicle::processSet(), and MSCalibrator::removePending().
void MSVehicleControl::setState | ( | int | runningVehNo, |
int | endedVehNo, | ||
SUMOReal | totalDepartureDelay, | ||
SUMOReal | totalTravelTime | ||
) |
Sets the current state variables as loaded from the stream.
Definition at line 143 of file MSVehicleControl.cpp.
References myEndedVehNo, myRunningVehNo, myTotalDepartureDelay, and myTotalTravelTime.
Referenced by MSStateHandler::myStartElement().
|
inline |
decreases the count of vehicles waiting for a person to allow recogniztion of person related deadlocks
Definition at line 364 of file MSVehicleControl.h.
References myWaitingForPerson.
Referenced by MSPerson::MSPersonStage_Driving::proceed(), MSVehicle::processNextStop(), and MSVehicle::resumeFromStopping().
void MSVehicleControl::vehicleDeparted | ( | const SUMOVehicle & | v | ) |
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 135 of file MSVehicleControl.cpp.
References SUMOVehicleParameter::depart, SUMOVehicle::getDeparture(), MSNet::getInstance(), SUMOVehicle::getParameter(), MSNet::informVehicleStateListener(), myRunningVehNo, myTotalDepartureDelay, STEPFLOOR, STEPS2TIME, and MSNet::VEHICLE_STATE_DEPARTED.
Referenced by MSBaseVehicle::onDepart().
|
protected |
The number of collisions.
Definition at line 442 of file MSVehicleControl.h.
Referenced by getCollisionCount(), getTeleportCount(), and registerCollision().
|
protected |
Whether no vehicle type was loaded.
Definition at line 494 of file MSVehicleControl.h.
Referenced by checkVType(), and getVType().
|
protected |
The number of vehicles which were discarded while loading.
Definition at line 439 of file MSVehicleControl.h.
Referenced by deleteVehicle(), and getDepartedVehicleNo().
|
protected |
The number of emergency stops.
Definition at line 454 of file MSVehicleControl.h.
Referenced by getEmergencyStops(), and registerEmergencyStop().
|
protected |
The number of removed vehicles.
Definition at line 436 of file MSVehicleControl.h.
Referenced by deleteVehicle(), getActiveVehicleCount(), getDepartedVehicleNo(), getEndedVehicleNo(), saveState(), and setState().
|
protected |
The number of build vehicles.
Definition at line 430 of file MSVehicleControl.h.
Referenced by GUIVehicleControl::buildVehicle(), buildVehicle(), getActiveVehicleCount(), getLoadedVehicleNo(), and getQuota().
|
protected |
The maximum random offset to be added to vehicles departure times (non-negative)
Definition at line 506 of file MSVehicleControl.h.
Referenced by GUIVehicleControl::buildVehicle(), buildVehicle(), and MSVehicleControl().
|
protected |
The number of vehicles within the network (build and inserted but not removed)
Definition at line 433 of file MSVehicleControl.h.
Referenced by getDepartedVehicleNo(), getRunningVehicleNo(), saveState(), scheduleVehicleRemoval(), setState(), and vehicleDeparted().
|
protected |
The scaling factor (especially for inc-dua)
Definition at line 503 of file MSVehicleControl.h.
Referenced by getQuota(), and MSVehicleControl().
|
protected |
The number of teleports due to jam.
Definition at line 445 of file MSVehicleControl.h.
Referenced by getTeleportCount(), getTeleportsJam(), and registerTeleportJam().
|
protected |
The number of teleports due to vehicles stuck on the wrong lane.
Definition at line 451 of file MSVehicleControl.h.
Referenced by getTeleportCount(), getTeleportsWrongLane(), and registerTeleportWrongLane().
|
protected |
The number of teleports due to vehicles stuck on a minor road.
Definition at line 448 of file MSVehicleControl.h.
Referenced by getTeleportCount(), getTeleportsYield(), and registerTeleportYield().
|
protected |
The aggregated time vehicles had to wait for departure (in seconds)
Definition at line 463 of file MSVehicleControl.h.
Referenced by getTotalDepartureDelay(), saveState(), setState(), and vehicleDeparted().
|
protected |
The aggregated time vehicles needed to aacomplish their route (in seconds)
Definition at line 466 of file MSVehicleControl.h.
Referenced by getTotalTravelTime(), saveState(), scheduleVehicleRemoval(), and setState().
|
protected |
Dictionary of vehicles.
Definition at line 476 of file MSVehicleControl.h.
Referenced by abortWaiting(), addVehicle(), deleteVehicle(), getVehicle(), GUIVehicleControl::insertVehicleIDs(), loadedVehBegin(), loadedVehEnd(), saveState(), and ~MSVehicleControl().
|
static |
A random number generator used to choose from vtype/route distributions and computing the speed factors.
Definition at line 413 of file MSVehicleControl.h.
Referenced by GUIVehicleControl::buildVehicle(), buildVehicle(), getVType(), main(), MSVehicle::MSVehicle(), and GUILoadThread::run().
|
protected |
Dictionary of vehicle types.
Definition at line 486 of file MSVehicleControl.h.
Referenced by addVType(), checkVType(), getVType(), insertVTypeIDs(), MSVehicleControl(), saveState(), and ~MSVehicleControl().
|
protected |
A distribution of vehicle types (probability->vehicle type)
Definition at line 491 of file MSVehicleControl.h.
Referenced by addVTypeDistribution(), checkVType(), getVType(), hasVTypeDistribution(), insertVTypeIDs(), saveState(), and ~MSVehicleControl().
|
protected |
the lists of waiting vehicles
Definition at line 497 of file MSVehicleControl.h.
Referenced by addWaiting(), getWaitingVehicle(), and removeWaiting().
|
protected |
the number of vehicles contained in myWaiting which can only continue by being triggered
Definition at line 500 of file MSVehicleControl.h.
Referenced by getActiveVehicleCount(), registerOneWaitingForPerson(), and unregisterOneWaitingForPerson().