|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.palamedes.gdl.core.resolver.prologprover.ReasonerAdapter
public final 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 gameState)
Returns a value between 0 - 100 if a goal value exists; otherwise -1. |
IGameState |
getInitialState()
|
IMove[] |
getLegalMoves(java.lang.String roleName,
IGameState gameState)
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. |
java.lang.String[] |
getRoleNames()
|
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 IFluent createFluent(java.lang.String fluentStr)
IReasoner
createFluent
in interface IReasoner
public IMove createMove(java.lang.String moveStr)
IReasoner
createMove
in interface IReasoner
public int getGoalValue(java.lang.String roleName, IGameState gameState) throws java.lang.InterruptedException
IReasoner
getGoalValue
in interface IReasoner
java.lang.InterruptedException
public IMove[] getLegalMoves(java.lang.String roleName, IGameState gameState) 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 IGameState getInitialState()
public java.lang.String[] getRoleNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |