Iterates through all the actions that are valid in the current state. If actions are continuous or very numerous, this should sample valid actions in a random order. The caller may decide that it has sampled enough at any time.
|
| GAgentActionIterator () |
|
virtual | ~GAgentActionIterator () |
|
virtual int | actionCount ()=0 |
| Returns the number of actions. If actions are continuous, this should return 0x7fffffff. (If actions are state-dependent, it should return the total number of possible unique actions unioned over all states.) More...
|
|
virtual int | actionDims ()=0 |
| Returns the number of dimensions in the action vector. More...
|
|
virtual bool | nextAction (double *pOutAction)=0 |
| Returns false if there are no more available actions. More...
|
|
virtual void | randomAction (double *pOutAction, GRand *pRand)=0 |
| Produces a random action. More...
|
|
virtual void | reset (const double *pState)=0 |
| Prepares to begin iterating over actions. (Note that this is not called by the constructor, so you should even call Reset the first time you iterate over the actions.) If the set of available actions is not state-dependent, this should simply ignore the pState parameter. More...
|
|