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

QuoAdvocate Class Reference

Inheritance diagram for QuoAdvocate:

Inheritance graph
[legend]
Collaboration diagram for QuoAdvocate:

Collaboration graph
[legend]
List of all members.

Detailed Description

A decorator that sends the status and advice values to QuO system conditions.

Definition at line 30 of file QuoAdvocate.hh.

Public Member Functions

 QuoAdvocate (void)
 Default constructor.
virtual ~QuoAdvocate (void)
 Destructor.
virtual void SetDelegateAttributeObject (const char *id, const CORBA::Object_ptr value) throw (CORBA::SystemException)
 
Parameters:
id The attribute identifier.
value The new attribute value.

virtual CORBA::Any * GetDelegateAttribute (const char *id) throw (CORBA::SystemException)
 
Parameters:
id The attribute identifier.
Returns:
The attribute's current value.

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


Protected Attributes

quo::ValueSC_var eta_Status
 The QuO system condition that should be updated with the 'status' value given in ReportCPU.
quo::ValueSC_var eta_Advice
 The QuO system condition that should be updated with the 'advice' value given in ReportCPU.


Member Function Documentation

CORBA::Any_ptr QuoAdvocate::GetDelegateAttribute const char *  id  )  throw (CORBA::SystemException) [virtual]
 

Parameters:
id The attribute identifier.
Returns:
The attribute's current value.

Currently supported 'id' values are:

  • status-sc The syscond to send the status value to.
  • advice-sc The syscond to send the advice value to.

Reimplemented from DelegateMixin< Broker::RealTimeTask, Broker::RealTimeTask_var >.

Definition at line 66 of file QuoAdvocate.cc.

References DelegateMixin< Broker::RealTimeTask, Broker::RealTimeTask_var >::GetDelegateAttribute().

Here is the call graph for this function:

void QuoAdvocate::SetDelegateAttributeObject const char *  id,
const CORBA::Object_ptr  value
throw (CORBA::SystemException) [virtual]
 

Parameters:
id The attribute identifier.
value The new attribute value.

Currently supported 'id' values are:

  • status-sc The syscond to send the status value to.
  • advice-sc The syscond to send the advice value to.

Reimplemented from DelegateMixin< Broker::RealTimeTask, Broker::RealTimeTask_var >.

Definition at line 37 of file QuoAdvocate.cc.


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