|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectipdlx.Strategy
ipdlx.strategy.Pavlov
public class Pavlov
Pavlov strategy.
| Field Summary |
|---|
| Fields inherited from class ipdlx.Strategy |
|---|
lastResult, nrOfOpponents, opponentMove, opponentsMoves |
| Fields inherited from interface ipdlx.PDValues |
|---|
COOPERATE, DEFAULT_MISTAKE_LEVEL, DEFAULT_PUNISHMENT, DEFAULT_REWARD, DEFAULT_SUCKER, DEFAULT_TEMPTATION, DEFECT, EXIT, moves, PLAYER_A, PLAYER_B |
| Constructor Summary | |
|---|---|
|
Pavlov()
|
|
Pavlov(double success)
|
protected |
Pavlov(java.lang.String abbrName,
java.lang.String name,
java.lang.String description,
double success)
|
| Method Summary | |
|---|---|
double |
getMove()
returns move |
double |
getSuccess()
|
void |
reset()
sets the initial state of this strategy |
| Methods inherited from class ipdlx.Strategy |
|---|
clone, getAbbrName, getDescription, getFinalMove, getFullName, getName, getNumberOfOpponents, getOpponentMove, getOpponentsMoves, getResult, setLastResult, setNumberOfOpponents, setOpponentMove, setOpponentsMoves, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Pavlov()
public Pavlov(double success)
protected Pavlov(java.lang.String abbrName,
java.lang.String name,
java.lang.String description,
double success)
| Method Detail |
|---|
public double getMove()
Strategy
getMove in class Strategypublic void reset()
Strategy
reset in class Strategypublic double getSuccess()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||