|
Evolvica Core API Version 0.6.3 Last Modified: July 20 2004 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.evolvica.core.eval.CompoundScore
Default implementation for a multi score. A compound score consists of several other scores and can be used in multi-objective algorithms.
| Field Summary | |
protected IScore[] |
scores
Array of scores. |
| Constructor Summary | |
CompoundScore()
Constructor. |
|
CompoundScore(int size)
Constructor. |
|
CompoundScore(IScore[] scores)
Constructor with an array of scores. |
|
| Method Summary | |
IScore |
getScore(int index)
Gets a single score from the multi score set. |
IScore[] |
getScores()
Returns the array of scores that this multi score consists of. |
java.lang.Object |
getValueAsObject()
(Kein Javadoc) |
int |
scoreSize()
Returns the number of scores this multi score consists of. |
void |
setScore(IScore score,
int index)
Sets a new score at the given index. |
void |
setScores(IScore[] scores)
Sets the scores of this multiscore. |
java.lang.String |
toString()
Returns a string representation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected IScore[] scores
| Constructor Detail |
public CompoundScore()
public CompoundScore(int size)
size - number of scorespublic CompoundScore(IScore[] scores)
scores - array of scores| Method Detail |
public IScore getScore(int index)
IMultiScore
getScore in interface IMultiScoreindex - index of the score
IMultiScore.getScore(int)public IScore[] getScores()
IMultiScore
getScores in interface IMultiScoreIMultiScore.getScores()
public void setScore(IScore score,
int index)
IMultiScore
setScore in interface IMultiScorescore - score to setindex - indexIMultiScore.setScore(org.evolvica.core.IScore, int)public java.lang.Object getValueAsObject()
getValueAsObject in interface IScoreIScore.getValueAsObject()public int scoreSize()
IMultiScore
scoreSize in interface IMultiScoreIMultiScore.scoreSize()public java.lang.String toString()
public void setScores(IScore[] scores)
IMultiScore
setScores in interface IMultiScorescores - array of scoresIMultiScore.setScores(org.evolvica.core.IScore[])
|
Evolvica Core API Version 0.6.3 Last Modified: July 20 2004 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||