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::cFibObjectFitnessAlgorithm Class Reference

#include <cFibObjectFitnessAlgorithm.h>

Inheritance diagram for enviroment::fib::cFibObjectFitnessAlgorithm:
Collaboration diagram for enviroment::fib::cFibObjectFitnessAlgorithm:

List of all members.

Public Member Functions

 cFibObjectFitnessAlgorithm ()
 cFibObjectFitnessAlgorithm (cFibIndividual *pInOriginalIndividual)
 cFibObjectFitnessAlgorithm (cFibElement *pInOriginalFibObject)
 cFibObjectFitnessAlgorithm (const cFibElement &inOriginalFibObject)
 cFibObjectFitnessAlgorithm (const cFibObjectFitnessAlgorithm &objectFitnessAlgorithm)
virtual ~cFibObjectFitnessAlgorithm ()
virtual cFibObjectFitnessevalueFitness (const cFibIndividual &individual) const =0
virtual cFibObjectFitnessevalueFitness (const cFibElement *fibObject) const =0
virtual string getClassName () const
virtual bool setOriginalIndividual (cIndividual *pInOriginalIndividual)
virtual bool setOriginalIndividual (cFibIndividual *pInOriginalIndividual)
virtual bool setOriginalFibObject (cFibElement *pInOriginalFibObject)
cFibIndividualgetOriginalIndividual ()
const cFibElementgetOriginalFibObject ()
const cRootgetOriginalIndividualRoot ()
virtual
cFibObjectFitnessAlgorithm
clone () const =0
virtual const cFibObjectFitnessgetBestFitness () const =0
virtual const cFibObjectFitnessgetWorstCaseFitness () const =0
const cEvaluePositionListgetOriginalPositionList () const
- Public Member Functions inherited from enviroment::cObjectFitnessAlgorithm
 cObjectFitnessAlgorithm ()
 cObjectFitnessAlgorithm (cIndividual *pInOriginalIndividual)
 cObjectFitnessAlgorithm (const cObjectFitnessAlgorithm &objectFitnessAlgorithm)
virtual ~cObjectFitnessAlgorithm ()=0
virtual cObjectFitnessevalueFitness (const cIndividual &individual) const =0
const cIndividualgetOriginalIndividual () const

Protected Member Functions

cRootcreateRootTree (const cFibElement *pFibObject)
bool evalueOriginalDimensions () const

Protected Attributes

cRootpOriginalRoots
bool bOriginalIsFibObject
cEvaluePositionListpEvaluedPositionsDataOriginal
bool bOriginalEvalued
unsigned int uiNumberOfDimensions
doubleFibpdDirectionMinimum
doubleFibpdDirectionMaximum
doubleFibpdDirectionScaling
doubleFibpdDirectionSize
bool bStandardDimensionDomain
cDomainVectorBasispVecDomainDimension
unsigned long long ulNumberOfPoints
- Protected Attributes inherited from enviroment::cObjectFitnessAlgorithm
cIndividualpOriginalIndividual
pthread_mutex_t mutexOriginalIndividual

Detailed Description

Definition at line 67 of file cFibObjectFitnessAlgorithm.h.


Constructor & Destructor Documentation

enviroment::fib::cFibObjectFitnessAlgorithm::cFibObjectFitnessAlgorithm ( )

constructor

enviroment::fib::cFibObjectFitnessAlgorithm::cFibObjectFitnessAlgorithm ( cFibIndividual pInOriginalIndividual)

constructor

Parameters:
pInOriginalIndividualthe individual with which the fitness should be evalued; Beware: this object won't be copied, so don't delete it as long as this object exists
enviroment::fib::cFibObjectFitnessAlgorithm::cFibObjectFitnessAlgorithm ( cFibElement pInOriginalFibObject)

constructor

Parameters:
pInOriginalFibObjectthe Fib object with which the fitness should be evalued; Beware: this object won't be copied, so don't delete it as long as this object exists
enviroment::fib::cFibObjectFitnessAlgorithm::cFibObjectFitnessAlgorithm ( const cFibElement inOriginalFibObject)

constructor

Parameters:
inOriginalFibObjectthe fib object with which the fitness should be evalued;
enviroment::fib::cFibObjectFitnessAlgorithm::cFibObjectFitnessAlgorithm ( const cFibObjectFitnessAlgorithm objectFitnessAlgorithm)

copyconstructor

Parameters:
objectFitnessAlgorithmthe cFibObjectFitnessAlgorithm object to copy
virtual enviroment::fib::cFibObjectFitnessAlgorithm::~cFibObjectFitnessAlgorithm ( )
virtual

destructor


Member Function Documentation

virtual cFibObjectFitnessAlgorithm* enviroment::fib::cFibObjectFitnessAlgorithm::clone ( ) const
pure virtual

This Method clones this object.

Returns:
a clone of this object

Implements enviroment::cObjectFitnessAlgorithm.

Implemented in enviroment::fib::cFibObjectFitnessBasicAlgorithm.

cRoot* enviroment::fib::cFibObjectFitnessAlgorithm::createRootTree ( const cFibElement pFibObject)
protected

This function extracts the root -element tree from the Fib object. The root -elements will have the same structur as in the given Fib object, but empty points for ther main -Fib objects. Beware: delete the returnd fib object after usage.

Parameters:
pFibObjectthe Fib object wher to extract the root -elements
Returns:
a Fib object with just root -elements of the given Fib object pFibObject
virtual cFibObjectFitness* enviroment::fib::cFibObjectFitnessAlgorithm::evalueFitness ( const cFibIndividual individual) const
pure virtual

This function evalues the fitness for the given fib -individual. Beware: You have to delete the returned fitness after usage.

See also:
pOriginalIndividual
Parameters:
individualthe cFibIndividual for which a fitnessobject should be created
Returns:
the fitnessobject for the fitness of the given individual or NULL, if no fitness could be created

Implemented in enviroment::fib::cFibObjectFitnessBasicAlgorithm.

virtual cFibObjectFitness* enviroment::fib::cFibObjectFitnessAlgorithm::evalueFitness ( const cFibElement fibObject) const
pure virtual

This function evalues the fitness for the given fib -individual. Beware: You have to delete the returned fitness after usage.

See also:
pOriginalIndividual
Parameters:
individualthe cFibIndividual for which a fitnessobject should be created
Returns:
the fitnessobject for the fitness of the given individual or NULL, if no fitness could be created

Implemented in enviroment::fib::cFibObjectFitnessBasicAlgorithm.

bool enviroment::fib::cFibObjectFitnessAlgorithm::evalueOriginalDimensions ( ) const
protected

This method evalues the dimensions variables for the original Fib object.

evalued class members are:

See also:
uiNumberOfDimensions;
pdDirectionMinimum;
pdDirectionMaximum;
pdDirectionScaling;
pdDirectionSize;
bStandardDimensionDomain
pVecDomainDimension
Returns:
true if the evaluation was successfull, else false
virtual const cFibObjectFitness* enviroment::fib::cFibObjectFitnessAlgorithm::getBestFitness ( ) const
pure virtual

This Method returns the best possible fitness the algorithm can create. No individual with a better/ higher fitness can be created with this algorithm. Normaly this would be an indivudual which represents the original individual perfectly and don't use recources. If no best possible fitness can be evalued NULL is returned.

Returns:
a refernce to the best possible fitness or NULL, if non can be creted

Implements enviroment::cObjectFitnessAlgorithm.

Implemented in enviroment::fib::cFibObjectFitnessBasicAlgorithm.

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

Reimplemented from enviroment::cObjectFitnessAlgorithm.

Reimplemented in enviroment::fib::cFibObjectFitnessBasicAlgorithm.

const cFibElement* enviroment::fib::cFibObjectFitnessAlgorithm::getOriginalFibObject ( )
See also:
setOriginalFibObject()
getOriginalIndividual()
Returns:
a pointer to the originalindividual or NULL if non exists The originalindividual is the individual with which the fitness is evalued.
cFibIndividual* enviroment::fib::cFibObjectFitnessAlgorithm::getOriginalIndividual ( )
See also:
setOriginalIndividual()
getOriginalIndividual()
Returns:
a pointer to the originalindividual or NULL if non exists; The originalindividual is the individual with which the fitness is evalued.

