public interface TaskSettableEnvironment extends Environment
Environment
interface extension that allows the RewardFunction
and TerminalFunction
to set and accessed.Modifier and Type | Method and Description |
---|---|
RewardFunction |
getRf()
Returns the
RewardFunction this Environment uses
to determine rewards. |
TerminalFunction |
getTf()
Returns the
TerminalFunction this Environment uses
to determine terminal states |
void |
setRf(RewardFunction rf)
Sets the
RewardFunction of this Environment to
the specified reward function. |
void |
setTf(TerminalFunction tf)
Sets the
TerminalFunction of this Environment to
the specified terminal function. |
executeAction, getCurrentObservation, getLastReward, isInTerminalState, resetEnvironment
void setRf(RewardFunction rf)
RewardFunction
of this Environment
to
the specified reward function.rf
- the new RewardFunction
of the Environment
.void setTf(TerminalFunction tf)
TerminalFunction
of this Environment
to
the specified terminal function.tf
- the new TerminalFunction
of the Environment
.RewardFunction getRf()
RewardFunction
this Environment
uses
to determine rewards.RewardFunction
TerminalFunction getTf()
TerminalFunction
this Environment
uses
to determine terminal statesTerminalFunction