public class DelegatedModel extends java.lang.Object implements FullModel
FullModelthat will delegate transition estimates for different actions to different
FullModelimplementations. Also contains a default
SampleModelto use for actions that do not have specific delegates assigned.
|Constructor and Description|
|Modifier and Type||Method and Description|
Samples a transition from the transition distribution and returns it.
Indicates whether a state is a terminal state (i.e., no more action occurs and zero reward received from there on out)
public DelegatedModel(SampleModel defaultMode)
public java.util.List<TransitionProb> transitions(State s, Action a)
Actionis applied in
States. The returned list only needs to include transitions that have non-zero probability of occurring.
s- the source
Actionapplied in the source state
public EnvironmentOutcome sample(State s, Action a)
s- the source state
a- the action taken in the source state
EnvironmentOutcomedescribing the sampled transition
public boolean terminal(State s)
s- the input state to test