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

HeuristicCount Class Reference

Count-based heuristic. More...

#include <HeuristicCount.h>

Inheritance diagram for HeuristicCount:

Heuristic List of all members.

Public Methods

 HeuristicCount (SimulationStatus *status)
char * GetName ()
float Analyze (unsigned int participant)
float NormalizeRating (float rating)

Protected Attributes

SimulationStatusstatus

Detailed Description

Count-based heuristic.


Constructor & Destructor Documentation

HeuristicCount::HeuristicCount SimulationStatus   status
 

Constructor

Parameters:
status  Pointer to the simulation status structure


Member Function Documentation

float HeuristicCount::Analyze unsigned int    participant [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)

Implements Heuristic.

char* HeuristicCount::GetName   [inline, virtual]
 

Get the name of the current heuristic.

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

Implements Heuristic.

float Heuristic::NormalizeRating float    rating [inherited]
 

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, inherited]
 


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