Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Heuristic Class Reference

Base class for performance heuristics. More...

#include <Heuristic.h>

Inheritance diagram for Heuristic:

HeuristicAverage HeuristicCount HeuristicFrequency HeuristicMeter List of all members.

Public Methods

virtual char * GetName ()=0
virtual float Analyze (unsigned int participant)=0
float NormalizeRating (float rating)

Protected Attributes

SimulationStatusstatus

Detailed Description

Base class for performance heuristics.


Member Function Documentation

virtual float Heuristic::Analyze unsigned int    participant [pure virtual]
 

Analyze the performance of the given participant.

Parameters:
participant  ID of the participant
Returns:
virtual float The participant's new rating (0.0 to 1.0)

Implemented in HeuristicAverage.

virtual char* Heuristic::GetName   [pure virtual]
 

Get the name of the current heuristic.

Returns:
char String containing the name of the current heuristic.

Implemented in HeuristicAverage.

float Heuristic::NormalizeRating float    rating
 

Modify the given rating to ensure it stays within normal boundaries (0.0 to 1.0).

Parameters:
rating  The rating to normalize.
Returns:
float The normalized version of the rating.


Member Data Documentation

SimulationStatus* Heuristic::status [protected]
 


The documentation for this class was generated from the following files:
Generated on Mon Mar 4 08:42:26 2002 for Aria by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002