S - States classA - Action class.public class StochasticShortestPathSolver<S extends StateC,A extends Action> extends AbstractTotalSolver<S,A>
| Constructor and Description |
|---|
StochasticShortestPathSolver(StochasticShortestPath<S,A> problem)
Default contructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
description()
This method return a complete verbal describtion of this element.
|
double |
future(S i,
A a)
This method calculates the expected value of valueFunction for the
current state and a specified action.
|
long |
getIterations() |
StochasticShortestPath<S,A> |
getProblem()
Returns the problem associated with this solver.
|
long |
getProcessTime() |
java.lang.String |
label()
The sub classes must return the Solver name.
|
Solution<S,A> |
solve()
Called to solve the problem.
|
printSolutiongetOptimalPolicy, getOptimalValueFunction, getValueFunction, isSolved, printSolution, setPrintProcessTime, setPrintValueFunction, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitequalspublic StochasticShortestPathSolver(StochasticShortestPath<S,A> problem)
problem - the structure of the problem of type StochasticShortestPathpublic StochasticShortestPath<S,A> getProblem()
AbstractInfiniteSolvergetProblem in class AbstractInfiniteSolver<S extends StateC,A extends Action>Solver.getProblem()public final double future(S i, A a) throws StructureException
i - Current Statea - Action takenStructureExceptionpublic Solution<S,A> solve() throws StructureException
Solverpublic java.lang.String description()
JMarkovElementdescription in interface JMarkovElementdescription in class Solver<S extends StateC,A extends Action>Object.toString()public java.lang.String label()
Solverlabel in interface JMarkovElementlabel in class Solver<S extends StateC,A extends Action>Solver.label()public final long getProcessTime()
public final long getIterations()
getIterations in class AbstractInfiniteSolver<S extends StateC,A extends Action>