#include <ACT.hpp>

Public Member Functions | |
| ACT_State | internal_state () |
| bool | ready () const |
| bool | would_block () const |
| bool | working () const |
| Return is whether this action is in an unfinished state (either Ready or Waiting). | |
| bool | completed () const |
| bool | bad () const |
| virtual ACT_State | operator() (void)=0 |
| virtual ACT_State | operator() (wakeup_listener *)=0 |
Protected Member Functions | |
| basic_act () | |
| Protected constructor for child classes. | |
| ACT_State | set_ready () |
| Protected setter for subclass implementation. | |
| ACT_State | set_would_block () |
| Protected setter for subclass implementation. | |
| ACT_State | set_completed () |
| Protected setter for subclass implementation. | |
| ACT_State | set_bad () |
| Protected setter for subclass implementation. | |
| ACT_State | set_state (ACT_State x) |
| Protected arbitrary setter for subclasses that filter. | |
This class has no actions. That's a job for the subclasses. This class provides notation for the control state of a task.
States:
Completed and Bad.Working.A question of nested control arises. A typical use (although not the only one) is to build an ACT by calling other ACT's. In this idiom, an ACT with a still-working sub-ACT is itself also still working. Thus the following code often appears: action() ; if ( action.working() ) return ; Furthermore, such code should have the property that when called again, its internal state leads the action to be called again.
| ACT::basic_act::basic_act | ( | ) | [inline, protected] |
Protected constructor for child classes.
| ACT_State ACT::basic_act::set_ready | ( | ) | [inline, protected] |
Protected setter for subclass implementation.
| ACT_State ACT::basic_act::set_would_block | ( | ) | [inline, protected] |
Protected setter for subclass implementation.
| ACT_State ACT::basic_act::set_completed | ( | ) | [inline, protected] |
Protected setter for subclass implementation.
| ACT_State ACT::basic_act::set_bad | ( | ) | [inline, protected] |
Protected setter for subclass implementation.
Protected arbitrary setter for subclasses that filter.
| ACT_State ACT::basic_act::internal_state | ( | ) | [inline] |
| bool ACT::basic_act::ready | ( | ) | const [inline] |
| bool ACT::basic_act::would_block | ( | ) | const [inline] |
| bool ACT::basic_act::working | ( | ) | const [inline] |
Return is whether this action is in an unfinished state (either Ready or Waiting).
| bool ACT::basic_act::completed | ( | ) | const [inline] |
| bool ACT::basic_act::bad | ( | ) | const [inline] |
| virtual ACT_State ACT::basic_act::operator() | ( | void | ) | [pure virtual] |
Implemented in ACT::simple_act, and ACT::autonomous_act.
| virtual ACT_State ACT::basic_act::operator() | ( | wakeup_listener * | ) | [pure virtual] |
Implemented in ACT::simple_act, and ACT::autonomous_act.
1.5.4