00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef _manager_impl_hh
00019 #define _manager_impl_hh
00020
00021 #include "BrokerS.h"
00022
00023 #include <listNode.h>
00024
00025
00026
00027
00028 class ManagerImpl : public virtual POA_Broker::Manager
00029 {
00030
00031 public:
00032
00033
00034
00035
00036
00037
00038 ManagerImpl(const char *name);
00039
00040
00041
00042
00043 virtual ~ManagerImpl();
00044
00045
00046 Broker::Policy_ptr CurrentPolicy(void)
00047 throw (CORBA::SystemException);
00048
00049
00050 void CurrentPolicy(Broker::Policy_ptr policy)
00051 throw (CORBA::SystemException);
00052
00053
00054 void AddTask(Broker::Task_ptr task)
00055 throw (CORBA::SystemException);
00056
00057
00058 void RemoveTask(Broker::Task_ptr task)
00059 throw (CORBA::SystemException);
00060
00061
00062 void ChangeTaskCPU(Broker::RealTimeTask_ptr task,
00063 CORBA::ULong ct,
00064 CORBA::ULong status,
00065 CORBA::ULong advice)
00066 throw (CORBA::SystemException, Broker::InvalidState);
00067
00068 private:
00069
00070
00071
00072
00073
00074
00075
00076
00077 int TaskIndex(Broker::Task_ptr task);
00078
00079
00080
00081
00082 Broker::Policy_var mi_CurrentPolicy;
00083
00084
00085
00086
00087
00088 Broker::TaskList mi_Tasks;
00089
00090 };
00091
00092 #endif