public interface TaskFactoredModel extends SampleModel
SampleModel
that computes its rewards and terminal states using RewardFunction
and
TerminalFunction
objects that can be modified.Modifier and Type | Method and Description |
---|---|
RewardFunction |
rewardFunction()
Returns the
RewardFunction this model uses to compute rewards |
TerminalFunction |
terminalFunction()
Returns the
TerminalFunction this model uses to determine terminal states |
void |
useRewardFunction(RewardFunction rf)
Tells this model to use the corresponding
RewardFunction |
void |
useTerminalFunction(TerminalFunction tf)
Tells this model to use the corresponding
TerminalFunction |
sample, terminal
void useRewardFunction(RewardFunction rf)
RewardFunction
rf
- the RewardFunction
void useTerminalFunction(TerminalFunction tf)
TerminalFunction
tf
- the TerminalFunction
RewardFunction rewardFunction()
RewardFunction
this model uses to compute rewardsRewardFunction
this model uses to compute rewardsTerminalFunction terminalFunction()
TerminalFunction
this model uses to determine terminal statesTerminalFunction
this model uses to determine terminal states