18 #ifndef __OMNETPP_RESULTRECORDERS_H 19 #define __OMNETPP_RESULTRECORDERS_H 22 #include "omnetpp/cresultrecorder.h" 41 VectorRecorder() {handle =
nullptr; lastTime = 0; lastValue = NAN;}
43 virtual simtime_t getLastWriteTime()
const {
return lastTime;}
44 virtual double getLastValue()
const {
return lastValue;}
45 virtual std::string str()
const override;
66 long getCount()
const {
return count;}
67 virtual std::string str()
const override;
96 double getLastValue()
const {
return lastValue;}
97 virtual std::string str()
const override;
125 double getSum()
const {
return sum;}
126 virtual std::string str()
const override;
137 bool timeWeighted =
false;
139 double lastValue = NAN;
141 double weightedSum = 0;
149 double getMean()
const;
150 virtual std::string str()
const override;
166 double getMin()
const {
return min;}
167 virtual std::string str()
const override;
183 double getMax()
const {
return max;}
184 virtual std::string str()
const override;
201 double getAverage()
const {
return sum/count;}
202 virtual std::string str()
const override;
212 double lastValue = NAN;
214 double weightedSum = 0;
221 double getTimeAverage()
const;
222 virtual std::string str()
const override;
234 double lastValue = NAN;
239 virtual void forEachChild(
cVisitor *v)
override;
244 virtual cStatistic *getStatistic()
const {
return statistic;}
245 virtual std::string str()
const override;
Common base for module and channel classes.
Definition: ccomponent.h:48
Root of the OMNeT++ class hierarchy. cObject is a lightweight class without any data members...
Definition: cobject.h:58
Abstract base class for result recorders.
Definition: cresultrecorder.h:69
int64_t-based, base-10 fixed-point simulation time.
Definition: simtime.h:66
Listener for recording the count of signal values, including NaN and nullptr.
Definition: resultrecorders.h:51
Abstract base class for numeric result recorders.
Definition: cresultrecorder.h:111
Listener for recording the arithmetic mean of signal values. NaN values in the input are ignored...
Definition: resultrecorders.h:191
Listener for recording the count of signal values. Signal values do not need to be numeric to be coun...
Definition: resultrecorders.h:74
Listener for recording the (time-weighted or unweighted) mean of signal values. NaN values in the inp...
Definition: resultrecorders.h:134
#define SIMTIME_ZERO
Zero simulation time.
Definition: simtime_t.h:73
Stores a (NED) property with its (possibly compound) value.
Definition: cproperty.h:38
Base class for result filters.
Definition: cresultfilter.h:72
Listener for recording a signal to an output vector.
Definition: resultrecorders.h:31
Lightweight string-to-string map, used internally in some parts of OMNeT++.
Definition: opp_string.h:200
Recorder that raises a runtime error if it sees a NaN in the input (and never records anything)...
Definition: resultrecorders.h:104
Listener for recording signal values via a cStatistic. NaN values in the input are ignored...
Definition: resultrecorders.h:230
Enables traversing the tree of (cObject-rooted) simulation objects.
Definition: cvisitor.h:56
Definition: cabstracthistogram.h:21
Listener for recording the time average of signal values. NaN values in the input denote intervals to...
Definition: resultrecorders.h:209
Listener for recording the sum of signal values. NaN values in the input are ignored.
Definition: resultrecorders.h:116
Listener for recording the maximum of signal values. NaN values in the input are ignored.
Definition: resultrecorders.h:174
Listener for recording the last non-NaN signal value.
Definition: resultrecorders.h:87
cStatistic is an abstract class for computing statistical properties of a random variable.
Definition: cstatistic.h:34
Listener for recording the minimum of signal values. NaN values in the input are ignored.
Definition: resultrecorders.h:157