ipdlx.strategy
Class NEG

java.lang.Object
  extended by ipdlx.Strategy
      extended by ipdlx.strategy.NEG
All Implemented Interfaces:
PDValues, java.lang.Cloneable

public class NEG
extends Strategy

Author:
Tomek Kaczanowski

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
NEG()
          This constructor creates NEG strategy object with probability of mistake = 0
 
Method Summary
 double getMove()
          returns move
 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

NEG

public NEG()
This constructor creates NEG strategy object with probability of mistake = 0

Method Detail

getMove

public double getMove()
Description copied from class: Strategy
returns move

Specified by:
getMove in class Strategy
Returns:
move of this strategy

reset

public void reset()
Description copied from class: Strategy
sets the initial state of this strategy

Overrides:
reset in class Strategy