 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
37 double aggregationSeconds)
38 : myName(name), myActiveCol(col), myInactiveCol(col),
43 myRecordingBegin(recordBegin), myTmpLastAggValue(0) {}
63 FXMutexLock locker(
myLock);
112 const std::vector<double>&
119 const std::vector<double>&
139 FXMutexLock locker(
myLock);
145 std::vector<double>::const_iterator i =
myValues.begin();
std::vector< double > myValues
Values collected.
double getMin() const
Returns the values minimum.
int myValidNo
Counter for valid numbers within the current aggregation interval.
const RGBColor & getColor() const
Returns the color to use to display the value.
std::string myName
The name of the value.
void addValue(double value)
Adds a new value to the list.
double getMax() const
Returns the values maximum.
void unlockValues()
Releases the locking after the values have been drawn.
~TrackerValueDesc()
Destructor.
double getYCenter() const
Returns the center of the value.
void setAggregationSpan(SUMOTime as)
set the aggregation amount
const std::vector< double > & getValues()
returns the vector of collected values The values will be locked - no further addition will be perfom...
double myTmpLastAggValue
Temporary storage for the last aggregation interval.
const std::string & getName() const
Returns the name of the value.
int myAggregationInterval
The aggregation interval in simulation steps.
std::vector< double > myAggregatedValues
Collected values in their aggregated form.
double myMin
The minimum and the maximum of the value.
SUMOTime myRecordingBegin
The time step the values are added from.
const double INVALID_DOUBLE
RGBColor myActiveCol
The color to use when the value is set as "active".
double getRange() const
returns the maximum value range
const std::vector< double > & getAggregatedValues()
returns the vector of aggregated values The values will be locked - no further addition will be perfo...
SUMOTime getRecordingBegin() const
Returns the timestep the recording started.
double myInvalidValue
Values like this shall not be counted on aggregation.
SUMOTime getAggregationSpan() const
get the aggregation amount
TrackerValueDesc(const std::string &name, const RGBColor &col, SUMOTime recordBegin, double aggregationSeconds)
Constructor.