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

ManagerImpl Class Reference

List of all members.

Detailed Description

A default implementation of the Broker::Manager interface.


Public Member Functions

 ManagerImpl (const char *name)
 Construct a ManagerImpl.

virtual ~ManagerImpl ()
 Destruct a ManagerImpl.

Broker::Policy_ptr CurrentPolicy (void) throw (CORBA::SystemException)
 If this value is nil, the manager will implement a straightforward default policy.

void CurrentPolicy (Broker::Policy_ptr policy) throw (CORBA::SystemException)
 If this value is nil, the manager will implement a straightforward default policy.

void AddTask (Broker::Task_ptr task) throw (CORBA::SystemException)
 

void RemoveTask (Broker::Task_ptr task) throw (CORBA::SystemException)
 

void ChangeTaskCPU (Broker::RealTimeTask_ptr task, CORBA::ULong ct, CORBA::ULong status, CORBA::ULong advice) throw (CORBA::SystemException, Broker::InvalidState)
 Note: If there is no policy set, the manager will simply call SetComputeTime() on the given task with the given advice.


Private Member Functions

int TaskIndex (Broker::Task_ptr task)
 Get the index of the given task in the mi_Tasks sequence.


Private Attributes

Broker::Policy_var mi_CurrentPolicy
 The active policy object or nil.

Broker::TaskList mi_Tasks
 The list of tasks currently being managed.


Constructor & Destructor Documentation

ManagerImpl::ManagerImpl const char *  name  ) 
 

Construct a ManagerImpl.

Parameters:
name The name of this manager.


Member Function Documentation

int ManagerImpl::TaskIndex Broker::Task_ptr  task  )  [private]
 

Get the index of the given task in the mi_Tasks sequence.

Parameters:
task The task object to look up.
Returns:
The index of the given task in the mi_Tasks sequence or -1 if the task is not in the sequence.


Member Data Documentation

Broker::TaskList ManagerImpl::mi_Tasks [private]
 

The list of tasks currently being managed.

This list will be passed to policies when they are Broker::Policy::Activate()'d.


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