47 TrajectoriesHandler(
const bool computeA,
const bool computeAForward,
const bool accelZeroCorrection,
50 const double defaultSlope, std::ostream* stdOut,
OutputDevice* xmlOut);
58 double& a,
double& s);
64 double& a,
double& s);
72 void writeSums(std::ostream& o,
const std::string
id);
74 void writeNormedSums(std::ostream& o,
const std::string
id,
const double factor);
111 std::map<std::string, PollutantsInterface::Emissions>
mySums;
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
An upper class for objects with additional parameters.
Static storage of an output device and its base (abstract) implementation.
Encapsulated SAX-Attributes.
SAX-handler base for SUMO-files.
An XML-Handler for amitran and netstate trajectories.
std::map< std::string, double > myLastSlope
const SUMOEmissionClass myDefaultClass
long long int myAttributes
TrajectoriesHandler & operator=(const TrajectoriesHandler &s)
invalidated assignment operator
void writeNormedSums(std::ostream &o, const std::string id, const double factor)
void writeOptional(std::ostream &o, long long int attributes, const SumoXMLAttr attr, double v)
std::map< std::string, PollutantsInterface::Emissions > mySums
void writeSums(std::ostream &o, const std::string id)
const double myDefaultSlope
static const int INVALID_VALUE
bool writeXMLEmissions(const std::string id, const SUMOEmissionClass c, EnergyParams *params, SUMOTime t, double &v, double a=INVALID_VALUE, double s=INVALID_VALUE)
std::map< std::string, SUMOEmissionClass > myEmissionClassByVehicle
const bool myAccelZeroCorrection
std::map< std::string, SUMOEmissionClass > myEmissionClassByType
std::map< std::string, double > myLastV
TrajectoriesHandler(const TrajectoriesHandler &s)
invalidated copy constructor
const PollutantsInterface::Emissions computeEmissions(const std::string id, const SUMOEmissionClass c, EnergyParams *params, double &v, double &a, double &s)
~TrajectoriesHandler()
Destructor.
const bool myComputeAForward
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called when an opening-tag occurs.
bool writeEmissions(std::ostream &o, const std::string id, const SUMOEmissionClass c, EnergyParams *params, long long int attributes, double t, double &v, double &a, double &s)
Storage for collected values of all emission types.