|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.palamedes.gdl.core.resolver.javaprover.ReasonerAdapter
public class ReasonerAdapter
Constructor Summary | |
---|---|
ReasonerAdapter(java.lang.String gameDescription)
|
Method Summary | |
---|---|
IFluent |
createFluent(java.lang.String fluentStr)
This method should return a valid FluentAdapter for this reasoner. |
IMove |
createMove(java.lang.String moveStr)
This method should return a valid MoveAdapter for this reasoner. |
int |
getGoalValue(java.lang.String roleName,
IGameState currentState)
Returns a value between 0 - 100 if a goal value exists; otherwise -1. |
IMove[] |
getLegalMoves(java.lang.String roleName,
IGameState currentState)
Returns the legal moves for a specified role. |
IGameState |
getNextState(IGameState currentState,
IMove[] moves)
Returns the next state for a given parent state and specified moves. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReasonerAdapter(java.lang.String gameDescription)
Method Detail |
---|
public int getGoalValue(java.lang.String roleName, IGameState currentState) throws java.lang.InterruptedException
IReasoner
getGoalValue
in interface IReasoner
java.lang.InterruptedException
public IMove[] getLegalMoves(java.lang.String roleName, IGameState currentState) throws java.lang.InterruptedException
IReasoner
getLegalMoves
in interface IReasoner
java.lang.InterruptedException
public IGameState getNextState(IGameState currentState, IMove[] moves) throws java.lang.InterruptedException
IReasoner
getNextState
in interface IReasoner
java.lang.InterruptedException
public IFluent createFluent(java.lang.String fluentStr)
IReasoner
createFluent
in interface IReasoner
public IMove createMove(java.lang.String moveStr)
IReasoner
createMove
in interface IReasoner
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |