Class GraphBasedMDP<N,A>
- java.lang.Object
-
- ai.libs.jaicore.search.algorithms.mdp.mcts.GraphBasedMDP<N,A>
-
-
Constructor Summary
Constructors Constructor Description GraphBasedMDP(org.api4.java.ai.graphsearch.problem.IPathSearchWithPathEvaluationsInput<N,A,java.lang.Double> graph)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<A>getApplicableActions(N state)NgetInitState()java.lang.StringgetLoggerName()java.util.Map<N,java.lang.Double>getProb(N state, A action)doublegetProb(N state, A action, N successor)java.lang.DoublegetScore(N state, A action, N successor)AgetUniformlyRandomApplicableAction(N state, java.util.Random random)booleanisActionApplicableInState(N state, A action)booleanisMaximizing()booleanisTerminalState(N state)voidsetLoggerName(java.lang.String name)
-
-
-
Method Detail
-
getInitState
public N getInitState()
- Specified by:
getInitStatein interfaceIMDP<N,A,java.lang.Double>
-
isMaximizing
public boolean isMaximizing()
- Specified by:
isMaximizingin interfaceIMDP<N,A,java.lang.Double>
-
getApplicableActions
public java.util.Collection<A> getApplicableActions(N state) throws java.lang.InterruptedException
- Specified by:
getApplicableActionsin interfaceIMDP<N,A,java.lang.Double>- Throws:
java.lang.InterruptedException
-
getProb
public java.util.Map<N,java.lang.Double> getProb(N state, A action) throws java.lang.InterruptedException
-
getProb
public double getProb(N state, A action, N successor) throws java.lang.InterruptedException
-
getScore
public java.lang.Double getScore(N state, A action, N successor) throws org.api4.java.ai.graphsearch.problem.pathsearch.pathevaluation.PathEvaluationException, java.lang.InterruptedException
-
isTerminalState
public boolean isTerminalState(N state) throws java.lang.InterruptedException
- Specified by:
isTerminalStatein interfaceIMDP<N,A,java.lang.Double>- Throws:
java.lang.InterruptedException
-
getLoggerName
public java.lang.String getLoggerName()
- Specified by:
getLoggerNamein interfaceorg.api4.java.common.control.ILoggingCustomizable
-
setLoggerName
public void setLoggerName(java.lang.String name)
- Specified by:
setLoggerNamein interfaceorg.api4.java.common.control.ILoggingCustomizable
-
getUniformlyRandomApplicableAction
public A getUniformlyRandomApplicableAction(N state, java.util.Random random) throws java.lang.InterruptedException
- Specified by:
getUniformlyRandomApplicableActionin interfaceIMDP<N,A,java.lang.Double>- Throws:
java.lang.InterruptedException
-
-