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.
|
printSolution
getOptimalPolicy, getOptimalValueFunction, getValueFunction, isSolved, printSolution, setPrintProcessTime, setPrintValueFunction, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals
public StochasticShortestPathSolver(StochasticShortestPath<S,A> problem)
problem
- the structure of the problem of type StochasticShortestPathpublic StochasticShortestPath<S,A> getProblem()
AbstractInfiniteSolver
getProblem
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 takenStructureException
public Solution<S,A> solve() throws StructureException
Solver
public java.lang.String description()
JMarkovElement
description
in interface JMarkovElement
description
in class Solver<S extends StateC,A extends Action>
Object.toString()
public java.lang.String label()
Solver
label
in interface JMarkovElement
label
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>