trunkresource.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.20.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 TRUNKRESOURCE_IDL
00031 #define TRUNKRESOURCE_IDL
00032 
00033 // *********************************************************************
00034 // included idl files
00035 #include "resource.idl"
00036 
00037 module corba {
00038     module res {
00039 
00041     struct AssignedTrunk {
00043         nwmgr::trk::TrunkGroupId trunkId;
00044 
00046         common::DateTime from;
00047 
00049         common::DateTime to;
00050     };
00051 
00053     typedef sequence<AssignedTrunk> AssignedTrunkSeq;
00054 
00056 
00057 
00061     exception SameNetwork {};
00062 
00067     exception TrunksAssigned {};
00068 
00073     exception StatusIsAssigned {};
00075 
00081     interface TrunkResource : Resource
00082     {
00084         common::Utf8String desc()
00085             raises (common::OsbCorbaException);
00086 
00088         nwmgr::nw::NetworkId extNetworkId()
00089             raises (common::OsbCorbaException);
00090 
00092         boolean canSetExtNw()
00093             raises (common::OsbCorbaException);
00094 
00103         AssignedTrunkSeq getTrkGroups()
00104             raises (common::OsbCorbaException);
00105 
00114         nwmgr::trk::TrunkGroupSeq getCurTrkGroups()
00115             raises (common::OsbCorbaException);
00116 
00125         AssignedTrunkSeq getCurAssTrkGroups()
00126             raises (common::OsbCorbaException);
00127 
00136         nwmgr::trk::TrunkGroupSeq getAvailTrkGroups()
00137             raises (common::OsbCorbaException);
00138 
00151         TrunkResourceWriter getWriter()
00152             raises (common::OsbCorbaException);
00153 
00154     };                          // interface TrunkResource
00155 
00164     interface TrunkResourceWriter : ResourceWriter, TrunkResource
00165     {
00167         void setDesc(in common::Utf8String desc);
00168 
00177         void setExtNetwork(in nwmgr::nw::NetworkId id)
00178         raises (SameNetwork, TrunksAssigned, StatusIsAssigned);
00179 
00195         void addTrkGroup(
00196             in nwmgr::trk::TrunkGroupId id,
00197             in common::Date             start,
00198             in boolean                  noWait
00199         ) raises (common::OsbCorbaException);
00200 
00215         void delTrkGroup(
00216             in nwmgr::trk::TrunkGroupId id,
00217             in boolean                  noWait
00218         ) raises (common::OsbCorbaException);
00219 
00220     };                          // interface TrunkResourceWriter
00221 
00222     };                                  // module res
00223 };                                      // module corba
00224 #endif                                  // #ifndef TRUNKRESOURCE_IDL

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