22 #ifndef MSDevice_Tripinfo_h 23 #define MSDevice_Tripinfo_h 181 const double frontOnLane,
182 const double timeOnLane,
183 const double meanSpeedFrontOnLane,
184 const double meanSpeedVehicleOnLane,
185 const double travelledDistanceFrontOnLane,
186 const double travelledDistanceVehicleOnLane,
221 typedef std::set<const MSDevice_Tripinfo*, Named::NamedLikeComparatorIdLess<MSDevice_Tripinfo> >
DeviceSet;
static SUMOTime myTotalWalkDuration
SUMOTime myArrivalTime
The vehicle's arrival time.
static SUMOTime myTotalWaitingTime
bool notifyEnter(SUMOVehicle &veh, MSMoveReminder::Notification reason, const MSLane *enteredLane=0)
Saves departure info on insertion.
static double myTotalRouteLength
void computeLengthAndDuration(double &routeLength, SUMOTime &duration) const
bool notifyLeave(SUMOVehicle &veh, double lastPos, MSMoveReminder::Notification reason, const MSLane *enteredLane=0)
Saves arrival info.
A device which collects info on the vehicle trip (mainly on departure and arrival) ...
static double getAvgTimeLoss()
Notification
Definition of a vehicle state.
void generateOutput() const
Called on writing tripinfo output.
static void buildVehicleDevices(SUMOVehicle &v, std::vector< MSDevice * > &into)
Build devices for the given vehicle, if needed.
~MSDevice_Tripinfo()
Destructor.
static double myVehicleCount
global tripinfo statistics
MSDevice_Tripinfo & operator=(const MSDevice_Tripinfo &)
Invalidated assignment operator.
double myArrivalSpeed
The speed when arriving.
static double getAvgDuration()
SUMOTime myWaitingTime
The overall waiting time.
static DeviceSet myPendingOutput
static void generateOutputForUnfinished()
generate output for vehicles which are still in the network
void notifyMoveInternal(const SUMOVehicle &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::string printStatistics()
get statistics for printing to stdout
Representation of a vehicle.
void updateStatistics(SUMOTime timeLoss) const
update tripinfo statistics
static double getAvgWalkRouteLength()
Encapsulated SAX-Attributes.
static SUMOTime myTotalDuration
static void addPedestrianData(double walkLength, SUMOTime walkDuration)
record tripinfo data for pedestrians
void saveState(OutputDevice &out) const
Saves the state of the device.
double myArrivalPosLat
The lateral position on the lane the vehicle arrived at.
static double getAvgWalkDuration()
std::string myDepartLane
The lane the vehicle departed at.
Abstract in-vehicle device.
static double getAvgWaitingTime()
bool notifyMove(SUMOVehicle &veh, double oldPos, double newPos, double newSpeed)
Checks for waiting steps when the vehicle moves.
static double myTotalWalkRouteLength
std::string myArrivalLane
The lane the vehicle arrived at.
double myDepartSpeed
The speed on departure.
MSDevice_Tripinfo()
dummy constructor
const std::string deviceName() const
return the name for this type of device
static SUMOTime myTotalDepartDelay
static double getAvgRouteLength()
accessors for GUINet-Parameters
static double getAvgDepartDelay()
Static storage of an output device and its base (abstract) implementation.
std::set< const MSDevice_Tripinfo *, Named::NamedLikeComparatorIdLess< MSDevice_Tripinfo > > DeviceSet
devices which may still need to produce output
static SUMOTime myTotalTimeLoss
SUMOTime myMesoTimeLoss
The time loss when compared to the desired and allowed speed.
double myDepartPosLat
The lateral depart position.
void loadState(const SUMOSAXAttributes &attrs)
Loads the state of the device from the given description.
Representation of a lane in the micro simulation.
double myArrivalPos
The position on the lane the vehicle arrived at.