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