|
Qualia
0.2
|
#include <Action.h>

Public Member Functions | |
| Action (ActionProperties *properties) | |
| Class constructor. More... | |
| virtual | ~Action () |
| Class destructor. More... | |
| action_dim_t & | operator[] (int i) const |
| Access operator. More... | |
| virtual action_t | conflated () const |
| Returns the conflated representation of current action. More... | |
| virtual Action & | setConflated (action_t action) |
| Sets the action to the given conflated representation action. More... | |
| bool | undefined () const |
| Returns true if this action is undefined (see Action::reset()). More... | |
| virtual Action & | reset () |
| virtual bool | hasNext () |
| True iff iterator has a next action. More... | |
| virtual Action & | next () |
| virtual Action & | copyFrom (const Action &src) |
| Copies data from src. More... | |
| unsigned int | dim () const |
| Dimension of actions. More... | |
| unsigned long | nConflated () const |
| Number of conflated actions. More... | |
| unsigned int | nActions (int i) const |
| Number of possible actions in dimension i. More... | |
| virtual void | saveData (XFile *file) const |
| Save data to file (in binary format). More... | |
| virtual void | loadData (XFile *file) |
| Loads data from file (in binary format). Dimension needs to be known in advance. More... | |
Public Attributes | |
| ActionProperties * | properties |
| Pointer to the action properties (read-only). More... | |
| action_dim_t * | actions |
| The array containing the actions (of size dim()). More... | |
| bool | _undefined |
| Reset flag. More... | |
Represent an agent action. Actions in Qualia are always discrete. A specific action has two representations:
Meta-informations about the actions (dimensions and number of actions per dimension) are contained within an ActionProperties object that can be shared accross many actions.
| Action::Action | ( | ActionProperties * | properties | ) |
Class constructor.
|
virtual |
Class destructor.
|
virtual |
Returns the conflated representation of current action.
|
inline |
Dimension of actions.
|
virtual |
True iff iterator has a next action.
|
virtual |
Loads data from file (in binary format). Dimension needs to be known in advance.
|
inline |
Number of possible actions in dimension i.
|
inline |
Number of conflated actions.
|
virtual |
Resets iterator. Typically equivalent to setConflated(getConflated()+1) (although subclasses can change that behavior).
|
inline |
Access operator.
|
virtual |
Resets iterator. Notice that this sets the action to be undefined until the first call to next().
|
virtual |
Save data to file (in binary format).
Sets the action to the given conflated representation action.
|
inline |
Returns true if this action is undefined (see Action::reset()).
| bool Action::_undefined |
Reset flag.
| action_dim_t* Action::actions |
The array containing the actions (of size dim()).
| ActionProperties* Action::properties |
Pointer to the action properties (read-only).
1.8.3.1