146 const double frontOnLane,
147 const double timeOnLane,
148 const double meanSpeedFrontOnLane,
149 const double meanSpeedVehicleOnLane,
150 const double travelledDistanceFrontOnLane,
151 const double travelledDistanceVehicleOnLane,
152 const double meanLengthOnLane);
std::bitset< 96 > SumoXMLAttrMask
A device which collects vehicular emissions.
void generateOutput(OutputDevice *tripinfoOut) const
Called on writing tripinfo output.
bool notifyIdle(SUMOTrafficObject &veh)
Computes idling emission values and adds them to the emission sums.
static SumoXMLAttrMask getWrittenAttributes()
static SumoXMLAttrMask myWrittenAttributes
bit mask for checking attributes to be written
bool notifyMove(SUMOTrafficObject &veh, double oldPos, double newPos, double newSpeed)
Computes current emission values and adds them to their sums.
const std::string deviceName() const
return the name for this type of device
static void cleanup()
resets the attribute mask
static bool myAmInitialized
static SumoXMLAttrMask getDefaultMask()
static void insertOptions(OptionsCont &oc)
Inserts MSDevice_Emissions-options.
static void buildVehicleDevices(SUMOVehicle &v, std::vector< MSVehicleDevice * > &into)
Build devices for the given vehicle, if needed.
MSDevice_Emissions & operator=(const MSDevice_Emissions &)
Invalidated assignment operator.
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 meanLengthOnLane)
Internal notification about the vehicle moves, see MSMoveReminder::notifyMoveInternal()
PollutantsInterface::Emissions myEmissions
Internal storages for pollutant/fuel sum in mg or ml.
~MSDevice_Emissions()
Destructor.
static void initOnce()
initialize attribute mask (once)
MSDevice_Emissions(const MSDevice_Emissions &)
Invalidated copy constructor.
Representation of a lane in the micro simulation.
Abstract in-vehicle device.
A storage for options typed value containers)
Static storage of an output device and its base (abstract) implementation.
Representation of a vehicle, person, or container.
Representation of a vehicle.
Storage for collected values of all emission types.