Add a flag in MOEO.h

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1374 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
jhumeau 2009-01-29 16:20:25 +00:00
commit ca452b8c0b

View file

@ -115,6 +115,7 @@ class MOEO : public EO < MOEOObjectiveVector >
diversityValue = Diversity(); diversityValue = Diversity();
// invalidate all // invalidate all
invalidate(); invalidate();
flag=0;
} }
@ -332,6 +333,22 @@ class MOEO : public EO < MOEOObjectiveVector >
} }
} }
/**
* Setter for "flag"
* @param _flag the flag value
*/
void setFlag(int _flag){
flag=_flag;
}
/**
* Getter for "flag"
* @return the flag value
*/
int getFlag(){
return flag;
}
private: private:
@ -347,6 +364,8 @@ class MOEO : public EO < MOEOObjectiveVector >
Diversity diversityValue; Diversity diversityValue;
/** true if the diversity value is invalid */ /** true if the diversity value is invalid */
bool invalidDiversityValue; bool invalidDiversityValue;
/** A flag which can be used to stock information*/
int flag;
}; };