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

GlacialTaskAdvocate Class Reference

Inheritance diagram for GlacialTaskAdvocate:

Inheritance graph
[legend]
Collaboration diagram for GlacialTaskAdvocate:

Collaboration graph
[legend]
List of all members.

Detailed Description

An ExactTaskAdvocate that is slower to react to changes in the required amount of CPU time.

Definition at line 27 of file GlacialTaskAdvocate.hh.

Public Member Functions

virtual void ReportCPU (Broker::RealTimeTask_ptr rtt, CORBA::ULong status, CORBA::ULong advice) throw (CORBA::SystemException)
 Compute a new processing time advice from the given status value.


Private Attributes

CORBA::ULong gta_LastAdvice
 The last advice reported by this advocate.


Member Function Documentation

void GlacialTaskAdvocate::ReportCPU Broker::RealTimeTask_ptr  rtt,
CORBA::ULong  status,
CORBA::ULong  advice
throw (CORBA::SystemException) [virtual]
 

Compute a new processing time advice from the given status value.

The glacial implementation will use the advice reported by the parent class and temper the change by some factor.

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.
Returns:
A processing time with a smaller change than that reported by the parent.
Exceptions:
CORBA::BAD_INV_ORDER if the method is called without BeginCPUScheduling() being called first.

Reimplemented from RealTimeTaskDelegateImpl.

Definition at line 31 of file GlacialTaskAdvocate.cc.

References RealTimeTaskDelegateImpl::ReportCPU(), and rtt.

Here is the call graph for this function:


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