1#ifndef _DRAMA2_REQUEST_INC
2#define _DRAMA2_REQUEST_INC
73 _request(code), _delay(0), _status(
status) {}
95 double GetDelay()
const {
return _delay; }
StatusType GetStatus() const
Get the status.
Definition request.hh:127
double GetDelay() const
Get the delay.
Definition request.hh:122
Request(StatusType status, RequestCode code=RequestCode::End)
Specify a request using a RequestCode and completion status.
Definition request.hh:99
RequestCode GetCode() const
Get the request code.
Definition request.hh:117
Request(RequestCode code, double delay=0)
Specify a request using a RequestCode and delay.
Definition request.hh:111
Class used by Obey and Kick handlers to indicate rescheduling requirements.
Definition request.hh:78
void CreateRunDramaTask()
Create and run a DRAMA task, with standard exception handling.
Definition task.hh:1322
@ Message
MsgOut message from subsidiary action.
@ Exit
Loaded task exited message received.
RequestCode
Action reschedule request type.
Definition request.hh:65
@ Wait
Request that the reschedule after a delay.
@ Sleep
Request that the action go to sleep.
@ Stage
Request that the reschedule immediately.
@ End
Request that the action complete.
@ KickNoChangeReq
Indicate that a KICK is not change rescheduling
The drama namespace contains all the classes, types etc of the DRAMA 2 implementation.
Definition drama.hh:93
DRAMA 2 include file - Task class definition.