|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.coevolution.score.EntityScore
public class EntityScore
This class is used to store history of competitions the entity stored in this class against one other specific entity.
EntityScoreboard
Constructor Summary | |
---|---|
EntityScore(int round,
int competitorGroup)
Create a CoevolutionEntityScore for the given entity. |
Method Summary | |
---|---|
void |
draw(Fitness score)
Indicate that the entity that is contained in this EntityScore has drawn. |
boolean |
equals(Object obj)
|
int |
getCompetitorGroup()
|
int |
getDrawCount()
Get the number of times this entity drew. |
int |
getLoseCount()
Get the number of times this entity lost |
int |
getPlayCount()
Get the number of games played |
int |
getRound()
|
ArrayList<Fitness> |
getRoundsDrawn()
Get a list of all the rounds the entity has drawn. |
ArrayList<Fitness> |
getRoundsLost()
Get a list of all the rounds the entity has lost. |
ArrayList<Fitness> |
getRoundsWon()
Get a list of all the rounds the entity has won. |
int |
getWinCount()
Get the number of times this entity won |
int |
hashCode()
|
void |
lose(Fitness score)
Indicate that the entity that is contained in this EntityScore has been defeated. |
void |
mergeScoreBoard(EntityScore other)
Merge this scoreboard with another one |
void |
win(Fitness score)
Indicate that the entity that is contained in this CoevolutionEntityScore won. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntityScore(int round, int competitorGroup)
entity
- The entity that should be kept score of.Method Detail |
---|
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void win(Fitness score)
score
- The Fitness achievedpublic void lose(Fitness score)
score
- the Fitness achievedpublic void draw(Fitness score)
round
- The round that the entity drawed.public int getWinCount()
public int getLoseCount()
public int getDrawCount()
public int getPlayCount()
public void mergeScoreBoard(EntityScore other)
other
- the other scoreboardpublic ArrayList<Fitness> getRoundsDrawn()
public ArrayList<Fitness> getRoundsLost()
public ArrayList<Fitness> getRoundsWon()
public int getRound()
public int getCompetitorGroup()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |