The Fib multimedia system
Fib is a system for storing multimedia data (like images or films).
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
enviroment::cObjectFitness Class Reference

#include <cObjectFitness.h>

Inheritance diagram for enviroment::cObjectFitness:
Collaboration diagram for enviroment::cObjectFitness:

List of all members.

Public Member Functions

 cObjectFitness (const cObjectFitness &objectFitness)
virtual ~cObjectFitness ()
virtual double getFitness () const
virtual string getClassName () const
const cObjectFitnessAlgorithmgetFitnessAlgorithm () const
virtual cObjectFitnessclone () const
virtual bool equal (const cObjectFitness &fitness) const
virtual bool operator== (const cObjectFitness &fitness) const
virtual bool operator< (const cObjectFitness &fitness) const

Protected Member Functions

 cObjectFitness (double dInFittness, const cObjectFitnessAlgorithm *pInObjectFitnessAlgorithm=NULL)

Protected Attributes

double dFittness
const cObjectFitnessAlgorithmpObjectFitnessAlgorithm

Friends

class cObjectFitnessAlgorithm

Detailed Description

Definition at line 56 of file cObjectFitness.h.


Constructor & Destructor Documentation

enviroment::cObjectFitness::cObjectFitness ( double  dInFittness,
const cObjectFitnessAlgorithm pInObjectFitnessAlgorithm = NULL 
)
protected

constructor

Parameters:
dInFittnessa value for the fitness of the object; the higher this value is the better the fitness
pInObjectFitnessAlgorithmthe algorithm with which this fitness was created; if NULL no algorithm had created this object; Beware: this object won't be copied, if you delete it getFitnessAlgorithm() will return an invalid pointer
enviroment::cObjectFitness::cObjectFitness ( const cObjectFitness objectFitness)

copyconstructor

Parameters:
objectFitnessthe cObjectFitness object to copy
virtual enviroment::cObjectFitness::~cObjectFitness ( )
virtual

Destructor of the class cObjectFitnessAlgorithm.


Member Function Documentation

virtual cObjectFitness* enviroment::cObjectFitness::clone ( ) const
virtual

This Method clones this object.

Returns:
a clone of this object

Reimplemented in enviroment::fib::cFibObjectFitnessBasic, and enviroment::fib::cFibObjectFitness.

virtual bool enviroment::cObjectFitness::equal ( const cObjectFitness fitness) const
virtual

Comparisson on equal method for two fitness objects.

Parameters:
fitnessthe fitnessobject to compare this fitnessobject to
Returns:
true if the fitness this object represents is equal to the fitness the given object fitness represents
virtual string enviroment::cObjectFitness::getClassName ( ) const
virtual
Returns:
the name of this class

Reimplemented in enviroment::fib::cFibObjectFitnessBasic, and enviroment::fib::cFibObjectFitness.

virtual double enviroment::cObjectFitness::getFitness ( ) const
virtual
Returns:
a value for the fitness of the associated object; the higher this value is the better the fitness
const cObjectFitnessAlgorithm* enviroment::cObjectFitness::getFitnessAlgorithm ( ) const
Returns:
the algorithm with which this fitness was created; if NULL no algorithm had created this object

Reimplemented in enviroment::fib::cFibObjectFitnessBasic, and enviroment::fib::cFibObjectFitness.

virtual bool enviroment::cObjectFitness::operator< ( const cObjectFitness fitness) const
virtual

Comparisson on lower operator for two fitness objects.

Parameters:
fitnessthe fitnessobject to compare this fitnessobject to
Returns:
true if the fitness this object represents is lower to the fitness the given object fitness represents; the higher the fitness is, the better is the fitness of the associated object
virtual bool enviroment::cObjectFitness::operator== ( const cObjectFitness fitness) const
virtual

Comparisson on equal operator for two fitness objects.

Parameters:
fitnessthe fitnessobject to compare this fitnessobject to
Returns:
true if the fitness this object represents is equal to the fitness the given object fitness represents

Friends And Related Function Documentation

friend class cObjectFitnessAlgorithm
friend

Definition at line 58 of file cObjectFitness.h.


Member Data Documentation

double enviroment::cObjectFitness::dFittness
protected

a value for the fitness of the object; the higher this value is the better the fitness of the associated object

Definition at line 66 of file cObjectFitness.h.

const cObjectFitnessAlgorithm* enviroment::cObjectFitness::pObjectFitnessAlgorithm
protected

the algorithm with which this fitness was created; if NULL no algorithm had created this object

Definition at line 72 of file cObjectFitness.h.


The documentation for this class was generated from the following file: