Main Page | Class Hierarchy | Class List | File List | Class Members

DomainWeightedDegreeRatios Class Reference

#include <DomainWeightedDegreeRatios.h>

List of all members.

Public Member Functions

 DomainWeightedDegreeRatios ()
 Constructor.
double domainWeightedDegreeRatio (const Variable &variable)
void updateDomainWeightedDegreeRatio (const Variable &variable)
void clear ()
 Clear the entire cache.
bool empty ()
 Return `true' if the cache is empty, `false' otherwise.


Detailed Description

A cache of domain/degree ratios.


Member Function Documentation

double DomainWeightedDegreeRatios::domainWeightedDegreeRatio const Variable variable  ) 
 

Return the domain/(weighted degree) ratio of a given variable. If the variable's ratio is not yet in the cache, calculate it and insert it there.

Parameters:
variable the variable whose domain/(weighted degree) ratio is to be calculated.
Returns:
the domain/(weighted degree) ratio of the given variable.

void DomainWeightedDegreeRatios::updateDomainWeightedDegreeRatio const Variable variable  ) 
 

Update the domain/(weighted degree) ratio of a given variable.

Parameters:
variable the variable whose domain/(weighted degree) ratio is to be updated.


The documentation for this class was generated from the following files:
Generated on Wed May 25 12:21:17 2005 for csp.kdevelop by  doxygen 1.3.9.1