|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.palamedes.gdl.core.simulation.strategies.AbstractStrategy
public abstract class AbstractStrategy
Field Summary | |
---|---|
protected double |
expectedGoal
|
protected IGame |
game
|
protected double |
heuristic
|
protected static java.lang.InterruptedException |
iException
General interrupted exception for timing purpose |
protected Match |
match
|
protected int |
maxSteps
|
protected static int |
maxStepsDefault
The upper limit of expected steps for a game |
protected int |
playerNumber
|
protected static java.util.Random |
random
A random number generator. |
protected double |
reliability
|
Constructor Summary | |
---|---|
AbstractStrategy()
|
Method Summary | |
---|---|
void |
dispose()
A strategy is responsible to dispose all own references to avoid reference cycles. |
double |
getExpectedGoalValue()
Returns a value for the last chosen move that should give an indicator what goal value we think we might get in the end. |
double |
getHeuristicValue(IGameNode node)
Returns a value for the game node that can be used by a heuristic to evaluate the game node. |
abstract IMove |
getMove(IGameNode currentNode)
|
IMove[] |
getRandomCombinedMove()
|
double |
getReliabilityValue()
Returns a value for the last chosen move that should give an indicator value for the reliability of it. |
void |
initMatch(Match initMatch)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.util.Random random
protected static final int maxStepsDefault
protected static final java.lang.InterruptedException iException
protected Match match
protected IGame game
protected int maxSteps
protected int playerNumber
protected double reliability
protected double heuristic
protected double expectedGoal
Constructor Detail |
---|
public AbstractStrategy()
Method Detail |
---|
public void initMatch(Match initMatch)
initMatch
in interface IStrategy
public abstract IMove getMove(IGameNode currentNode)
getMove
in interface IStrategy
public void dispose()
IStrategy
dispose
in interface IStrategy
public double getHeuristicValue(IGameNode node)
IStrategy
getHeuristicValue
in interface IStrategy
public double getReliabilityValue()
IStrategy
getReliabilityValue
in interface IStrategy
public double getExpectedGoalValue()
IStrategy
getExpectedGoalValue
in interface IStrategy
public IMove[] getRandomCombinedMove() throws java.lang.InterruptedException
java.lang.InterruptedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |