OMNeT++ Simulation Library
6.0.3
|
16 #ifndef __OMNETPP_COUTVECTOR_H
17 #define __OMNETPP_COUTVECTOR_H
20 #include "cownedobject.h"
21 #include "simtime_t.h"
52 void *handle =
nullptr;
59 void *dataForInspector;
63 void setCallback(
RecordFunc f,
void *d) {recordInInspector=f; dataForInspector=d;}
66 enum Type { TYPE_INT, TYPE_DOUBLE, TYPE_ENUM };
67 enum InterpolationMode { NONE, SAMPLE_HOLD, BACKWARD_SAMPLE_HOLD, LINEAR };
90 virtual void setName(
const char *name)
override;
96 virtual std::string str()
const override;
108 virtual void setEnum(
const char *registeredEnumName);
117 virtual void setEnum(
cEnum *enumDecl);
124 virtual void setUnit(
const char *unit);
132 virtual void setType(Type type);
139 virtual void setInterpolationMode(InterpolationMode mode);
147 virtual void setMin(
double minValue);
155 virtual void setMax(
double maxValue);
166 virtual bool record(
double value);
182 virtual bool recordWithTimestamp(
simtime_t t,
double value);
192 virtual void enable() {setFlag(FL_ENABLED,
true);}
198 virtual void disable() {setFlag(FL_ENABLED,
false);}
209 virtual bool isEnabled()
const {
return flags&FL_ENABLED;}
virtual void setEnabled(bool b)
Definition: coutvector.h:204
virtual void enable()
Definition: coutvector.h:192
Responsible for recording vector simulation results (an output vector).
Definition: coutvector.h:44
long getValuesReceived() const
Definition: coutvector.h:231
virtual bool getRecordDuringWarmupPeriod() const
Definition: coutvector.h:224
virtual bool isEnabled() const
Definition: coutvector.h:209
long getValuesStored() const
Definition: coutvector.h:238
int64_t-based, base-10 fixed-point simulation time.
Definition: simtime.h:66
Provides string representation for enums.
Definition: cenum.h:32
SimTime simtime_t
Represents simulation time.
Definition: simtime_t.h:40
virtual bool recordWithTimestamp(simtime_t t, SimTime value)
Definition: coutvector.h:187
virtual bool record(SimTime value)
Definition: coutvector.h:171
double dbl() const
Definition: simtime.h:307
virtual void disable()
Definition: coutvector.h:198
void(* RecordFunc)(void *, simtime_t, double)
Prototype for callback functions that are used to notify graphical user interfaces when values are re...
Definition: coutvector.h:31
Base class for cOwnedObject-based classes that do not wish to support assignment and duplication.
Definition: cownedobject.h:242
virtual void setRecordDuringWarmupPeriod(bool b)
Definition: coutvector.h:218