GClasses
GClasses::SOM::ReporterChain Class Reference

Detailed Description

A ReporterChain contains a list of Reporter objects. When a method is called on the ReporterChain, it calls the same method on each of its sub-objects in turn.

#include <GSelfOrganizingMap.h>

Inheritance diagram for GClasses::SOM::ReporterChain:
GClasses::SOM::Reporter

Public Member Functions

 ReporterChain ()
 Create an empty reporter chain. More...
 
virtual ~ReporterChain ()
 Delete all sub-reporters then dispose of self. More...
 
virtual void add (Reporter *toAdd)
 Add a reporter to the chain. The chain is responsible for deleting the reporter. More...
 
virtual void newStatus (unsigned iteration, unsigned subIteration, const GSelfOrganizingMap &map)
 Call newStatus with these parameters on each of the sub-reporters in turn. More...
 
virtual void start (const GMatrix *trainingData, int maxIterations=-1, int maxSubIterations=-1)
 Call start on each of the sub-reporters in turn. More...
 
virtual void stop (unsigned iteration, unsigned subIteration, const GSelfOrganizingMap &map)
 Call stop with these parameters on each of the sub-reporters in turn. More...
 
- Public Member Functions inherited from GClasses::SOM::Reporter
virtual ~Reporter ()
 Destruct this reporter object. More...
 

Constructor & Destructor Documentation

GClasses::SOM::ReporterChain::ReporterChain ( )
inline

Create an empty reporter chain.

virtual GClasses::SOM::ReporterChain::~ReporterChain ( )
virtual

Delete all sub-reporters then dispose of self.

Member Function Documentation

virtual void GClasses::SOM::ReporterChain::add ( Reporter toAdd)
virtual

Add a reporter to the chain. The chain is responsible for deleting the reporter.

virtual void GClasses::SOM::ReporterChain::newStatus ( unsigned  iteration,
unsigned  subIteration,
const GSelfOrganizingMap map 
)
virtual

Call newStatus with these parameters on each of the sub-reporters in turn.

Implements GClasses::SOM::Reporter.

virtual void GClasses::SOM::ReporterChain::start ( const GMatrix trainingData,
int  maxIterations = -1,
int  maxSubIterations = -1 
)
virtual

Call start on each of the sub-reporters in turn.

Reimplemented from GClasses::SOM::Reporter.

virtual void GClasses::SOM::ReporterChain::stop ( unsigned  iteration,
unsigned  subIteration,
const GSelfOrganizingMap map 
)
virtual

Call stop with these parameters on each of the sub-reporters in turn.

Reimplemented from GClasses::SOM::Reporter.