Reimplemented from enviroment::cObjectFitnessAlgorithm.

const cRoot* enviroment::fib::cFibObjectFitnessAlgorithm::getOriginalIndividualRoot ( )
See also:
setOriginalIndividual()
getOriginalIndividual()
pOriginalIndividual
Returns:
a pointer to the originalindividual root -elements or NULL if non exists; The originalindividual is the individual with which the fitness is evalued. This methods will yust return ther root -elements, with the main -Fib objects set to NULL.
const cEvaluePositionList* enviroment::fib::cFibObjectFitnessAlgorithm::getOriginalPositionList ( ) const
Returns:
the evalued positionslist of the original Fib object or NULL, if no exists
virtual const cFibObjectFitness* enviroment::fib::cFibObjectFitnessAlgorithm::getWorstCaseFitness ( ) const
pure virtual

This Method returns the worst case fitness for the algorithm and originalindividual. An individual with the worst case fitness can easyly be created. Normaly this would be the fitness of the originalindividual. If no worst case fitness can be evalued NULL is returned.

Returns:
a refernce to the worst case fitness or NULL, if non can be created

Implements enviroment::cObjectFitnessAlgorithm.

Implemented in enviroment::fib::cFibObjectFitnessBasicAlgorithm.

virtual bool enviroment::fib::cFibObjectFitnessAlgorithm::setOriginalFibObject ( cFibElement pInOriginalFibObject)
virtual

This method sets the originalindividual. The originalindividual is the individual with which the fitness should be evalued.

See also:
getOriginalIndividual()
pOriginalIndividual
Parameters:
pInOriginalFibObjectthe Fib object with which the fitness should be evalued; Beware: this object won't be copied, so don't delete it as long as this object exists
Returns:
true if the originalindividual is set to pInOriginalFibObject, else false

Reimplemented in enviroment::fib::cFibObjectFitnessBasicAlgorithm.

virtual bool enviroment::fib::cFibObjectFitnessAlgorithm::setOriginalIndividual ( cIndividual pInOriginalIndividual)
virtual

This method sets the originalindividual. The originalindividual is the individual with which the fitness should be evalued.

See also:
getOriginalIndividual()
pOriginalIndividual
Parameters:
pInOriginalIndividuala point to the fib -originalindividual to set Beware: this object won't be copied, so don't delete it as long as this object exists
Returns:
true if the originalindividual is set to pInOriginalIndividual, else false

Reimplemented from enviroment::cObjectFitnessAlgorithm.

Reimplemented in enviroment::fib::cFibObjectFitnessBasicAlgorithm.

virtual bool enviroment::fib::cFibObjectFitnessAlgorithm::setOriginalIndividual ( cFibIndividual pInOriginalIndividual)
virtual

This method sets the originalindividual. The originalindividual is the individual with which the fitness should be evalued.

See also:
getOriginalIndividual()
pOriginalIndividual
Parameters:
pInOriginalIndividuala point to the fib -originalindividual to set Beware: this object won't be copied, so don't delete it as long as this object exists
Returns:
true if the originalindividual is set to pInOriginalIndividual, else false

Reimplemented in enviroment::fib::cFibObjectFitnessBasicAlgorithm.


Member Data Documentation

bool enviroment::fib::cFibObjectFitnessAlgorithm::bOriginalEvalued
mutableprotected

If true the positionsdata of the original Fib object liEvaluedPositionsDataOriginal was evalued, else false.

Definition at line 92 of file cFibObjectFitnessAlgorithm.h.

bool enviroment::fib::cFibObjectFitnessAlgorithm::bOriginalIsFibObject
protected

if true the original individual is given as an fib object cFibElement and not an cFibIndividual

Definition at line 80 of file cFibObjectFitnessAlgorithm.h.

bool enviroment::fib::cFibObjectFitnessAlgorithm::bStandardDimensionDomain
mutableprotected

