OMNeT++ Simulation Library
5.6.1
|
#include <chistogramstrategy.h>
Interface for histogram strategy classes. Histogram strategies encapsulate the task of setting up and managing the bins in a cHistogram.
Public Member Functions | |
Constructors, copying. | |
cIHistogramStrategy () | |
cIHistogramStrategy (const cIHistogramStrategy &other) | |
cIHistogramStrategy & | operator= (const cIHistogramStrategy &other) |
Getting/setting the associated histogram object | |
void | setHistogram (cHistogram *hist) |
cHistogram * | getHistogram () const |
Methods called from cHistogram | |
virtual void | collect (double value)=0 |
virtual void | collectWeighted (double value, double weight)=0 |
virtual void | setUpBins ()=0 |
virtual void | clear ()=0 |
Public Member Functions inherited from cObject | |
cObject () | |
cObject (const cObject &other) | |
virtual | ~cObject () |
virtual const char * | getClassName () const |
virtual const char * | getName () const |
bool | isName (const char *s) const |
virtual const char * | getFullName () const |
virtual std::string | getFullPath () const |
const cObject * | getThisPtr () const |
virtual std::string | str () const |
virtual _OPPDEPRECATED std::string | info () const |
virtual _OPPDEPRECATED std::string | detailedInfo () const |
virtual cObject * | dup () const |
virtual void | parsimPack (cCommBuffer *buffer) const |
virtual void | parsimUnpack (cCommBuffer *buffer) |
virtual cObject * | getOwner () const |
virtual bool | isOwnedObject () const |
virtual void | forEachChild (cVisitor *v) |
cObject * | findObject (const char *name, bool deep=true) |
void | copyNotSupported () const |
Additional Inherited Members | |
Protected Member Functions inherited from cObject | |
virtual void | take (cOwnedObject *obj) |
virtual void | drop (cOwnedObject *obj) |
void | dropAndDelete (cOwnedObject *obj) |
void setHistogram | ( | cHistogram * | hist | ) |
Set the cHistogram instance this strategy is associated with. This method is called from cHistogram::setStrategy().
|
inline |
Returns the cHistogram instance this strategy is associated with.
|
pure virtual |
Called from cHistogram's collect() method. Implementations are expected to call back cHistogram's collectIntoHistogram(), or if histogram bins are not yet set up, store it for later.
Implemented in cAutoRangeHistogramStrategy, cDefaultHistogramStrategy, and cFixedRangeHistogramStrategy.
|
pure virtual |
Called from cHistogram's collectWeighted() method. Implementations are expected to call back cHistogram's collectIntoHistogram(), or if histogram bins are not yet set up, store it for later.
Implemented in cAutoRangeHistogramStrategy, cDefaultHistogramStrategy, and cFixedRangeHistogramStrategy.
|
pure virtual |
cHistogram's setUpBins() method delegates here. Implementations are expected to create bins in the associated histogram by calling its setBinEdges() or createUniformBins() method, and move possibly existing precollected observations into the bins using collectIntoHistogram().
Implemented in cPrecollectionBasedHistogramStrategy, and cFixedRangeHistogramStrategy.
|
pure virtual |
Called from cHistogram's clear() method, to give the strategy object an opportunity to clear its state.
Implemented in cAutoRangeHistogramStrategy, cDefaultHistogramStrategy, cPrecollectionBasedHistogramStrategy, and cFixedRangeHistogramStrategy.