Holds information required to execute an action described by a ActionType. More...
Header: | #include <Action> |
Action(const ActionTypeId & actionTypeId = ActionTypeId(), const DeviceId & deviceId = DeviceId()) | |
Action(const Action & other) | |
ActionTypeId | actionTypeId() const |
DeviceId | deviceId() const |
ActionId | id() const |
bool | isValid() const |
Param | param(const ParamTypeId & paramTypeId) const |
ParamList | params() const |
void | setParams(const ParamList & params) |
void | operator=(const Action & other) |
Holds information required to execute an action described by a ActionType.
It is bound to a Device and an ActionType and holds the parameters for the execution of the action.
The params must match the template as described in ActionType.
See also Device and ActionType.
Construct an Action with the given deviceId and actionTypeId.
Construct a copy of an other Action.
Returns the actionTypeId for this Action.
Returns the deviceId this Action is associated with.
Returns the actionId for this Action.
An Action is valid if actionTypeId and deviceId are valid uuids. Returns true if valid, false if not.
Returns the parameter of this Action with a cetrain paramTypeId.
Returns the parameters for this Action.
See also setParams().
Set the parameters for this Action. params must match the template in the ActionType referred by Action::actionTypeId().
See also params().
Copy the data to an Action from an other action.