Control Class Reference

This is the abstract base class for Control Objects, it should be inherited to define a specific behaviour for some implementation. More...

#include <Control.hpp>

Inheritance diagram for Control:

GNGControl RBFClassificationControl RBFFunctionApproximationControl List of all members.

Public Member Functions

virtual ~Control ()
virtual void SetDelay (int d)
 Sets the delay in milliseconds between each iteration.

virtual unsigned int GetIteration ()
 Returns the current iteration count.

virtual bool Iterate ()=0
 The main iteration loop.

virtual void Snapshot ()
 A method provided as to allow saving states to disc and so forth.


Protected Member Functions

 Control ()
virtual bool IsReadyToIterate ()
virtual bool IsStopCriteriaMet ()=0

Protected Attributes

int m_delay
unsigned int m_lastTime
unsigned int m_iteration

Detailed Description

This is the abstract base class for Control Objects, it should be inherited to define a specific behaviour for some implementation.

The Iterate method should be called to perform an iteration. If iterate returns false, that means it is time to stop and no more iterations will be performed.


Constructor & Destructor Documentation

virtual ~Control  )  [virtual]
 

Control  )  [protected]
 


Member Function Documentation

virtual void SetDelay int  d  )  [virtual]
 

Sets the delay in milliseconds between each iteration.

A call to iterate will sleep until it is time to perform that iteration.

Parameters:
d the delay in milliseconds.

virtual unsigned int GetIteration  )  [virtual]
 

Returns the current iteration count.

Returns:
the current iteration count.

virtual bool Iterate  )  [pure virtual]
 

The main iteration loop.

Returns:
false when iteration should be ceased, true if continue.

Implemented in GNGControl, RBFClassificationControl, and RBFFunctionApproximationControl.

virtual void Snapshot  )  [virtual]
 

A method provided as to allow saving states to disc and so forth.

Reimplemented in RBFFunctionApproximationControl.

virtual bool IsReadyToIterate  )  [protected, virtual]
 

virtual bool IsStopCriteriaMet  )  [protected, pure virtual]
 

Implemented in GNGControl, RBFClassificationControl, and RBFFunctionApproximationControl.


Member Data Documentation

int m_delay [protected]
 

unsigned int m_lastTime [protected]
 

unsigned int m_iteration [protected]
 


Generated on Mon Mar 22 16:40:48 2004 for GNG_GL by doxygen 1.3.6