public interface FullActionModel
Action
objects that support returning the full
Action transition dynamics. Many planning algorithms, such as Dynamic programming methods, require the full transition dynamics,
so if you wish to use such an algorithm and it is possible to fully enumerate the transition dynamics, your Action
implementation should implement this interface.
The required getTransitions(burlap.oomdp.core.states.State, burlap.oomdp.singleagent.GroundedAction)
method provides the full transition dynamics of
an Action
. This method should return a list of all transitions from the input State
that have non-zero probability of occurring. These transitions are specified with a TransitionProbability
object that is a pair consisting of the next State
and a double specifying the probability
of transitioning to that state.
FullActionModel.FullActionModelHelper
that has static helper methods that may be useful for working with an Action
that implements
FullActionModel
. Specifically, it includes a method for sampling a state
from the transition distribution defined with getTransitions(burlap.oomdp.core.states.State, GroundedAction)
and it includes a method for removing TransitionProbability
elements from a list
that are assigned zero probability.Modifier and Type | Interface and Description |
---|---|
static class |
FullActionModel.FullActionModelHelper
A class with helper methods for working with actions that implement
FullActionModel . |
Modifier and Type | Method and Description |
---|---|
java.util.List<TransitionProbability> |
getTransitions(State s,
GroundedAction groundedAction)
Returns the transition probabilities for applying this action in the given state with the given set of parameters.
|
java.util.List<TransitionProbability> getTransitions(State s, GroundedAction groundedAction)
TransitionProbability
objects. The list
is only required to contain transitions with non-zero probability.s
- the state from which the transition probabilities when applying this action will be returned.groundedAction
- the GroundedAction
specifying the parameters to use