public class UnmodeledFavoredPolicy extends Policy
Policy.ActionProb, Policy.GroundedAnnotatedAction, Policy.PolicyUndefinedException| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<Action> |
allActions |
protected Model |
model |
protected Policy |
sourcePolicy |
annotateOptionDecomposition, evaluateDecomposesOptions| Constructor and Description |
|---|
UnmodeledFavoredPolicy(Policy sourcePolicy,
Model model,
java.util.List<Action> actions) |
| Modifier and Type | Method and Description |
|---|---|
AbstractGroundedAction |
getAction(State s)
This method will return an action sampled by the policy for the given state.
|
java.util.List<Policy.ActionProb> |
getActionDistributionForState(State s)
This method will return action probability distribution defined by the policy.
|
boolean |
isDefinedFor(State s)
Specifies whether this policy is defined for the input state.
|
boolean |
isStochastic()
Indicates whether the policy is stochastic or deterministic.
|
evaluateBehavior, evaluateBehavior, evaluateBehavior, evaluateBehavior, evaluateBehavior, evaluateMethodsShouldAnnotateOptionDecomposition, evaluateMethodsShouldDecomposeOption, followAndRecordPolicy, followAndRecordPolicy, getDeterministicPolicy, getProbOfAction, getProbOfActionGivenDistribution, getProbOfActionGivenDistribution, sampleFromActionDistributionprotected Policy sourcePolicy
protected Model model
protected java.util.List<Action> allActions
public AbstractGroundedAction getAction(State s)
Policypublic java.util.List<Policy.ActionProb> getActionDistributionForState(State s)
PolicygetActionDistributionForState in class Policys - the state for which an action distribution should be returnedpublic boolean isStochastic()
PolicyisStochastic in class Policypublic boolean isDefinedFor(State s)
PolicyisDefinedFor in class Policys - the input state to test for whether this policy is definedState s, false otherwise.