resource.idl

Go to the documentation of this file.
00001 // OSB library ********************************************* -*- IDL -*-
00006 /*
00007   AUTHOR(S): Huang Yong Feng (hyf)
00008 
00009   RCS information
00010    $Name: OSB_060808 $
00011    $Revision: 1.15.2.1 $
00012 
00013   License
00014    OSB rating and billing library for communication networks
00015    Copyright (C) 2004, 2005, 2006  OSB systems
00016 
00017    This file may be distributed and/or modify under the terms of the
00018    GNU General Public License (GPL) as published by the Free Software
00019    Foundation which is provided in the file LICENSE.GPL included in the
00020    packaging of this file.
00021 
00022    The file is distributed in the hope that it will be useful, but WITHOUT
00023    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00024    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00025    for more details.
00026 
00027    Holders of a OSB Commercial License may use this file under the terms
00028    and conditions of this commercial license.
00029  */
00030 #ifndef RESOURCE_IDL
00031 #define RESOURCE_IDL
00032 
00033 // *********************************************************************
00034 // included idl files
00035 #include "corba_utility.idl"
00036 #include "nmanager.idl"
00037 #include "inventorypool.idl"
00038 #include "resfwd.idl"
00039 
00040 module corba {
00041   module res {
00042 
00044     struct ResourceTypeId {
00045         long id;
00046     };
00047 
00053     interface Resource {
00055         ResourceTypeId type()
00056             raises (common::OsbCorbaException);
00057 
00059         ResourceId id()
00060             raises (common::OsbCorbaException);
00061 
00068         imgmt::PoolId poolId()
00069             raises (common::OsbCorbaException);
00070 
00072         boolean isPrepaid()
00073             raises (common::OsbCorbaException);
00074 
00076         common::Utf8String resNumber()
00077             raises (common::OsbCorbaException);
00078 
00080         ResourceStatus status()
00081             raises (common::OsbCorbaException);
00082 
00094         boolean isAvailable()
00095             raises (common::OsbCorbaException);
00096 
00098         common::Date quarantineEnd()
00099             raises (common::OsbCorbaException);
00100 
00102         nwmgr::nw::NetworkId networkId()
00103             raises (common::OsbCorbaException);
00104 
00106         nwmgr::nwe::NetworkElementId networkElementId()
00107             raises (common::OsbCorbaException);
00108 
00110         common::Date assigned()
00111             raises (common::OsbCorbaException);
00112 
00114         boolean canUpd()
00115             raises (common::OsbCorbaException);
00116 
00118         boolean canDel()
00119             raises (common::OsbCorbaException);
00120     };                          // interface Resource
00121 
00125     interface ResourceWriter : Resource {
00134         void setPool(
00135             in imgmt::PoolId poolId
00136         ) raises (common::OsbCorbaException);
00147         void setStatus(
00148             in ResourceStatus newStatus
00149         ) raises (common::OsbCorbaException);
00150 
00161         ResourceId create(
00162             in boolean noWait
00163         ) raises (common::OsbCorbaException);
00164 
00176         void updData(
00177             in boolean noWait
00178         ) raises (common::OsbCorbaException);
00179 
00191         void updStatus(
00192             in boolean noWait
00193         ) raises (common::OsbCorbaException);
00194 
00198         void destroy();
00199     };                                  // interface ResourceWriter
00200   };                                    // module res
00201 };                                      // module corba
00202 #endif                                  // #ifndef RESOURCE_IDL

Generated on Sat Sep 2 14:23:01 2006 for OSB Library by  doxygen 1.4.7