Class for storing product policies.
More...
#include <sgproductpolicy.hpp>
|
|
| SGProductPolicy (int _numStates, const SGPoint &_dir) |
| | Constructor.
|
| |
|
const SGPolicySet & | getPolicies (int state) const |
| | Get method for policies in a given state.
|
| |
|
const SGPoint & | getDir () const |
| | Get method for the direction.
|
| |
|
const vector< double > & | getLevels () const |
| | Get method for levels.
|
| |
|
void | insertPolicy (int state, const SGPolicy &policy) |
| | Inserts a new policy in the given state.
|
| |
|
void | erasePolicy (int state, const SGPolicy &policy) |
| | Removes a policy from the given state.
|
| |
|
void | setLevel (int state, double lvl) |
| | Sets the level in a given state.
|
| |
|
void | clear () |
| | Clears the policies in all states.
|
| |
|
bool | isempty () const |
| | Returns whether the policy set is empty in any state.
|
| |
|
int | dimension () const |
| | Returns the total number of policies, minus the number of states.
|
| |
|
std::string | hash () const |
| | Returns a unique identifier for the product policy.
|
| |
|
int | numStates () const |
| | Returns the number of states.
|
| |
Class for storing product policies.
< This class is part of the routine for the exact computation of the max-min-max operator in SGSolver_MaxMinMax_3Player.
◆ dir
The direction in which these policies are optimal.
◆ levels
| vector<double> SGProductPolicy::levels |
|
private |
The associated optimal levels.
◆ policies
| vector<SGPolicySet> SGProductPolicy::policies |
|
private |
The vector of sets of policies for each state.
The documentation for this class was generated from the following files: