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::fib::cFibObjectFitnessBasic Class Reference

#include <cFibObjectFitnessBasic.h>

Inheritance diagram for enviroment::fib::cFibObjectFitnessBasic:
Collaboration diagram for enviroment::fib::cFibObjectFitnessBasic:

List of all members.

Public Member Functions

 cFibObjectFitnessBasic (const cFibObjectFitnessBasic &objectFitness)
virtual ~cFibObjectFitnessBasic ()
virtual string getClassName () const
const
cFibObjectFitnessBasicAlgorithm
getFitnessAlgorithm () const
virtual cFibObjectFitnessBasicclone () const
virtual bool operator== (const cFibObjectFitnessBasic &fitness) const
double getDifferenceToOriginal () const
bool changeDifferenceToOriginal (double dDeltaToOriginal)
double getWeightDistanceToOriginal () const
unsigned long getSize () const
bool changeSize (long lDeltaSize)
double getWeightSize () const
unsigned long getTime () const
bool changeTime (long lDeltaEvalueTime)
double getWeightEvaluationTime () const
- Public Member Functions inherited from enviroment::fib::cFibObjectFitness
 cFibObjectFitness (const cFibObjectFitness &objectFitness)
virtual ~cFibObjectFitness ()
virtual bool operator== (const cFibObjectFitness &fitness) const
- Public Member Functions inherited from enviroment::cObjectFitness
 cObjectFitness (const cObjectFitness &objectFitness)
virtual ~cObjectFitness ()
virtual double getFitness () 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

 cFibObjectFitnessBasic (double dInDistanceToOriginal, unsigned long lInSize, unsigned long lInEvaluationTime, double dInWeightDistanceToOriginal=1.0, double dInWeightSize=1.0, double dInWeightEvaluationTime=1.0, cFibObjectFitnessBasicAlgorithm *pInFibObjectFitnessAlgorithm=NULL)
virtual void updateFitness ()
- Protected Member Functions inherited from enviroment::fib::cFibObjectFitness
 cFibObjectFitness (double dInFittness, const cFibObjectFitnessAlgorithm *pInFibObjectFitnessAlgorithm=NULL)
- Protected Member Functions inherited from enviroment::cObjectFitness
 cObjectFitness (double dInFittness, const cObjectFitnessAlgorithm *pInObjectFitnessAlgorithm=NULL)

Protected Attributes

double dDistanceToOriginal
double dWeightDistanceToOriginal
unsigned long lSize
double dWeightSize
unsigned long lEvaluationTime
double dWeightEvaluationTime

Friends

class cFibObjectFitnessBasicAlgorithm

Detailed Description

Definition at line 61 of file cFibObjectFitnessBasic.h.


Constructor & Destructor Documentation

enviroment::fib::cFibObjectFitnessBasic::cFibObjectFitnessBasic ( double  dInDistanceToOriginal,
unsigned long  lInSize,
unsigned long  lInEvaluationTime,
double  dInWeightDistanceToOriginal = 1.0,
double  dInWeightSize = 1.0,
double  dInWeightEvaluationTime = 1.0,
cFibObjectFitnessBasicAlgorithm pInFibObjectFitnessAlgorithm = NULL 
)
protected

constructor

Parameters:
dInFittnessa value for the fitness of the object; the higher this value is the better the fitness
dInDistanceToOriginalthe distance to the original individual
See also:
dDistanceToOriginal
Parameters:
lInSizethe (compressed) size of the represented fib -object
lInEvaluationTimethe evaluating time of the represented fib -object
dInWeightDistanceToOriginalthe weight for the lInDistanceToOriginal value
dInWeightSizethe weight for the lInSize value
dInWeightEvaluationTimethe weight for the lInEvaluationTime value
pInFibObjectFitnessAlgorithmthe 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::fib::cFibObjectFitnessBasic::cFibObjectFitnessBasic ( const cFibObjectFitnessBasic objectFitness)

copyconstructor

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

Destructor of the class cFibObjectFitnessBasic.


Member Function Documentation

bool enviroment::fib::cFibObjectFitnessBasic::changeDifferenceToOriginal ( double  dDeltaToOriginal)

This method changes the dDistanceToOriginal value. dDistanceToOriginal += lDeltaToOriginal

See also:
dDistanceToOriginal
Parameters:
dDeltaToOriginalthe value about which the dDistanceToOriginal is to change
Returns:
true if the dDistanceToOriginal is changed, else false
bool enviroment::fib::cFibObjectFitnessBasic::changeSize ( long  lDeltaSize)

This method changes the lSize value. lSize += lDeltaSize

See also:
lSize
Parameters:
lDeltaSizethe value about which the lSize is to change
Returns:
true if the lSize is changed, else false
bool enviroment::fib::cFibObjectFitnessBasic::changeTime ( long  lDeltaEvalueTime)

This method changes the lEvaluationTime value. lEvaluationTime += lDeltaEvalueTime

See also:
lEvaluationTime
Parameters:
lDeltaSizethe value about which the lEvaluationTime is to change
Returns:
true if the lEvaluationTime is changed, else false
virtual cFibObjectFitnessBasic* enviroment::fib::cFibObjectFitnessBasic::clone ( ) const
virtual

This Method clones this object.

Returns:
a clone of this object

Reimplemented from enviroment::fib::cFibObjectFitness.

virtual string enviroment::fib::cFibObjectFitnessBasic::getClassName ( ) const
virtual
Returns:
the name of this class

Reimplemented from enviroment::fib::cFibObjectFitness.

double enviroment::fib::cFibObjectFitnessBasic::getDifferenceToOriginal ( ) const
See also:
dDistanceToOriginal
Returns:
the distance to the original individual
const cFibObjectFitnessBasicAlgorithm* enviroment::fib::cFibObjectFitnessBasic::getFitnessAlgorithm ( ) const
Returns:
the algorithm with which this fitness was created; if NULL no algorithm had created this object

Reimplemented from enviroment::fib::cFibObjectFitness.

unsigned long enviroment::fib::cFibObjectFitnessBasic::getSize ( ) const
See also:
lSize
Returns:
the (compressed) size of the represented fib -object
unsigned long enviroment::fib::cFibObjectFitnessBasic::getTime ( ) const
See also:
lEvaluationTime
Returns:
he evaluating time of the represented fib -object
double enviroment::fib::cFibObjectFitnessBasic::getWeightDistanceToOriginal ( ) const
See also:
dWeightDistanceToOriginal
Returns:
the weight for the dDistanceToOriginal value
double enviroment::fib::cFibObjectFitnessBasic::getWeightEvaluationTime ( ) const
See also:
dWeightEvaluationTime
Returns:
the weight for the lEvaluationTime value
double enviroment::fib::cFibObjectFitnessBasic::getWeightSize ( ) const
See also:
dWeightSize
Returns:
the weight for the lSize value
virtual bool enviroment::fib::cFibObjectFitnessBasic::operator== ( const cFibObjectFitnessBasic 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
virtual void enviroment::fib::cFibObjectFitnessBasic::updateFitness ( )
protectedvirtual

This method will update the whool fitness with the fitnessparts.


Friends And Related Function Documentation

friend class cFibObjectFitnessBasicAlgorithm
friend

Definition at line 63 of file cFibObjectFitnessBasic.h.


Member Data Documentation

double enviroment::fib::cFibObjectFitnessBasic::dDistanceToOriginal
protected

The distance to the original individual. It is the sum of the distances of all values of propertyvectorelements betwean the represented and original fib -object of all positions which are inside the dimension bounderies.

Definition at line 73 of file cFibObjectFitnessBasic.h.

double enviroment::fib::cFibObjectFitnessBasic::dWeightDistanceToOriginal
protected

The weight for the dDistanceToOriginal value.

Definition at line 78 of file cFibObjectFitnessBasic.h.

double enviroment::fib::cFibObjectFitnessBasic::dWeightEvaluationTime
protected

The weight for the lEvaluationTime value.

Definition at line 102 of file cFibObjectFitnessBasic.h.

double enviroment::fib::cFibObjectFitnessBasic::dWeightSize
protected

The weight for the lSize value.

Definition at line 90 of file cFibObjectFitnessBasic.h.

unsigned long enviroment::fib::cFibObjectFitnessBasic::lEvaluationTime
protected

The evaluating time of the represented fib -object.

See also:
cFibElement::getTimeNeed()

Definition at line 97 of file cFibObjectFitnessBasic.h.

unsigned long enviroment::fib::cFibObjectFitnessBasic::lSize
protected

The (compressed) size of the represented fib -object.

See also:
cFibElement::getCompressedSize()

Definition at line 85 of file cFibObjectFitnessBasic.h.


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