21 #ifndef TrackerValueDesc_h 22 #define TrackerValueDesc_h 86 const std::string&
getName()
const;
SUMOReal myTmpLastAggValue
Temporary storage for the last aggregation interval.
SUMOReal getYCenter() const
Returns the center of the value.
TrackerValueDesc(const std::string &name, const RGBColor &col, SUMOTime recordBegin)
Constructor.
const std::vector< SUMOReal > & getValues()
returns the vector of collected values The values will be locked - no further addition will be perfom...
int myAggregationInterval
The aggregation interval in simulation steps.
void unlockValues()
Releases the locking after the values have been drawn.
Representation of a timeline of floats with their names and moments.
SUMOReal getMin() const
Returns the values minimum.
size_t myValidNo
Counter for valid numbers within the current aggregation interval.
const std::vector< SUMOReal > & getAggregatedValues()
returns the vector of aggregated values The values will be locked - no further addition will be perfo...
SUMOTime myRecordingBegin
The time step the values are added from.
SUMOReal getMax() const
Returns the values maximum.
SUMOReal getRange() const
returns the maximum value range
RGBColor myActiveCol
The color to use when the value is set as "active".
SUMOTime getRecordingBegin() const
Returns the timestep the recording started.
RGBColor myInactiveCol
The color to use when the value is set as "inactive".
std::vector< SUMOReal > myValues
Values collected.
SUMOTime getAggregationSpan() const
get the aggregation amount
std::vector< SUMOReal > myAggregatedValues
Collected values in their aggregated form.
const std::string & getName() const
Returns the name of the value.
~TrackerValueDesc()
Destructor.
SUMOReal myInvalidValue
Values like this shall not be counted on aggregation.
void addValue(SUMOReal value)
Adds a new value to the list.
SUMOReal myMin
The minimum and the maximum of the value.
std::string myName
The name of the value.
const RGBColor & getColor() const
Returns the color to use to display the value.
void setAggregationSpan(SUMOTime as)
set the aggregation amount