Class LakeMDP
- java.lang.Object
-
- ai.libs.jaicore.search.probleminputs.AMDP<TimedLakeState,ELakeActions,java.lang.Double>
-
- ai.libs.jaicore.search.exampleproblems.lake.LakeMDP
-
- All Implemented Interfaces:
IMDP<TimedLakeState,ELakeActions,java.lang.Double>
- Direct Known Subclasses:
FelixLakeMDP
,JasminLakeMDP
public class LakeMDP extends AMDP<TimedLakeState,ELakeActions,java.lang.Double>
-
-
Constructor Summary
Constructors Constructor Description LakeMDP(LakeLayout layout, int startRow, int startCol, int goalRow, int goalCol, int timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TimedLakeState
down(TimedLakeState s)
java.util.Collection<ELakeActions>
getApplicableActions(TimedLakeState state)
java.util.Map<TimedLakeState,java.lang.Double>
getProb(TimedLakeState state, ELakeActions action)
java.lang.Double
getScore(TimedLakeState state, ELakeActions action, TimedLakeState successor)
boolean
isGoalState(LakeState s)
boolean
isMaximizing()
TimedLakeState
left(TimedLakeState s)
TimedLakeState
right(TimedLakeState s)
TimedLakeState
up(TimedLakeState s)
-
Methods inherited from class ai.libs.jaicore.search.probleminputs.AMDP
getInitState, getProb, isTerminalState
-
-
-
-
Constructor Detail
-
LakeMDP
public LakeMDP(LakeLayout layout, int startRow, int startCol, int goalRow, int goalCol, int timeout)
-
-
Method Detail
-
getApplicableActions
public java.util.Collection<ELakeActions> getApplicableActions(TimedLakeState state)
-
getProb
public java.util.Map<TimedLakeState,java.lang.Double> getProb(TimedLakeState state, ELakeActions action)
-
isGoalState
public boolean isGoalState(LakeState s)
-
up
public TimedLakeState up(TimedLakeState s)
-
down
public TimedLakeState down(TimedLakeState s)
-
left
public TimedLakeState left(TimedLakeState s)
-
right
public TimedLakeState right(TimedLakeState s)
-
getScore
public java.lang.Double getScore(TimedLakeState state, ELakeActions action, TimedLakeState successor)
-
isMaximizing
public boolean isMaximizing()
-
-