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.


Public Member Functions

 GlacialTaskAdvocate (const Broker::TaskParameters &tp) throw (CORBA::SystemException, Broker::DuplicateTaskParameter, Broker::InvalidTaskParameter, Broker::MissingTaskParameter)
 
Parameters:
tp The description of the task.
Returns:
A new Task object.
Exceptions:
DuplicateTaskParameter if the given schedule has a duplicate parameter.
InvalidTaskParameter if the given schedule has an invalid parameter.
MissingTaskParameter if the given schedule is missing a required parameter.


virtual CORBA::ULong ComputeAdvice (CORBA::ULong status) throw (CORBA::SystemException, Broker::InvalidStatus)
 Compute a new processing time advice from the given status value.


Member Function Documentation

CORBA::ULong GlacialTaskAdvocate::ComputeAdvice CORBA::ULong  status  )  throw (CORBA::SystemException, Broker::InvalidStatus) [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:
status The value passed into ReportCPU.
Returns:
A processing time with a smaller change than that reported by the parent.
Exceptions:
InvalidStatus if the status value is invalid.
CORBA::BAD_INV_ORDER if the method is called without BeginCPUScheduling() being called first.

Reimplemented from ExactTaskAdvocate.


The documentation for this class was generated from the following files:
Generated on Mon Dec 1 16:22:41 2003 for CPUBroker by doxygen 1.3.4