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

MinMaxTaskAdvocate Class Reference

Inheritance diagram for MinMaxTaskAdvocate:

Inheritance graph
[legend]
Collaboration diagram for MinMaxTaskAdvocate:

Collaboration graph
[legend]
List of all members.

Detailed Description

An advocate that bounds an advice to a user-defined minimum and maximum.

Definition at line 26 of file MinMaxTaskAdvocate.hh.

Public Member Functions

 MinMaxTaskAdvocate (void)
 Default constructor.

virtual ~MinMaxTaskAdvocate (void)
 Destructor.

virtual void SetDelegateAttribute (const char *id, const CORBA::Any &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



Private Attributes

CORBA::ULong mm_Minimum
 Minimum advice to be reported by this advocate.

CORBA::ULong mm_Maximum
 Maximum advice to be reported by this advocate.


Member Function Documentation

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

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

Currently supported 'id' values are:

  • minimum The minimum advice to be reported by this advocate.
  • maximum The maximum advice to be reported by this advocate.

Reimplemented from DelegateMixin< T, T_var >.

Definition at line 89 of file MinMaxTaskAdvocate.cc.

References DelegateMixin< T, T_var >::GetDelegateAttribute().

Here is the call graph for this function:

void MinMaxTaskAdvocate::SetDelegateAttribute const char *  id,
const CORBA::Any &  value
throw (CORBA::SystemException) [virtual]
 

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

Currently supported 'id' values are:

  • minimum The minimum advice to be reported by this advocate.
  • maximum The maximum advice to be reported by this advocate.

Reimplemented from DelegateMixin< T, T_var >.

Definition at line 47 of file MinMaxTaskAdvocate.cc.

References DelegateMixin< T, T_var >::SetDelegateAttribute().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Tue Jun 22 14:51:56 2004 for CPU Broker by doxygen 1.3.6