|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rlcommunity.rlglue.codec.types.Reward_observation_terminal
public class Reward_observation_terminal
I'm iteratively updating these methods to have getters and setters for all components because eventually we might like to make the actual members private.
Field Summary | |
---|---|
Observation |
o
|
double |
r
|
int |
terminal
|
Constructor Summary | |
---|---|
Reward_observation_terminal()
|
|
Reward_observation_terminal(double reward,
Observation observation,
boolean terminal)
|
|
Reward_observation_terminal(double reward,
Observation observation,
int terminal)
|
|
Reward_observation_terminal(Reward_observation_terminal src)
This is a deep copy constructor |
Method Summary | |
---|---|
Reward_observation_terminal |
duplicate()
|
Observation |
getObservation()
|
double |
getReward()
|
int |
getTerminal()
Deprecated. use isTerminal |
boolean |
isTerminal()
|
void |
setObservation(Observation o)
|
void |
setReward(double newReward)
Set the reward value. |
void |
setTerminal(boolean newTerminal)
Adding this method in an effort to get us away from the integer terminal type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public double r
public Observation o
public int terminal
Constructor Detail |
---|
public Reward_observation_terminal()
public Reward_observation_terminal(double reward, Observation observation, int terminal)
public Reward_observation_terminal(double reward, Observation observation, boolean terminal)
public Reward_observation_terminal(Reward_observation_terminal src)
src
- Method Detail |
---|
public void setReward(double newReward)
newReward
- public double getReward()
public boolean isTerminal()
public int getTerminal()
public void setTerminal(boolean newTerminal)
newTerminal
- public void setObservation(Observation o)
o
- public Observation getObservation()
public Reward_observation_terminal duplicate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |