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

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 SetManager (Broker::Manager_ptr man) throw (CORBA::SystemException)
 
Parameters:
man The manager this task was added to.

virtual void BeginCPUScheduling (const Broker::ScheduleParameters &sp) throw (CORBA::SystemException, Broker::DuplicateScheduleParameter, Broker::InvalidScheduleParameter, Broker::MissingScheduleParameter)
 
Parameters:
sp The high level scheduling parameters.
Exceptions:
DuplicateScheduleParameter if the given schedule has a duplicate parameter.
InvalidScheduleParameter if the given schedule has an invalid parameter.
MissingScheduleParameter if the given schedule is missing a required parameter.
CORBA::BAD_INV_ORDER if the method is called without intervening calls to EndCPUScheduling().

virtual void EndCPUScheduling (void) throw (CORBA::SystemException)
 
Exceptions:
CORBA::BAD_INV_ORDER if the method is called without BeginCPUScheduling() being called first.

virtual Broker::CPUReserve PassCPU (Broker::RealTimeTask_ptr rtt, const Broker::CPUReserve &status, const Broker::CPUReserve &advice, const Broker::KeyedReportParameters &krp) 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.
krp Non-standard report parameters that are indexed by key name.
Returns:
The actual CPU reserve given to the task.
See also:
ChangeTaskCPU

virtual Broker::CPUReserve ReportCPU (const Broker::CPUReserve &status, const Broker::CPUReserve &advice, const Broker::KeyedReportParameters &krp) throw (CORBA::SystemException)
 This method would then be used by adaptation proxies to change the advice parameter to their liking.

Parameters:
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.
krp Non-standard report parameters that are indexed by key name.
Returns:
The actual CPU reserve given to the task.
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.


Member Function Documentation

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 104 of file StubRealTimeTask.hh.

Referenced by PassCPU(), and SetManager().


The documentation for this class was generated from the following file:
Generated on Fri Oct 22 07:51:06 2004 for CPU Broker by  doxygen 1.3.9.1