public class TigerModel extends java.lang.Object implements FullModel
FullModel.Helper| Modifier and Type | Field and Description | 
|---|---|
double | 
correctDoor
the reward for opening the correct door 
 | 
double | 
listen
The reward for listening 
 | 
double | 
nothing
The reward for do nothing. 
 | 
protected StateGenerator | 
sg  | 
double | 
wrongDoor
The reward for opening the wrong door 
 | 
| Constructor and Description | 
|---|
TigerModel(double correctDoor,
          double wrongDoor,
          double listen,
          double nothing)  | 
| Modifier and Type | Method and Description | 
|---|---|
EnvironmentOutcome | 
sample(State s,
      Action a)
Samples a transition from the transition distribution and returns it. 
 | 
boolean | 
terminal(State s)
Indicates whether a state is a terminal state (i.e., no more action occurs and zero reward received from there on out) 
 | 
java.util.List<TransitionProb> | 
transitions(State s,
           Action a)
 | 
public double correctDoor
public double wrongDoor
public double listen
public double nothing
protected StateGenerator sg
public TigerModel(double correctDoor,
                  double wrongDoor,
                  double listen,
                  double nothing)
public java.util.List<TransitionProb> transitions(State s, Action a)
FullModelAction is applied in State s. The returned
 list only needs to include transitions that have non-zero probability of occurring.transitions in interface FullModels - the source Statea - the Action applied in the source statepublic EnvironmentOutcome sample(State s, Action a)
SampleModelsample in interface SampleModels - the source statea - the action taken in the source stateEnvironmentOutcome describing the sampled transitionpublic boolean terminal(State s)
SampleModelterminal in interface SampleModels - the input state to test