Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

StubRealTimeTask Class Reference

List of all members.

Detailed Description

A Broker::RealTimeTask class that can be used for testing.

Definition at line 28 of file StubRealTimeTask.hh.

Public Member Functions

 StubRealTimeTask (const char *name)
 Construct an empty StubRealTimeTask object.

virtual ~StubRealTimeTask ()
 Deconstruct a StubTask object.

virtual char * Name () throw (CORBA::SystemException)
virtual void BeginCPUScheduling (Broker::Manager_ptr manager, const Broker::ScheduleParameters &sp) throw (CORBA::SystemException, Broker::DuplicateScheduleParameter, Broker::InvalidScheduleParameter, Broker::MissingScheduleParameter)
 Basic implementation of Broker::Task::BeginCPUScheduling.

virtual void EndCPUScheduling (void) throw (CORBA::SystemException)
 Empty implementation of Broker::Task::EndCPUScheduling.

virtual CORBA::ULong Period (void) throw (CORBA::SystemException)
 

virtual CORBA::ULong Deadline (void) throw (CORBA::SystemException)
 

virtual CORBA::ULong GetComputeTime (void) throw (CORBA::SystemException)
 
Returns:
The number of microseconds of compute time.


virtual void SetComputeTime (CORBA::ULong usecs) throw (CORBA::SystemException)
 
Parameters:
usecs The number of microseconds of compute time.


virtual void ReportCPU (Broker::RealTimeTask_ptr rtt, CORBA::ULong status, CORBA::ULong advice) throw (CORBA::SystemException)
 This method would then be used by adaptation proxies to change the advice parameter to their liking.

Parameters:
rtt The task object that was actually added to the manager.
status The CPU usage of the task in microseconds.
advice The amount of CPU time, in microseconds, that the application would like for the next period.
See also:
ChangeTaskCPU



Private Attributes

Broker::Manager_var srtt_Manager
 The Broker::Manager used to handle scheduling during contention.

CORBA::String_var srtt_Name
 The task name.

CORBA::ULong srtt_Period
 The task's period.

CORBA::ULong srtt_Deadline
 The task's deadline.

CORBA::ULong srtt_ComputeTime
 The task compute time.


Member Function Documentation

virtual void StubRealTimeTask::BeginCPUScheduling Broker::Manager_ptr  manager,
const Broker::ScheduleParameters sp
throw (CORBA::SystemException, Broker::DuplicateScheduleParameter, Broker::InvalidScheduleParameter, Broker::MissingScheduleParameter) [inline, virtual]
 

Basic implementation of Broker::Task::BeginCPUScheduling.

Parameters:
manager Stored internally.
sp Specifies the "period" and/or "deadline" values.

Definition at line 63 of file StubRealTimeTask.hh.

References manager, Broker::ScheduleParameters, srtt_Deadline, srtt_Manager, srtt_Period, and string_to_microsec().

Here is the call graph for this function:

virtual char* StubRealTimeTask::Name void   )  throw (CORBA::SystemException) [inline, virtual]
 

Returns:
The name passed in the constructor.

Definition at line 51 of file StubRealTimeTask.hh.

References srtt_Name.


Member Data Documentation

Broker::Manager_var StubRealTimeTask::srtt_Manager [private]
 

The Broker::Manager used to handle scheduling during contention.

Only valid between BeginCPUScheduling and EndCPUScheduling calls.

Definition at line 195 of file StubRealTimeTask.hh.

Referenced by BeginCPUScheduling(), EndCPUScheduling(), and ReportCPU().


The documentation for this class was generated from the following file:
Generated on Mon Dec 1 16:30:41 2003 for CPU Broker by doxygen 1.3.4