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)
FullStateModel
Action
is applied in State
s. The returned
list only needs to include transitions that have non-zero probability of occurring.stateTransitions
in interface FullStateModel
s
- the source statea
- the action to be applied in the source stateStateTransitionProb
objects.public State sample(State s, Action a)
SampleStateModel
State
from a state transition function.sample
in interface SampleStateModel
s
- the source statea
- the action to be executed in the source stateState
protected State stack(BlocksWorldState s, ObjectParameterizedAction a)
protected State unstack(BlocksWorldState s, ObjectParameterizedAction a)