oaSubNetwork.h

Go to the documentation of this file.
00001 // *****************************************************************************
00002 // *****************************************************************************
00003 // oaSubNetwork.h
00004 //
00005 // This file contains the definition for the oaSubNetwork class, which
00006 // represents the parasitic elements that are contained within a subset of a
00007 // parasitic network.
00008 //
00009 // *****************************************************************************
00010 // Except as specified in the OpenAccess terms of use of Cadence or Silicon
00011 // Integration Initiative, this material may not be copied, modified,
00012 // re-published, uploaded, executed, or distributed in any way, in any medium,
00013 // in whole or in part, without prior written permission from Cadence.
00014 //
00015 //                Copyright 2002-2005 Cadence Design Systems, Inc.
00016 //                           All Rights Reserved.
00017 //
00018 //  $Author: icftcm $
00019 //  $Revision: #1 $
00020 //  $Date: 2010/08/09 $
00021 //  $State: Exp $
00022 // *****************************************************************************
00023 // *****************************************************************************
00024 
00025 
00026 
00027 #if !defined(oaSubNetwork_P)
00028 #define oaSubNetwork_P
00029 
00030 
00031 
00032 // *****************************************************************************
00033 // Nested includes
00034 // *****************************************************************************
00035 #include "oaFig.h"
00036 #include "oaParasiticNetwork.h"
00037 
00038 
00039 
00040 // *****************************************************************************
00041 // Declare and define types in the OpenAccess namespace.
00042 // *****************************************************************************
00043 BEGIN_OA_NAMESPACE
00044 
00045 
00046 
00047 // *****************************************************************************
00048 // oaSubNetwork
00049 // *****************************************************************************
00050 class OA_DESIGN_DLL_API oaSubNetwork : public oaDesignObject {
00051 public:
00052     static oaSubNetwork                     *create(oaParasiticNetwork  *network,
00053                                                     const oaString      &name);
00054 
00055     static oaSubNetwork                     *find(const oaParasiticNetwork  *network,
00056                                                   const oaString            &name);
00057 
00058     void                                    destroy();
00059 
00060     oaParasiticNetwork                      *getParasiticNetwork() const;
00061     oaFig                                   *getFig() const;
00062     void                                    getName(oaString &name) const;
00063 
00064     void                                    setName(const oaString &name);
00065     void                                    setFig(oaFig *fig);
00066 
00067     oaCollection<oaNode, oaSubNetwork>      getNodes() const;
00068     oaCollection<oaDevice, oaSubNetwork>    getDevices() const;
00069 
00070     enum {dtIndex = oacSubNetworkDataType};
00071     enum {domain = oacNoDomain};
00072 };
00073 
00074 
00075 
00076 // *****************************************************************************
00077 // Design Traits.
00078 // *****************************************************************************
00079 template<>
00080 class oaTraits<oaSubNetwork> {
00081 public:
00082     typedef oaDesignObject          parentType;
00083     typedef oaSubNetworkModTypeEnum modTypeType;
00084     enum {dbType = oacDesignDBType};
00085     enum {domain = oacNoDomain};
00086     enum {isMultiDomain = false};
00087     enum {dtIndex = oacSubNetworkDataType};
00088     enum {isConcrete = true};
00089     enum {objectTypeEnumVal = oacSubNetworkType};
00090     enum {dataTypeEnumVal = oacSubNetworkDataType};
00091 };
00092 
00093 
00094 
00095 END_OA_NAMESPACE
00096 
00097 #endif

Return to top of page