This value is true if the dimension domain (

See also:
pVecDomainDimension ) is the standarddomain for dimensions . This is evalued with the method
evalueOriginalDimensions().
uiNumberOfDimensions
pdDirectionMinimum
pdDirectionMaximum
pdDirectionScaling
pdDirectionSize
pVecDomainDimension

Definition at line 175 of file cFibObjectFitnessAlgorithm.h.

doubleFib* enviroment::fib::cFibObjectFitnessAlgorithm::pdDirectionMaximum
mutableprotected

The maximum value for the dimensions of the original fib object. This is evalued with the method

See also:
evalueOriginalDimensions(). This is an array of size
uiNumberOfDimensions .
uiNumberOfDimensions
pdDirectionMinimum
pdDirectionScaling
pdDirectionSize
bStandardDimensionDomain
pVecDomainDimension

Definition at line 133 of file cFibObjectFitnessAlgorithm.h.

doubleFib* enviroment::fib::cFibObjectFitnessAlgorithm::pdDirectionMinimum
mutableprotected

The minimum value for the dimensions of the original fib object. This is evalued with the method

See also:
evalueOriginalDimensions(). This is an array of size
uiNumberOfDimensions .
uiNumberOfDimensions
pdDirectionMaximum
pdDirectionScaling
pdDirectionSize
bStandardDimensionDomain
pVecDomainDimension

Definition at line 119 of file cFibObjectFitnessAlgorithm.h.

doubleFib* enviroment::fib::cFibObjectFitnessAlgorithm::pdDirectionScaling
mutableprotected

The scalingfactor for the dimensions of the original fib object. This is evalued with the method

See also:
evalueOriginalDimensions(). This is an array of size
uiNumberOfDimensions .
uiNumberOfDimensions
pdDirectionMinimum
pdDirectionMaximum
pdDirectionSize
bStandardDimensionDomain
pVecDomainDimension

Definition at line 147 of file cFibObjectFitnessAlgorithm.h.

doubleFib* enviroment::fib::cFibObjectFitnessAlgorithm::pdDirectionSize
mutableprotected

The number of values in the dimensions of the original fib object. This is evalued with the method

See also:
evalueOriginalDimensions(). This is an array of size
uiNumberOfDimensions .
uiNumberOfDimensions
pdDirectionMinimum
pdDirectionMaximum
pdDirectionScaling
bStandardDimensionDomain
pVecDomainDimension

Definition at line 161 of file cFibObjectFitnessAlgorithm.h.

cEvaluePositionList* enviroment::fib::cFibObjectFitnessAlgorithm::pEvaluedPositionsDataOriginal
mutableprotected

The evalued position list of the original Fib object or NULL, if non exists.

Definition at line 86 of file cFibObjectFitnessAlgorithm.h.

cRoot* enviroment::fib::cFibObjectFitnessAlgorithm::pOriginalRoots
protected

the root -elements of original object, without ther main -Fib objects (they are replaced by empty points)

Definition at line 74 of file cFibObjectFitnessAlgorithm.h.

cDomainVectorBasis* enviroment::fib::cFibObjectFitnessAlgorithm::pVecDomainDimension
mutableprotected

This is a pointer to the dimension domain. This is evalued with the method

See also:
evalueOriginalDimensions().
uiNumberOfDimensions
pdDirectionMinimum
pdDirectionMaximum
pdDirectionScaling
pdDirectionSize
bStandardDimensionDomain

Definition at line 188 of file cFibObjectFitnessAlgorithm.h.

unsigned int enviroment::fib::cFibObjectFitnessAlgorithm::uiNumberOfDimensions
mutableprotected

The number of dimensions of the original fib object. This is evalued with the method

See also:
evalueOriginalDimensions().
pdDirectionMinimum
pdDirectionMaximum
pdDirectionScaling
pdDirectionSize
bStandardDimensionDomain
pVecDomainDimension

Definition at line 105 of file cFibObjectFitnessAlgorithm.h.

unsigned long long enviroment::fib::cFibObjectFitnessAlgorithm::ulNumberOfPoints
mutableprotected

The number of points in the original multimediaobject.

Definition at line 193 of file cFibObjectFitnessAlgorithm.h.


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