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

TaskDelegateMixin.hh

Go to the documentation of this file.
00001 /*
00002  * TaskDelegateMixin.hh
00003  *
00004  * Copyright (c) 2003 The University of Utah and the Flux Group.
00005  * All rights reserved.
00006  *
00007  * This file is licensed under the terms of the GNU Public License.  
00008  * See the file "license.terms" for restrictions on redistribution 
00009  * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
00010  */
00011 
00012 /**
00013  * @file TaskDelegateMixin.hh
00014  *
00015  * Default implementations for the Broker::Task methods.  Kind of a hack
00016  * really, but it works.
00017  *
00018  * @sa RealTimeTaskDelegateImpl.hh
00019  */
00020 
00021 /** @copydoc Broker::Task::Name */
00022 virtual char *Name(void)
00023     throw (CORBA::SystemException)
00024 {
00025     if( CORBA::is_nil(this->dm_RemoteObject) )
00026     {
00027         throw CORBA::BAD_INV_ORDER();
00028     }
00029     return this->dm_RemoteObject->Name();
00030 };
00031 
00032 /** @copydoc Broker::Task::BeginCPUScheduling */
00033 virtual void BeginCPUScheduling(Broker::Manager_ptr man,
00034                                 const Broker::ScheduleParameters &cs)
00035     throw (CORBA::SystemException,
00036            Broker::DuplicateScheduleParameter,
00037            Broker::InvalidScheduleParameter,
00038            Broker::MissingScheduleParameter)
00039 {
00040     if( CORBA::is_nil(this->dm_RemoteObject) )
00041     {
00042         throw CORBA::BAD_INV_ORDER();
00043     }
00044     this->dm_RemoteObject->BeginCPUScheduling(man, cs);
00045 };
00046 
00047 /** @copydoc Broker::Task::EndCPUScheduling */
00048 virtual void EndCPUScheduling(void)
00049     throw (CORBA::SystemException)
00050 {
00051     if( CORBA::is_nil(this->dm_RemoteObject) )
00052     {
00053         throw CORBA::BAD_INV_ORDER();
00054     }
00055     this->dm_RemoteObject->EndCPUScheduling();
00056 };

Generated on Mon Dec 1 16:29:07 2003 for CPU Broker by doxygen 1.3.4