Definition at line 39 of file BasicDelegate.hh.
Public Member Functions | |
BasicDelegate (const char *name, unsigned long period, unsigned long deadline) | |
Construct a BasicDelegate with the given values. | |
virtual | ~BasicDelegate () |
Deconstruct a BasicDelegate. | |
virtual rk_stub_precall_retval_t | precall (void) |
Premethod callback that just records the current time. | |
virtual void | postcall (void) |
Postmethod callback that computes how many deadlines have been missed and reports the results to bd_Advocate. | |
Public Attributes | |
Broker::TaskParameters | bd_TaskDescription |
TaskParameters constructed by the object that can be passed on to Broker::TaskFactory::CreateTask. | |
Broker::ScheduleParameters | bd_CPUSchedule |
ScheduleParameters constructed by the object that can be passed on to Broker::Task::BeginScheduling. | |
Broker::RealTimeTask_var | bd_Advocate |
The process' advocate, this must be set by the code using the object. | |
Broker::KeyedReportParameters | bd_KeyedReportParameters |
The keyed parameters to pass through to ReportCPU. | |
Protected Attributes | |
unsigned long | bd_Period |
The period of the process in microseconds. | |
unsigned long | bd_Deadline |
The deadline of the process in microseconds and relative to the start of the period. | |
int | bd_AdviseDrop |
The number of data segments to drop in order to get back on schedule. | |
pid_t | bd_PID |
The simulated process ID. | |
timespec | bd_Start |
The "method" starting time as recorded by precall(). | |
rusage | bd_RUStart |
The resource usage at the "method" starting time. |
|
Construct a BasicDelegate with the given values. This includes:
Definition at line 31 of file BasicDelegate.cc. References bd_AdviseDrop, bd_CPUSchedule, bd_PID, bd_TaskDescription, cxx_delegate_postcall(), cxx_delegate_precall(), require, and rk_stub_mk_pid(). |
Here is the call graph for this function:
|
Premethod callback that just records the current time.
Implements FakeDelegate. Reimplemented in ContractDelegate. Definition at line 63 of file BasicDelegate.cc. References bd_AdviseDrop, require, rk_clock_gettime(), rk_stub_getrusage(), and rk_stub_precall_retval_t. Referenced by ContractDelegate::precall(). |
Here is the call graph for this function:
|
The number of data segments to drop in order to get back on schedule. This will be set by postcall() when it detects how many deadlines have been missed. Definition at line 123 of file BasicDelegate.hh. Referenced by BasicDelegate(), postcall(), and precall(). |
|
The process' advocate, this must be set by the code using the object. The user must also call Broker::Task::BeginCPUScheduling and Broker::Task::EndCPUScheduling. Definition at line 98 of file BasicDelegate.hh. Referenced by postcall(). |