Virtual base class for transient detection classes. More...
#include <cdetect.h>
Public Member Functions | |
Constructors, destructor, assignment. | |
cTransientDetection (const char *name=NULL) | |
virtual | ~cTransientDetection () |
virtual cTransientDetection * | dup () const |
New methods. | |
virtual void | collect (double val)=0 |
virtual bool | detected () const =0 |
virtual void | reset ()=0 |
virtual void | stop ()=0 |
virtual void | start ()=0 |
void | setPostDetectFunction (PostTDFunc f, void *p) |
Host object. | |
virtual void | setHostObject (cStatistic *ptr) |
virtual cStatistic * | getHostObject () const |
Virtual base class for transient detection classes.
virtual void cTransientDetection::setHostObject | ( | cStatistic * | ptr | ) | [inline, virtual] |
Sets the host object.
This is internally called by cStatistic's addTransientDetection() method.
virtual void cTransientDetection::start | ( | ) | [pure virtual] |
Should be redefined to start detection (further calls to collect() should update the detection algorithm.
)
Implemented in cTDExpandingWindows.
virtual void cTransientDetection::stop | ( | ) | [pure virtual] |
Should be redefined to stop detection (further calls to collect() should be ignored.
)
Implemented in cTDExpandingWindows.