public class BWModel extends java.lang.Object implements FullStateModel
FullStateModel.Helper| Constructor and Description |
|---|
BWModel() |
| Modifier and Type | Method and Description |
|---|---|
State |
sample(State s,
Action a)
Samples and returns a
State from a state transition function. |
protected State |
stack(BlocksWorldState s,
ObjectParameterizedAction a) |
java.util.List<StateTransitionProb> |
stateTransitions(State s,
Action a)
|
protected State |
unstack(BlocksWorldState s,
ObjectParameterizedAction a) |
public java.util.List<StateTransitionProb> stateTransitions(State s, Action a)
FullStateModelAction is applied in State s. The returned
list only needs to include transitions that have non-zero probability of occurring.stateTransitions in interface FullStateModels - the source statea - the action to be applied in the source stateStateTransitionProb objects.public State sample(State s, Action a)
SampleStateModelState from a state transition function.sample in interface SampleStateModels - the source statea - the action to be executed in the source stateStateprotected State stack(BlocksWorldState s, ObjectParameterizedAction a)
protected State unstack(BlocksWorldState s, ObjectParameterizedAction a)