Eclipse SUMO - Simulation of Urban MObility
|
The class responsible for building and deletion of vehicles. More...
#include <MSVehicleControl.h>
Data Structures | |
class | DeleteKeptVehicle |
Public Types | |
typedef std::map< std::string, SUMOVehicle * >::const_iterator | constVehIt |
Definition of the internal vehicles map iterator. | |
enum | VehicleDefinitionSource { ROUTEFILE , STATE , TRIGGER , LIBSUMO , OTHER } |
possible origins of a vehicle definition More... | |
Public Member Functions | |
void | abortWaiting () |
informes about all waiting vehicles (deletion in destructor) | |
void | adaptIntermodalRouter (MSTransportableRouter &router) const |
void | discountStateRemoved (int n) |
discount vehicles that were removed during state loading | |
double | getMaxSpeedFactor () const |
return the maximum speed factor for all vehicles that ever entered the network | |
double | getMinDeceleration () const |
return the minimum deceleration capability for all road vehicles that ever entered the network | |
double | getMinDecelerationRail () const |
return the minimum deceleration capability for all ral vehicles that ever entered the network | |
double | getScale () const |
sets the demand scaling factor | |
void | handleTriggeredDepart (SUMOVehicle *v, bool add) |
register / unregister depart-triggered vehicles with edges | |
MSVehicleControl () | |
Constructor. | |
void | registerCollision (bool teleport) |
registers one collision-related teleport | |
void | registerEmergencyBraking () |
register emergency stop | |
void | registerEmergencyStop () |
register emergency stop | |
void | registerOneWaiting () |
increases the count of vehicles waiting for a transport to allow recognition of person / container related deadlocks | |
void | registerStopEnded () |
register emergency stop | |
void | registerStopStarted () |
register emergency stop | |
void | registerTeleportJam () |
register one non-collision-related teleport | |
void | registerTeleportWrongLane () |
register one non-collision-related teleport | |
void | registerTeleportYield () |
register one non-collision-related teleport | |
void | setScale (double scale) |
sets the demand scaling factor | |
void | unregisterOneWaiting () |
decreases the count of vehicles waiting for a transport to allow recognition of person / container related deadlocks | |
virtual | ~MSVehicleControl () |
Destructor. | |
Vehicle creation | |
virtual SUMOVehicle * | buildVehicle (SUMOVehicleParameter *defs, ConstMSRoutePtr route, MSVehicleType *type, const bool ignoreStopErrors, const VehicleDefinitionSource source=ROUTEFILE, bool addRouteStops=true) |
Builds a vehicle, increases the number of built vehicles. | |
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. | |
SUMOVehicle * | getVehicle (const std::string &id) const |
Returns the vehicle with the given id. | |
virtual void | deleteVehicle (SUMOVehicle *v, bool discard=false, bool wasKept=false) |
Deletes the vehicle. | |
void | deleteKeptVehicle (SUMOVehicle *veh) |
when a vehicle is kept after arrival, schedule later deletion | |
void | fixVehicleCounts () |
void | scheduleVehicleRemoval (SUMOVehicle *veh, bool checkDuplicate=false) |
Removes a vehicle after it has ended. | |
void | removePending () |
Removes a vehicle after it has ended. | |
constVehIt | loadedVehBegin () const |
Returns the begin of the internal vehicle map. | |
constVehIt | loadedVehEnd () const |
Returns the end of the internal vehicle map. | |
Setting vehicle statistics | |
void | vehicleDeparted (const SUMOVehicle &v) |
Informs this control about a vehicle's departure. | |
Retrieval of vehicle statistics (always accessable) | |
int | getLoadedVehicleNo () const |
Returns the number of build vehicles. | |
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 | |
double | getVehicleMeanSpeed () const |
double | getVehicleMeanSpeedRelative () const |
int | getEndedVehicleNo () const |
Returns the number of removed vehicles. | |
int | getArrivedVehicleNo () const |
Returns the number of arrived vehicles. | |
int | getDiscardedVehicleNo () const |
Returns the number of discarded vehicles. | |
int | getRunningVehicleNo () const |
Returns the number of build and inserted, but not yet deleted vehicles. | |
int | getDepartedVehicleNo () const |
Returns the number of inserted vehicles. | |
int | getQuota (double frac=-1, int loaded=-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) if a negative loaded number is is given, myLoadedVehNo is used. | |
int | getActiveVehicleCount () const |
Returns the number of build vehicles that have not been removed or need to wait for a passenger or a container. | |
int | getTriggeredVehicleCount () const |
return the number of vehicles that are waiting for a transportable or a join | |
int | getCollisionCount () const |
return the number of collisions | |
int | getTeleportsCollisions () const |
return the number of collisions | |
int | getTeleportsJam () const |
return the number of teleports due to jamming | |
int | getTeleportsYield () const |
return the number of teleports due to vehicles stuck on a minor road | |
int | getTeleportsWrongLane () const |
return the number of teleports due to vehicles stuck on the wrong lane | |
int | getTeleportCount () const |
return the number of teleports (including collisions) | |
int | getEmergencyStops () const |
return the number of emergency stops | |
int | getEmergencyBrakingCount () const |
return the number of emergency stops | |
int | getStoppedVehiclesCount () const |
return the number of vehicles that are currently stopped | |
double | getTotalDepartureDelay () const |
Returns the total departure delay. | |
double | getTotalTravelTime () const |
Returns the total travel time. | |
Insertion and retrieval of vehicle types | |
bool | addVType (MSVehicleType *vehType) |
Adds a vehicle type. | |
void | removeVType (const MSVehicleType *vehType) |
bool | addVTypeDistribution (const std::string &id, RandomDistributor< MSVehicleType * > *vehTypeDistribution) |
Adds a vehicle type distribution. | |
bool | hasVType (const std::string &id) const |
Asks for existence of a vehicle type. | |
bool | hasVTypeDistribution (const std::string &id) const |
Asks for a vehicle type distribution. | |
MSVehicleType * | getVType (const std::string &id=DEFAULT_VTYPE_ID, SumoRNG *rng=nullptr, bool readOnly=false) |
Returns the named vehicle type or a sample from the named distribution. | |
void | insertVTypeIDs (std::vector< std::string > &into) const |
Inserts ids of all known vehicle types and vehicle type distributions to the given vector. | |
const std::set< std::string > | getVTypeDistributionMembership (const std::string &id) const |
Return the distribution IDs the vehicle type is a member of. | |
const RandomDistributor< MSVehicleType * > * | getVTypeDistribution (const std::string &typeDistID) const |
return the vehicle type distribution with the given id | |
const std::vector< MSVehicleType * > | getPedestrianTypes (void) const |
Return all pedestrian vehicle types. | |
State I/O | |
void | setState (int runningVehNo, int loadedVehNo, int endedVehNo, double totalDepartureDelay, double totalTravelTime) |
Sets the current state variables as loaded from the stream. | |
void | saveState (OutputDevice &out) |
Saves the current state into the given stream. | |
void | clearState (const bool reinit) |
Remove all vehicles before quick-loading state. | |
Protected Member Functions | |
void | initVehicle (MSBaseVehicle *built, const bool ignoreStopErrors, bool addRouteStops, const VehicleDefinitionSource source) |
Private Member Functions | |
bool | checkVType (const std::string &id) |
Checks whether the vehicle type (distribution) may be added. | |
void | initDefaultTypes () |
create default types | |
bool | isPendingRemoval (SUMOVehicle *veh) |
whether the given vehicle is scheduled for removal | |
Private Attributes | |
Vehicle statistics (always accessible) | |
int | myLoadedVehNo |
The number of build vehicles. | |
int | myRunningVehNo |
The number of vehicles within the network (build and inserted but not removed) | |
int | myEndedVehNo |
The number of removed vehicles. | |
int | myDiscarded |
The number of vehicles which were discarded while loading. | |
int | myCollisions |
The number of collisions. | |
int | myTeleportsCollision |
The number of teleports due to collision. | |
int | myTeleportsJam |
The number of teleports due to jam. | |
int | myTeleportsYield |
The number of teleports due to vehicles stuck on a minor road. | |
int | myTeleportsWrongLane |
The number of teleports due to vehicles stuck on the wrong lane. | |
int | myEmergencyStops |
The number of emergency stops. | |
int | myEmergencyBrakingCount |
The number of emergency stops. | |
int | myStoppedVehicles |
The number of stopped vehicles. | |
Vehicle statistics | |
double | myTotalDepartureDelay |
The aggregated time vehicles had to wait for departure (in seconds) | |
double | myTotalTravelTime |
The aggregated time vehicles needed to aacomplish their route (in seconds) | |
Vehicle container | |
typedef std::map< std::string, SUMOVehicle * > | VehicleDictType |
Vehicle dictionary type. | |
VehicleDictType | myVehicleDict |
Dictionary of vehicles. | |
Vehicle type container | |
typedef std::map< std::string, MSVehicleType * > | VTypeDictType |
Vehicle type dictionary type. | |
typedef std::map< std::string, RandomDistributor< MSVehicleType * > * > | VTypeDistDictType |
Vehicle type distribution dictionary type. | |
VTypeDictType | myVTypeDict |
Dictionary of vehicle types. | |
VTypeDistDictType | myVTypeDistDict |
A distribution of vehicle types (probability->vehicle type) | |
std::map< std::string, std::set< std::string > > | myVTypeToDist |
Inverse lookup from vehicle type to distributions it is a member of. | |
std::set< std::string > | myReplaceableDefaultVTypes |
the default vehicle types which may still be replaced | |
int | myWaitingForTransportable |
the number of vehicles waiting for persons or containers contained in myWaiting which can only continue by being triggered | |
double | myScale |
The scaling factor (especially for inc-dua) | |
SUMOTime | myKeepTime |
double | myMaxSpeedFactor |
The maximum speed factor for all vehicles in the network. | |
double | myMinDeceleration |
The minimum deceleration capability for all road vehicles in the network. | |
double | myMinDecelerationRail |
The minimum deceleration capability for all rail vehicles in the network. | |
std::vector< SUMOVehicle * > | myPTVehicles |
List of vehicles which belong to public transport. | |
std::vector< SUMOVehicle * > | myPendingRemovals |
List of vehicles which are going to be removed. | |
MSVehicleControl (const MSVehicleControl &s)=delete | |
invalidated copy constructor | |
MSVehicleControl & | operator= (const MSVehicleControl &s)=delete |
invalidated assignment operator | |
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 71 of file MSVehicleControl.h.
typedef std::map<std::string,SUMOVehicle*>::const_iterator MSVehicleControl::constVehIt |
Definition of the internal vehicles map iterator.
Definition at line 74 of file MSVehicleControl.h.
|
protected |
Vehicle dictionary type.
Definition at line 645 of file MSVehicleControl.h.
|
private |
Vehicle type dictionary type.
Definition at line 668 of file MSVehicleControl.h.
|
private |
Vehicle type distribution dictionary type.
Definition at line 673 of file MSVehicleControl.h.
possible origins of a vehicle definition
Enumerator | |
---|---|
ROUTEFILE | |
STATE | |
TRIGGER | |
LIBSUMO | |
OTHER |
Definition at line 77 of file MSVehicleControl.h.
MSVehicleControl::MSVehicleControl | ( | ) |
Constructor.
Definition at line 46 of file MSVehicleControl.cpp.
References OptionsCont::getFloat(), OptionsCont::getOptions(), initDefaultTypes(), myKeepTime, myScale, and string2time().
|
virtual |
|
privatedelete |
invalidated copy constructor
void MSVehicleControl::abortWaiting | ( | ) |
informes about all waiting vehicles (deletion in destructor)
Definition at line 494 of file MSVehicleControl.cpp.
References CONTAINER_TRIGGERED, MSStop::containerTriggered, SUMOVehicleParameter::departProcedure, SUMOVehicle::getNextStop(), SUMOTrafficObject::getParameter(), SUMOVehicle::hasDeparted(), SUMOVehicle::isStoppedTriggered(), SUMOVehicleParameter::Stop::join, MSStop::joinTriggered, myVehicleDict, MSStop::pars, SPLIT, TL, MSStop::triggered, TRIGGERED, and WRITE_WARNINGF.
Referenced by MSNet::adaptToState().
void MSVehicleControl::adaptIntermodalRouter | ( | MSTransportableRouter & | router | ) | const |
Definition at line 584 of file MSVehicleControl.cpp.
References IntermodalNetwork< E, L, N, V >::addSchedule(), MSRoute::dictionary(), IntermodalRouter< E, L, N, V >::getNetwork(), and myPTVehicles.
Referenced by MSNet::adaptIntermodalRouter().
|
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". It also checks whether the vehicle has a "triggered" departure and registers it accordingly.
The vehicle control gets responsible for vehicle deletion.
[in] | id | The id of the vehicle |
[in] | v | The vehicle |
Reimplemented in GUIVehicleControl, and GUIMEVehicleControl.
Definition at line 290 of file MSVehicleControl.cpp.
References SUMOTrafficObject::getParameter(), SUMOTrafficObject::getVClass(), handleTriggeredDepart(), SUMOVehicleParameter::line, myPTVehicles, myVehicleDict, SUMOVehicleParameter::repetitionNumber, and SVC_TAXI.
Referenced by LIBSUMO_NAMESPACE::Vehicle::add(), GUIVehicleControl::addVehicle(), GUIMEVehicleControl::addVehicle(), MSRouteHandler::closeVehicle(), MSInsertionControl::determineCandidates(), and MSStageTrip::reroute().
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 382 of file MSVehicleControl.cpp.
References checkVType(), MSVehicleType::getID(), and myVTypeDict.
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 404 of file MSVehicleControl.cpp.
References checkVType(), RandomDistributor< T >::getVals(), myVTypeDistDict, and myVTypeToDist.
|
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 |
[in] | ignoreStopErrors | whether invalid stops trigger a warning only |
[in] | source | whether we are just reading the route file or creating via trigger, traci, ... |
Reimplemented in GUIVehicleControl, GUIMEVehicleControl, and MEVehicleControl.
Definition at line 112 of file MSVehicleControl.cpp.
References MSVehicleType::computeChosenSpeedDeviation(), MSRouteHandler::getParsingRNG(), initVehicle(), ROUTEFILE, and STATE.
Referenced by LIBSUMO_NAMESPACE::Vehicle::add(), MSRouteHandler::closeVehicle(), MSInsertionControl::determineCandidates(), METriggeredCalibrator::execute(), MSCalibrator::execute(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), LIBSUMO_NAMESPACE::Simulation::findRoute(), MSStageTrip::getVehicles(), and MSDevice_FCDReplay::FCDHandler::updateTrafficObjects().
|
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 368 of file MSVehicleControl.cpp.
References myReplaceableDefaultVTypes, myVTypeDict, and myVTypeDistDict.
Referenced by addVType(), and addVTypeDistribution().
void MSVehicleControl::clearState | ( | const bool | reinit | ) |
Remove all vehicles before quick-loading state.
Definition at line 253 of file MSVehicleControl.cpp.
References initDefaultTypes(), myCollisions, myDiscarded, myEmergencyBrakingCount, myEmergencyStops, myEndedVehNo, myLoadedVehNo, myPendingRemovals, myRunningVehNo, myStoppedVehicles, myTeleportsCollision, myTeleportsJam, myTeleportsWrongLane, myTeleportsYield, myTotalDepartureDelay, myTotalTravelTime, myVehicleDict, myVTypeDict, and myVTypeDistDict.
Referenced by MSNet::clearState(), and ~MSVehicleControl().
void MSVehicleControl::deleteKeptVehicle | ( | SUMOVehicle * | veh | ) |
when a vehicle is kept after arrival, schedule later deletion
Definition at line 196 of file MSVehicleControl.cpp.
References MSEventControl::addEvent(), MSNet::getEndOfTimestepEvents(), MSNet::getInstance(), myEndedVehNo, myKeepTime, and SIMSTEP.
Referenced by MSStateHandler::closeVehicle(), and removePending().
|
virtual |
Deletes the vehicle.
[in] | v | The vehicle to delete |
[discard] | Whether the vehicle is discard during loading (scale < 1) |
Reimplemented in GUIVehicleControl, and GUIMEVehicleControl.
Definition at line 349 of file MSVehicleControl.cpp.
References Named::getID(), myDiscarded, myEndedVehNo, myPTVehicles, and myVehicleDict.
Referenced by LIBSUMO_NAMESPACE::Vehicle::add(), MSInsertionControl::clearPendingVehicles(), MSRouteHandler::closeVehicle(), GUIVehicleControl::deleteVehicle(), GUIMEVehicleControl::deleteVehicle(), MSInsertionControl::determineCandidates(), METriggeredCalibrator::execute(), MSVehicleControl::DeleteKeptVehicle::execute(), MSCalibrator::execute(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), LIBSUMO_NAMESPACE::Simulation::findRoute(), LIBSUMO_NAMESPACE::Vehicle::remove(), removePending(), MSStageTrip::reroute(), MSInsertionControl::tryInsert(), and MSDevice_FCDReplay::FCDHandler::updateTrafficObjects().
|
inline |
discount vehicles that were removed during state loading
Definition at line 531 of file MSVehicleControl.h.
References myDiscarded, myEndedVehNo, and myRunningVehNo.
Referenced by MSStateHandler::myEndElement().
|
inline |
Definition at line 157 of file MSVehicleControl.h.
References myDiscarded, myEndedVehNo, and myLoadedVehNo.
Referenced by MSRouteHandler::closeVehicle().
|
inline |
Returns the number of build vehicles that have not been removed or need to wait for a passenger or a container.
Definition at line 303 of file MSVehicleControl.h.
References myEndedVehNo, myLoadedVehNo, and myWaitingForTransportable.
Referenced by LIBSUMO_NAMESPACE::Simulation::getMinExpectedNumber(), and MSNet::simulationState().
|
inline |
Returns the number of arrived vehicles.
Definition at line 261 of file MSVehicleControl.h.
References myDiscarded, and myEndedVehNo.
Referenced by GUINet::getParameterWindow(), and MSNet::writeSummaryOutput().
|
inline |
return the number of collisions
Definition at line 314 of file MSVehicleControl.h.
References myCollisions.
Referenced by GUIApplicationWindow::checkGamingEvents(), MSNet::generateStatistics(), LIBSUMO_NAMESPACE::Simulation::getParameter(), GUINet::getParameterWindow(), MSNet::writeStatistics(), and MSNet::writeSummaryOutput().
|
inline |
Returns the number of inserted vehicles.
Definition at line 284 of file MSVehicleControl.h.
References myDiscarded, myEndedVehNo, and myRunningVehNo.
Referenced by MSNet::generateStatistics(), LIBSUMO_NAMESPACE::Simulation::getParameter(), GUINet::getParameterWindow(), MSNet::postSimStepOutput(), MSNet::writeStatistics(), and MSNet::writeSummaryOutput().
|
inline |
Returns the number of discarded vehicles.
Definition at line 268 of file MSVehicleControl.h.
References myDiscarded.
Referenced by GUINet::getParameterWindow().
|
inline |
return the number of emergency stops
Definition at line 347 of file MSVehicleControl.h.
References myEmergencyBrakingCount.
Referenced by MSNet::generateStatistics(), LIBSUMO_NAMESPACE::Simulation::getParameter(), and MSNet::writeStatistics().
|
inline |
return the number of emergency stops
Definition at line 342 of file MSVehicleControl.h.
References myEmergencyStops.
Referenced by MSNet::generateStatistics(), LIBSUMO_NAMESPACE::Simulation::getParameter(), and MSNet::writeStatistics().
|
inline |
Returns the number of removed vehicles.
Definition at line 254 of file MSVehicleControl.h.
References myEndedVehNo.
Referenced by MSNet::writeSummaryOutput().
|
virtual |
Returns the number of halting vehicles.
Reimplemented in GUIVehicleControl, and GUIMEVehicleControl.
Definition at line 532 of file MSVehicleControl.cpp.
References SUMOTrafficObject::getSpeed(), SUMOVehicle::isOnRoad(), SUMOVehicle::isRemoteControlled(), loadedVehBegin(), loadedVehEnd(), and SUMO_const_haltingSpeed.
Referenced by GUIVehicleControl::getHaltingVehicleNo(), GUIMEVehicleControl::getHaltingVehicleNo(), GUINet::getParameterWindow(), and MSNet::writeSummaryOutput().
|
inline |
Returns the number of build vehicles.
Definition at line 232 of file MSVehicleControl.h.
References myLoadedVehNo.
Referenced by NLBuilder::build(), MSNet::generateStatistics(), LIBSUMO_NAMESPACE::Simulation::getParameter(), GUINet::getParameterWindow(), MSNet::writeStatistics(), and MSNet::writeSummaryOutput().
|
inline |
return the maximum speed factor for all vehicles that ever entered the network
Definition at line 543 of file MSVehicleControl.h.
References myMaxSpeedFactor.
Referenced by MSLane::getMaximumBrakeDist().
|
inline |
return the minimum deceleration capability for all road vehicles that ever entered the network
Definition at line 548 of file MSVehicleControl.h.
References myMinDeceleration.
Referenced by MSLane::getMaximumBrakeDist().
|
inline |
return the minimum deceleration capability for all ral vehicles that ever entered the network
Definition at line 553 of file MSVehicleControl.h.
References myMinDecelerationRail.
Referenced by MSLane::getMaximumBrakeDist().
const std::vector< MSVehicleType * > MSVehicleControl::getPedestrianTypes | ( | void | ) | const |
Return all pedestrian vehicle types.
Definition at line 483 of file MSVehicleControl.cpp.
References myVTypeDict, and SVC_PEDESTRIAN.
int MSVehicleControl::getQuota | ( | double | frac = -1 , |
int | loaded = -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) if a negative loaded number is is given, myLoadedVehNo is used.
Definition at line 566 of file MSVehicleControl.cpp.
References getScalingQuota(), myLoadedVehNo, and myScale.
Referenced by MSRouteHandler::addFlowTransportable(), MSRouteHandler::closeVehicle(), MSInsertionControl::determineCandidates(), and MSDevice::equippedByDefaultAssignmentOptions().
|
inline |
Returns the number of build and inserted, but not yet deleted vehicles.
Definition at line 276 of file MSVehicleControl.h.
References myRunningVehNo.
Referenced by MSNet::generateStatistics(), LIBSUMO_NAMESPACE::Simulation::getParameter(), GUINet::getParameterWindow(), GUIApplicationWindow::handleEvent_SimulationStep(), MSNet::postMoveStep(), MSNet::postSimStepOutput(), GUINet::setSimDuration(), MSNet::writeStatistics(), and MSNet::writeSummaryOutput().
|
inline |
sets the demand scaling factor
Definition at line 565 of file MSVehicleControl.h.
References myScale.
Referenced by MSRouteHandler::addFlowTransportable(), MSRouteHandler::closeVehicle(), MSInsertionControl::determineCandidates(), and LIBSUMO_NAMESPACE::Simulation::getScale().
|
inline |
return the number of vehicles that are currently stopped
Definition at line 352 of file MSVehicleControl.h.
References myStoppedVehicles.
Referenced by GUINet::getParameterWindow(), and MSNet::writeSummaryOutput().
int MSVehicleControl::getTeleportCount | ( | ) | const |
return the number of teleports (including collisions)
Definition at line 578 of file MSVehicleControl.cpp.
References myTeleportsCollision, myTeleportsJam, myTeleportsWrongLane, and myTeleportsYield.
Referenced by MSNet::generateStatistics(), LIBSUMO_NAMESPACE::Simulation::getParameter(), GUINet::getParameterWindow(), MSNet::simulationState(), MSNet::writeStatistics(), and MSNet::writeSummaryOutput().
|
inline |
return the number of collisions
Definition at line 319 of file MSVehicleControl.h.
References myTeleportsCollision.
|
inline |
return the number of teleports due to jamming
Definition at line 324 of file MSVehicleControl.h.
References myTeleportsJam.
Referenced by MSNet::generateStatistics(), LIBSUMO_NAMESPACE::Simulation::getParameter(), and MSNet::writeStatistics().
|
inline |
return the number of teleports due to vehicles stuck on the wrong lane
Definition at line 334 of file MSVehicleControl.h.
References myTeleportsWrongLane.
Referenced by MSNet::generateStatistics(), LIBSUMO_NAMESPACE::Simulation::getParameter(), and MSNet::writeStatistics().
|
inline |
return the number of teleports due to vehicles stuck on a minor road
Definition at line 329 of file MSVehicleControl.h.
References myTeleportsYield.
Referenced by MSNet::generateStatistics(), LIBSUMO_NAMESPACE::Simulation::getParameter(), and MSNet::writeStatistics().
|
inline |
Returns the total departure delay.
Definition at line 359 of file MSVehicleControl.h.
References myTotalDepartureDelay.
Referenced by MSNet::writeSummaryOutput().
|
inline |
Returns the total travel time.
Definition at line 367 of file MSVehicleControl.h.
References myTotalTravelTime.
Referenced by MSNet::writeSummaryOutput().
|
inline |
return the number of vehicles that are waiting for a transportable or a join
Definition at line 308 of file MSVehicleControl.h.
References myWaitingForTransportable.
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 339 of file MSVehicleControl.cpp.
References myVehicleDict.
Referenced by LIBSUMO_NAMESPACE::Vehicle::add(), MSRouteHandler::addRideOrTransport(), MSStateHandler::closeVehicle(), MSRouteHandler::closeVehicle(), MSInsertionControl::determineCandidates(), METriggeredCalibrator::execute(), Command_RouteReplacement::execute(), MSCalibrator::execute(), MSCFModel_CC::findVehicle(), LIBSUMO_NAMESPACE::Vehicle::getFollowSpeed(), LIBSUMO_NAMESPACE::TrafficLight::getFutureTripIds(), MSInsertionControl::getLastFlowVehicle(), MSBaseVehicle::getLeavingPersonNumber(), LIBSUMO_NAMESPACE::Vehicle::getSecureGap(), LIBSUMO_NAMESPACE::Polygon::getTrafficObject(), MSRailSignalConstraint::getVeh(), libsumo::Helper::getVehicle(), LIBSUMO_NAMESPACE::Vehicle::isOnInit(), MSLane::loadState(), MESegment::loadState(), MSVehicleTransfer::loadState(), MSDriveWay::loadState(), MSStageDriving::loadState(), MSStateHandler::myStartElement(), MSDevice_Bluelight::notifyMove(), MSDevice_Transportable::notifyMove(), libsumo::Helper::postProcessRemoteControl(), MSStageDriving::proceed(), MSDevice_SSM::processEncounters(), MSVehicle::processNextStop(), TraCIServerAPI_Vehicle::processSet(), MSCalibrator::removePending(), MSDevice_FCDReplay::FCDHandler::updateTrafficObjects(), and GUINet::vehicleExists().
|
inline |
Definition at line 244 of file MSVehicleControl.h.
References getVehicleMeanSpeeds().
Referenced by GUINet::getParameterWindow().
|
inline |
Definition at line 247 of file MSVehicleControl.h.
References getVehicleMeanSpeeds().
Referenced by GUINet::getParameterWindow().
|
virtual |
get current absolute and relative mean vehicle speed in the network
Reimplemented in GUIVehicleControl, and GUIMEVehicleControl.
Definition at line 545 of file MSVehicleControl.cpp.
References SUMOTrafficObject::getEdge(), SUMOTrafficObject::getSpeed(), MSEdge::getSpeedLimit(), SUMOVehicle::isOnRoad(), SUMOVehicle::isRemoteControlled(), SUMOVehicle::isStopped(), loadedVehBegin(), and loadedVehEnd().
Referenced by getVehicleMeanSpeed(), getVehicleMeanSpeedRelative(), GUIVehicleControl::getVehicleMeanSpeeds(), GUIMEVehicleControl::getVehicleMeanSpeeds(), and MSNet::writeSummaryOutput().
MSVehicleType * MSVehicleControl::getVType | ( | const std::string & | id = DEFAULT_VTYPE_ID , |
SumoRNG * | rng = nullptr , |
||
bool | readOnly = false |
||
) |
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 434 of file MSVehicleControl.cpp.
References MSVehicleType::check(), myReplaceableDefaultVTypes, myVTypeDict, and myVTypeDistDict.
Referenced by LIBSUMO_NAMESPACE::Person::add(), LIBSUMO_NAMESPACE::Vehicle::add(), MSRouteHandler::addTranship(), MSRouteHandler::closeRoute(), MSRouteHandler::closeTransportable(), MSRouteHandler::closeTransportableFlow(), MSRouteHandler::closeVehicle(), LIBSUMO_NAMESPACE::Person::convertTraCIStage(), MSInsertionControl::determineCandidates(), METriggeredCalibrator::execute(), MSCalibrator::execute(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), LIBSUMO_NAMESPACE::Simulation::findRoute(), MSStageTrip::getVehicles(), LIBSUMO_NAMESPACE::VehicleType::getVType(), MSDevice_ToC::initColorScheme(), MSInsertionControl::initScale(), MSDevice_ToC::MSDevice_ToC(), MSPModel_Striping::MSPModel_Striping(), MSCalibrator::myStartElement(), MSCalibrator::VehicleRemover::notifyEnter(), MSDevice_Bluelight::notifyMove(), MSRouteHandler::openVehicleTypeDistribution(), METriggeredCalibrator::remainingVehicleCapacity(), MSCalibrator::remainingVehicleCapacity(), MSDevice_Bluelight::resetVehicle(), MSStageDriving::setArrived(), LIBSUMO_NAMESPACE::Calibrator::setFlow(), MSDevice_ToC::setParameter(), LIBSUMO_NAMESPACE::Person::setType(), LIBSUMO_NAMESPACE::Vehicle::setType(), MSDevice_ToC::switchHolderType(), MSDevice_FCDReplay::FCDHandler::updateTrafficObjects(), and MSMeanData_Emissions::MSLaneMeanDataValues::write().
const RandomDistributor< MSVehicleType * > * MSVehicleControl::getVTypeDistribution | ( | const std::string & | typeDistID | ) | const |
return the vehicle type distribution with the given id
Definition at line 473 of file MSVehicleControl.cpp.
References myVTypeDistDict.
Referenced by MSInsertionControl::initScale(), MSCalibrator::VehicleRemover::notifyEnter(), and MSRouteHandler::openVehicleTypeDistribution().
const std::set< std::string > MSVehicleControl::getVTypeDistributionMembership | ( | const std::string & | id | ) | const |
Return the distribution IDs the vehicle type is a member of.
[in] | vehType | The vehicle type to look for membership in distributions |
Definition at line 463 of file MSVehicleControl.cpp.
References myVTypeToDist.
Referenced by MSTriggeredRerouter::applies(), MSDevice_ToC::MSDevice_ToC(), and MSDetectorFileOutput::vehicleApplies().
void MSVehicleControl::handleTriggeredDepart | ( | SUMOVehicle * | v, |
bool | add | ||
) |
register / unregister depart-triggered vehicles with edges
Definition at line 307 of file MSVehicleControl.cpp.
References MSEdge::addWaiting(), CONTAINER_TRIGGERED, SUMOVehicleParameter::departEdge, SUMOVehicleParameter::departPos, SUMOVehicleParameter::departProcedure, MSRoute::getEdges(), SUMOTrafficObject::getParameter(), SUMOVehicle::getRoute(), MSEdge::getSuccessors(), MSGlobals::gUseMesoSim, MSEdge::isTazConnector(), registerOneWaiting(), MSEdge::removeWaiting(), SPLIT, TRIGGERED, and unregisterOneWaiting().
Referenced by addVehicle(), MSStateHandler::closeVehicle(), and MSStageDriving::proceed().
bool MSVehicleControl::hasVType | ( | const std::string & | id | ) | const |
Asks for existence of a vehicle type.
If vehicle type or distribution with the id exists, true is returned, false otherwise.
[in] | id | The id of the type or distribution |
Definition at line 422 of file MSVehicleControl.cpp.
References myVTypeDict, and myVTypeDistDict.
Referenced by LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), and MSDevice_ToC::MSDevice_ToC().
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 428 of file MSVehicleControl.cpp.
References myVTypeDistDict.
Referenced by MSRouteHandler::closeVehicle(), MSInsertionControl::initScale(), MSDevice_ToC::MSDevice_ToC(), and MSBaseVehicle::saveState().
|
private |
create default types
Definition at line 79 of file MSVehicleControl.cpp.
References MSVehicleType::build(), DEFAULT_BIKETYPE_ID, DEFAULT_CONTAINERTYPE_ID, DEFAULT_PEDTYPE_ID, DEFAULT_RAILTYPE_ID, DEFAULT_TAXITYPE_ID, DEFAULT_VTYPE_ID, DEFAULT_VTYPES, SUMOVTypeParameter::height, SUMOVTypeParameter::length, myReplaceableDefaultVTypes, myVTypeDict, SUMOVTypeParameter::parametersSet, SVC_BICYCLE, SVC_CONTAINER, SVC_PASSENGER, SVC_PEDESTRIAN, SVC_RAIL, SVC_TAXI, VTYPEPARS_VEHICLECLASS_SET, and SUMOVTypeParameter::width.
Referenced by clearState(), and MSVehicleControl().
|
protected |
Definition at line 122 of file MSVehicleControl.cpp.
References MSBaseVehicle::addStops(), MSNet::BUILT, MSNet::getInstance(), MSNet::informVehicleStateListener(), MSBaseVehicle::initDevices(), myLoadedVehNo, and STATE.
Referenced by buildVehicle(), GUIVehicleControl::buildVehicle(), GUIMEVehicleControl::buildVehicle(), and MEVehicleControl::buildVehicle().
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 451 of file MSVehicleControl.cpp.
References myVTypeDict, and myVTypeDistDict.
|
private |
whether the given vehicle is scheduled for removal
Definition at line 147 of file MSVehicleControl.cpp.
References myPendingRemovals.
Referenced by scheduleVehicleRemoval().
|
inline |
Returns the begin of the internal vehicle map.
Definition at line 194 of file MSVehicleControl.h.
References myVehicleDict.
Referenced by GUIApplicationWindow::checkGamingEvents(), GUIApplicationWindow::checkGamingEventsDRT(), MSVTypeProbe::execute(), MSDevice_FCDReplay::MoveVehicles::execute(), getHaltingVehicleNo(), LIBSUMO_NAMESPACE::Vehicle::getLoadedIDList(), MSVTKExport::getPositions(), MSVTKExport::getSpeed(), LIBSUMO_NAMESPACE::Vehicle::getTeleportingIDList(), MSRailSignalConstraint::getVeh(), LIBSUMO_NAMESPACE::TrafficLight::getVehicleByTripId(), getVehicleMeanSpeeds(), GUIViewTraffic::getVehicleParamKeys(), GUIViewTraffic::onGamingClick(), MSVehicleType::setActionStepLength(), MSAmitranTrajectories::write(), MSFCDExport::write(), MSBatteryExport::write(), MSEmissionExport::write(), MSElecHybridExport::writeAggregated(), MSNet::writeOutput(), and MSFullExport::writeVehicles().
|
inline |
Returns the end of the internal vehicle map.
Definition at line 202 of file MSVehicleControl.h.
References myVehicleDict.
Referenced by GUIApplicationWindow::checkGamingEvents(), GUIApplicationWindow::checkGamingEventsDRT(), MSVTypeProbe::execute(), MSDevice_FCDReplay::MoveVehicles::execute(), getHaltingVehicleNo(), LIBSUMO_NAMESPACE::Vehicle::getLoadedIDList(), MSVTKExport::getPositions(), MSVTKExport::getSpeed(), LIBSUMO_NAMESPACE::Vehicle::getTeleportingIDList(), MSRailSignalConstraint::getVeh(), LIBSUMO_NAMESPACE::TrafficLight::getVehicleByTripId(), getVehicleMeanSpeeds(), GUIViewTraffic::getVehicleParamKeys(), GUIViewTraffic::onGamingClick(), MSVehicleType::setActionStepLength(), MSAmitranTrajectories::write(), MSFCDExport::write(), MSBatteryExport::write(), MSEmissionExport::write(), MSElecHybridExport::writeAggregated(), MSNet::writeOutput(), and MSFullExport::writeVehicles().
|
privatedelete |
invalidated assignment operator
|
inline |
registers one collision-related teleport
Definition at line 473 of file MSVehicleControl.h.
References myCollisions, and myTeleportsCollision.
Referenced by MSLane::executeMovements(), MSLane::handleCollisionBetween(), and MSLane::handleIntermodalCollisionBetween().
|
inline |
register emergency stop
Definition at line 501 of file MSVehicleControl.h.
References myEmergencyBrakingCount.
Referenced by MSVehicle::updateState().
|
inline |
register emergency stop
Definition at line 496 of file MSVehicleControl.h.
References myEmergencyStops.
Referenced by MSVehicle::executeMove().
|
inline |
increases the count of vehicles waiting for a transport to allow recognition of person / container related deadlocks
Definition at line 462 of file MSVehicleControl.h.
References myWaitingForTransportable.
Referenced by handleTriggeredDepart(), MEVehicle::mayProceed(), and MSVehicle::processNextStop().
|
inline |
register emergency stop
Definition at line 511 of file MSVehicleControl.h.
References myStoppedVehicles.
Referenced by MSVehicle::resumeFromStopping().
|
inline |
register emergency stop
Definition at line 506 of file MSVehicleControl.h.
References myStoppedVehicles.
Referenced by MSVehicle::processNextStop().
|
inline |
register one non-collision-related teleport
Definition at line 481 of file MSVehicleControl.h.
References myTeleportsJam.
Referenced by MSLane::executeMovements(), and MELoop::teleportVehicle().
|
inline |
register one non-collision-related teleport
Definition at line 491 of file MSVehicleControl.h.
References myTeleportsWrongLane.
Referenced by MSLane::executeMovements().
|
inline |
register one non-collision-related teleport
Definition at line 486 of file MSVehicleControl.h.
References myTeleportsYield.
Referenced by MSLane::executeMovements().
void MSVehicleControl::removePending | ( | ) |
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 157 of file MSVehicleControl.cpp.
References MSNet::ARRIVED, OutputDevice::closeTag(), deleteKeptVehicle(), deleteVehicle(), OutputDevice::flush(), OutputDevice::getDeviceByOption(), MSNet::getInstance(), OptionsCont::getOptions(), MSNet::informVehicleStateListener(), OptionsCont::isSet(), myKeepTime, myPendingRemovals, myRunningVehNo, myTotalTravelTime, and STEPS2TIME.
Referenced by MSEdgeControl::executeMovements(), LIBSUMO_NAMESPACE::Vehicle::remove(), and MSNet::simulationStep().
void MSVehicleControl::removeVType | ( | const MSVehicleType * | vehType | ) |
Definition at line 392 of file MSVehicleControl.cpp.
References MSVehicleType::getID(), myVTypeDict, and myVTypeToDist.
Referenced by MSBaseVehicle::replaceVehicleType(), MSTransportable::replaceVehicleType(), MSTransportable::~MSTransportable(), and MSVehicle::~MSVehicle().
void MSVehicleControl::saveState | ( | OutputDevice & | out | ) |
Saves the current state into the given stream.
Definition at line 227 of file MSVehicleControl.cpp.
References OutputDevice::closeTag(), myEndedVehNo, myLoadedVehNo, myReplaceableDefaultVTypes, myRunningVehNo, myTotalDepartureDelay, myTotalTravelTime, myVehicleDict, myVTypeDict, myVTypeDistDict, OutputDevice::openTag(), SUMO_ATTR_BEGIN, 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, |
bool | checkDuplicate = false |
||
) |
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 138 of file MSVehicleControl.cpp.
References isPendingRemoval(), myPendingRemovals, and myRunningVehNo.
Referenced by MSVehicleTransfer::add(), MELoop::changeSegment(), MSVehicleTransfer::checkInsertions(), MSLane::detectCollisions(), MSLane::executeMovements(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdRemoveObject(), MESegment::receive(), LIBSUMO_NAMESPACE::Vehicle::remove(), MSCalibrator::removePending(), and MELoop::teleportVehicle().
|
inline |
sets the demand scaling factor
Definition at line 560 of file MSVehicleControl.h.
References myScale.
Referenced by GUIApplicationWindow::handleEvent_SimulationLoaded(), GUIApplicationWindow::onCmdDemandScale(), and LIBSUMO_NAMESPACE::Simulation::setScale().
void MSVehicleControl::setState | ( | int | runningVehNo, |
int | loadedVehNo, | ||
int | endedVehNo, | ||
double | totalDepartureDelay, | ||
double | totalTravelTime | ||
) |
Sets the current state variables as loaded from the stream.
Definition at line 217 of file MSVehicleControl.cpp.
References myEndedVehNo, myLoadedVehNo, myRunningVehNo, myTotalDepartureDelay, and myTotalTravelTime.
Referenced by MSStateHandler::myEndElement().
|
inline |
decreases the count of vehicles waiting for a transport to allow recognition of person / container related deadlocks
Definition at line 468 of file MSVehicleControl.h.
References myWaitingForTransportable.
Referenced by MSVehicle::boardTransportables(), handleTriggeredDepart(), MSVehicle::joinTrainPart(), MSVehicle::joinTrainPartFront(), MEVehicle::mayProceed(), MSVehicle::processNextStop(), MEVehicle::resumeFromStopping(), MSVehicle::resumeFromStopping(), and MSBaseVehicle::unregisterWaiting().
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 202 of file MSVehicleControl.cpp.
References SUMOVehicleParameter::depart, MSNet::DEPARTED, MSVehicleType::getCarFollowModel(), SUMOTrafficObject::getChosenSpeedFactor(), SUMOVehicle::getDeparture(), MSNet::getInstance(), MSCFModel::getMaxDecel(), SUMOTrafficObject::getParameter(), SUMOTrafficObject::getVClass(), SUMOTrafficObject::getVehicleType(), MSNet::informVehicleStateListener(), MAX2(), MIN2(), myMaxSpeedFactor, myMinDeceleration, myMinDecelerationRail, myRunningVehNo, myTotalDepartureDelay, STEPFLOOR, STEPS2TIME, SVC_NON_ROAD, SVC_PEDESTRIAN, and SVC_RAIL_CLASSES.
Referenced by MSBaseVehicle::onDepart().
|
private |
The number of collisions.
Definition at line 604 of file MSVehicleControl.h.
Referenced by clearState(), getCollisionCount(), and registerCollision().
|
private |
The number of vehicles which were discarded while loading.
Definition at line 601 of file MSVehicleControl.h.
Referenced by clearState(), deleteVehicle(), discountStateRemoved(), fixVehicleCounts(), getArrivedVehicleNo(), getDepartedVehicleNo(), and getDiscardedVehicleNo().
|
private |
The number of emergency stops.
Definition at line 622 of file MSVehicleControl.h.
Referenced by clearState(), getEmergencyBrakingCount(), and registerEmergencyBraking().
|
private |
The number of emergency stops.
Definition at line 619 of file MSVehicleControl.h.
Referenced by clearState(), getEmergencyStops(), and registerEmergencyStop().
|
private |
The number of removed vehicles.
Definition at line 598 of file MSVehicleControl.h.
Referenced by clearState(), deleteKeptVehicle(), deleteVehicle(), discountStateRemoved(), fixVehicleCounts(), getActiveVehicleCount(), getArrivedVehicleNo(), getDepartedVehicleNo(), getEndedVehicleNo(), saveState(), and setState().
|
private |
Definition at line 689 of file MSVehicleControl.h.
Referenced by deleteKeptVehicle(), MSVehicleControl(), and removePending().
|
private |
The number of build vehicles.
Definition at line 592 of file MSVehicleControl.h.
Referenced by clearState(), fixVehicleCounts(), getActiveVehicleCount(), getLoadedVehicleNo(), getQuota(), initVehicle(), saveState(), and setState().
|
private |
The maximum speed factor for all vehicles in the network.
Definition at line 692 of file MSVehicleControl.h.
Referenced by getMaxSpeedFactor(), and vehicleDeparted().
|
private |
The minimum deceleration capability for all road vehicles in the network.
Definition at line 695 of file MSVehicleControl.h.
Referenced by getMinDeceleration(), and vehicleDeparted().
|
private |
The minimum deceleration capability for all rail vehicles in the network.
Definition at line 697 of file MSVehicleControl.h.
Referenced by getMinDecelerationRail(), and vehicleDeparted().
|
private |
List of vehicles which are going to be removed.
Definition at line 706 of file MSVehicleControl.h.
Referenced by clearState(), isPendingRemoval(), removePending(), and scheduleVehicleRemoval().
|
private |
List of vehicles which belong to public transport.
Definition at line 700 of file MSVehicleControl.h.
Referenced by adaptIntermodalRouter(), addVehicle(), and deleteVehicle().
|
private |
the default vehicle types which may still be replaced
Definition at line 681 of file MSVehicleControl.h.
Referenced by checkVType(), getVType(), initDefaultTypes(), and saveState().
|
private |
The number of vehicles within the network (build and inserted but not removed)
Definition at line 595 of file MSVehicleControl.h.
Referenced by clearState(), discountStateRemoved(), getDepartedVehicleNo(), getRunningVehicleNo(), removePending(), saveState(), scheduleVehicleRemoval(), setState(), and vehicleDeparted().
|
private |
The scaling factor (especially for inc-dua)
Definition at line 687 of file MSVehicleControl.h.
Referenced by getQuota(), getScale(), MSVehicleControl(), and setScale().
|
private |
The number of stopped vehicles.
Definition at line 625 of file MSVehicleControl.h.
Referenced by clearState(), getStoppedVehiclesCount(), registerStopEnded(), and registerStopStarted().
|
private |
The number of teleports due to collision.
Definition at line 607 of file MSVehicleControl.h.
Referenced by clearState(), getTeleportCount(), getTeleportsCollisions(), and registerCollision().
|
private |
The number of teleports due to jam.
Definition at line 610 of file MSVehicleControl.h.
Referenced by clearState(), getTeleportCount(), getTeleportsJam(), and registerTeleportJam().
|
private |
The number of teleports due to vehicles stuck on the wrong lane.
Definition at line 616 of file MSVehicleControl.h.
Referenced by clearState(), getTeleportCount(), getTeleportsWrongLane(), and registerTeleportWrongLane().
|
private |
The number of teleports due to vehicles stuck on a minor road.
Definition at line 613 of file MSVehicleControl.h.
Referenced by clearState(), getTeleportCount(), getTeleportsYield(), and registerTeleportYield().
|
private |
The aggregated time vehicles had to wait for departure (in seconds)
Definition at line 633 of file MSVehicleControl.h.
Referenced by clearState(), getTotalDepartureDelay(), saveState(), setState(), and vehicleDeparted().
|
private |
The aggregated time vehicles needed to aacomplish their route (in seconds)
Definition at line 636 of file MSVehicleControl.h.
Referenced by clearState(), getTotalTravelTime(), removePending(), saveState(), and setState().
|
protected |
Dictionary of vehicles.
Definition at line 647 of file MSVehicleControl.h.
Referenced by abortWaiting(), addVehicle(), clearState(), deleteVehicle(), getVehicle(), GUIMEVehicleControl::insertVehicleIDs(), GUIVehicleControl::insertVehicleIDs(), loadedVehBegin(), loadedVehEnd(), and saveState().
|
private |
Dictionary of vehicle types.
Definition at line 670 of file MSVehicleControl.h.
Referenced by addVType(), checkVType(), clearState(), getPedestrianTypes(), getVType(), hasVType(), initDefaultTypes(), insertVTypeIDs(), removeVType(), and saveState().
|
private |
A distribution of vehicle types (probability->vehicle type)
Definition at line 675 of file MSVehicleControl.h.
Referenced by addVTypeDistribution(), checkVType(), clearState(), getVType(), getVTypeDistribution(), hasVType(), hasVTypeDistribution(), insertVTypeIDs(), and saveState().
|
private |
Inverse lookup from vehicle type to distributions it is a member of.
Definition at line 678 of file MSVehicleControl.h.
Referenced by addVTypeDistribution(), getVTypeDistributionMembership(), and removeVType().
|
private |
the number of vehicles waiting for persons or containers contained in myWaiting which can only continue by being triggered
Definition at line 684 of file MSVehicleControl.h.
Referenced by getActiveVehicleCount(), getTriggeredVehicleCount(), registerOneWaiting(), and unregisterOneWaiting().