 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
18 #ifndef MSDevice_Tripinfo_h
19 #define MSDevice_Tripinfo_h
179 const double frontOnLane,
180 const double timeOnLane,
181 const double meanSpeedFrontOnLane,
182 const double meanSpeedVehicleOnLane,
183 const double travelledDistanceFrontOnLane,
184 const double travelledDistanceVehicleOnLane,
static SUMOTime myTotalDepartDelay
static double getAvgRideDuration()
static void cleanup()
resets counters
Representation of a vehicle or person.
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types.
SUMOTime myStoppingTime
The overall intentional stopping time.
static double getAvgWaitingTime()
int myWaitingCount
The overall number of unintended stops.
double myArrivalSpeed
The speed when arriving.
Representation of a lane in the micro simulation.
double myRouteLength
The route length.
SUMOTime myWaitingTime
The overall waiting time.
static double getAvgWalkRouteLength()
Static storage of an output device and its base (abstract) implementation.
double myDepartSpeed
The speed on departure.
double myDepartPosLat
The lateral depart position.
double myArrivalPos
The position on the lane the vehicle arrived at.
static int myRideRailCount
void loadState(const SUMOSAXAttributes &attrs)
Loads the state of the device from the given description.
Representation of a vehicle.
SUMOTime myParkingStarted
The time when parking started.
void saveState(OutputDevice &out) const
Saves the state of the device.
SUMOTime myArrivalTime
The vehicle's arrival time.
SUMOTime myMesoTimeLoss
The time loss when compared to the desired and allowed speed.
static SUMOTime myTotalRideDuration
static void addPedestrianData(double walkLength, SUMOTime walkDuration, SUMOTime walkTimeLoss)
record tripinfo data for pedestrians
static double getAvgRideRouteLength()
static double getAvgWalkDuration()
A device which collects info on the vehicle trip (mainly on departure and arrival)
static void insertOptions(OptionsCont &oc)
Inserts MSDevice_Tripinfo-options.
static double myTotalRouteLength
bool notifyEnter(SUMOTrafficObject &veh, MSMoveReminder::Notification reason, const MSLane *enteredLane=0)
Saves departure info on insertion.
static double getAvgTimeLoss()
bool notifyLeave(SUMOTrafficObject &veh, double lastPos, MSMoveReminder::Notification reason, const MSLane *enteredLane=0)
Saves arrival info.
std::string myArrivalLane
The lane the vehicle arrived at.
static void buildVehicleDevices(SUMOVehicle &v, std::vector< MSVehicleDevice * > &into)
Build devices for the given vehicle, if needed.
static double myTotalRideRouteLength
const std::string deviceName() const
return the name for this type of device
static double getAvgRouteLength()
accessors for GUINet-Parameters
static int myRideAbortCount
bool notifyMove(SUMOTrafficObject &veh, double oldPos, double newPos, double newSpeed)
Checks for waiting steps when the vehicle moves.
static SUMOTime myTotalTimeLoss
static double myVehicleCount
global tripinfo statistics
A storage for options typed value containers)
void notifyMoveInternal(const SUMOTrafficObject &veh, const double frontOnLane, const double timeOnLane, const double meanSpeedFrontOnLane, const double meanSpeedVehicleOnLane, const double travelledDistanceFrontOnLane, const double travelledDistanceVehicleOnLane, const double)
Internal notification about the vehicle moves, see MSMoveReminder::notifyMoveInternal()
static std::set< const MSDevice_Tripinfo *, ComparatorNumericalIdLess > myPendingOutput
devices which may still need to produce output
static double getAvgDepartDelay()
static int myRideBusCount
void generateOutput() const
Called on writing tripinfo output.
MSDevice_Tripinfo & operator=(const MSDevice_Tripinfo &)
Invalidated assignment operator.
static int myRideBikeCount
static void generateOutputForUnfinished()
generate output for vehicles which are still in the network
static double getAvgRideWaitingTime()
bool myAmWaiting
Whether the vehicle is currently waiting.
static std::string printStatistics()
get statistics for printing to stdout
static SUMOTime myTotalWalkDuration
static double getAvgWalkTimeLoss()
static SUMOTime myTotalWalkTimeLoss
static SUMOTime myTotalDuration
static SUMOTime myTotalWaitingTime
static double myTotalRideWaitingTime
MSDevice_Tripinfo(SUMOVehicle &holder, const std::string &id)
Constructor.
~MSDevice_Tripinfo()
Destructor.
std::string myDepartLane
The lane the vehicle departed at.
Encapsulated SAX-Attributes.
Notification
Definition of a vehicle state.
static void addRideData(double rideLength, SUMOTime rideDuration, SUMOVehicleClass vClass, const std::string &line, SUMOTime waitingTime)
record tripinfo data for rides
double myArrivalPosLat
The lateral position on the lane the vehicle arrived at.
static SUMOTime myWaitingDepartDelay
static double myTotalWalkRouteLength
static double getAvgDuration()
Abstract in-vehicle device.