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

RealTimeTaskDelegateMixin.hh

Go to the documentation of this file.
00001 /*
00002  * RealTimeTaskDelegateMixin.hh
00003  *
00004  * Copyright (c) 2003, 2004 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 RealTimeTaskDelegateMixin.hh
00014  *
00015  * Default implementations for the Broker::RealTimeTask methods.  Kind of a
00016  * hack really, but it works.
00017  *
00018  * @sa RealTimeTaskDelegateImpl.hh
00019  */
00020 
00021 /** @copydoc Broker::RealTimeTask::PassCPU */
00022 virtual Broker::CPUReserve PassCPU(Broker::RealTimeTask_ptr rtt,
00023                                    const Broker::CPUReserve &status,
00024                                    const Broker::CPUReserve &advice,
00025                                    const Broker::KeyedReportParameters &krp)
00026     throw (CORBA::SystemException)
00027 {
00028     if( CORBA::is_nil(this->dm_RemoteObject.in()) )
00029     {
00030         throw CORBA::BAD_INV_ORDER();
00031     }
00032     return this->dm_RemoteObject->PassCPU(rtt, status, advice, krp);
00033 };
00034 
00035 /** @copydoc Broker::RealTimeTask::ReportCPU */
00036 virtual Broker::CPUReserve ReportCPU(const Broker::CPUReserve &status,
00037                                      const Broker::CPUReserve &advice,
00038                                      const Broker::KeyedReportParameters &krp)
00039     throw (CORBA::SystemException)
00040 {
00041     return this->PassCPU(this->_this(), status, advice, krp);
00042 };

Generated on Tue Jun 22 14:50:09 2004 for CPU Broker by doxygen 1.3.6