java.lang.Object
org.tweetyproject.machinelearning.rl.mdp.FixedPolicy<S,A>
- Type Parameters:
S
- The type of statesA
- The type of actions
- All Implemented Interfaces:
Policy<S,
A>
A fixed policy for MDPs, i.e., a simple map from states to actions.
- Author:
- Matthias Thimm
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FixedPolicy
public FixedPolicy()Creates a new fixed policy
-
-
Method Details
-
execute
-
isWellFormed
Checks whether this policy is well-formed, i.e. whether every state in the given set of states is mapped to some action.- Parameters:
states
- some set of states- Returns:
- "true" iff this policy is well-formed
-
set
Sets the action for the given state.- Parameters:
s
- some statea
- some action
-
toString
-
hashCode
public int hashCode() -
equals
-