#include <ACT.hpp>
Public Types | |
| enum | state { Ready, Would_Block, Completed, Bad } |
| Symbolic names for the return states of an action. More... | |
Public Member Functions | |
| ACT_State (state x) | |
| Ordinary constructor. | |
| ACT_State & | operator= (state y) |
| Ordinary assignment. | |
| bool | ready () const |
| Convenience test. | |
| bool | would_block () const |
| Convenience test. | |
| bool | completed () const |
| Convenience test. | |
| bool | bad () const |
| Convenience test. | |
| bool | working () const |
This enumeration is at the core of the control flow idiom of the ACT environment. When a scheduler or another action calls an action, the action may complete its call before it completes its embodied operation. The states break down as follows:
An important aspect of the Waiting state is that an action that returns this state has accepted responsibility for setting in motion its own later wake-up. The scheduler does not do this, since it doesn't deal in specifics.
| ACT::ACT_State::ACT_State | ( | state | x | ) | [inline] |
Ordinary constructor.
| bool ACT::ACT_State::ready | ( | ) | const [inline] |
Convenience test.
| bool ACT::ACT_State::would_block | ( | ) | const [inline] |
Convenience test.
| bool ACT::ACT_State::completed | ( | ) | const [inline] |
Convenience test.
| bool ACT::ACT_State::bad | ( | ) | const [inline] |
Convenience test.
| bool ACT::ACT_State::working | ( | ) | const [inline] |
Test whether state is an unfinished (i.e. still working) state. If true, it's either Ready or Waiting.
1.5.4