GClasses

GClasses::SOM::ReporterChain Class Reference

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. More...

#include <GSelfOrganizingMap.h>

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

List of all members.

Public Member Functions

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

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.


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.