oaPoleResidue.h

Go to the documentation of this file.
00001 // *****************************************************************************
00002 // *****************************************************************************
00003 // oaPoleResidue.h
00004 //
00005 // This file contains the definition for the oaPoleResidue class, which
00006 // represents a set of poles and residues for a reduced model of the
00007 // interconnect parasitics from a particular driver to a receiver on the net.
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(oaPoleResidue_P)
00028 #define oaPoleResidue_P
00029 
00030 
00031 
00032 // *****************************************************************************
00033 // Nested includes
00034 // *****************************************************************************
00035 #include "oaComplex.h"
00036 #include "oaDesignModTypes.h"
00037 #include "oaDesignObject.h"
00038 
00039 
00040 
00041 // *****************************************************************************
00042 // Declare and define types in the OpenAccess namespace.
00043 // *****************************************************************************
00044 BEGIN_OA_NAMESPACE
00045 
00046 
00047 
00048 // *****************************************************************************
00049 // oaPoleResidue
00050 // *****************************************************************************
00051 class OA_DESIGN_DLL_API oaPoleResidue : public oaDesignObject {
00052 public:
00053     static oaPoleResidue    *create(oaPiPoleResidue                 *model,
00054                                     oaDesignObject                  *receiver,
00055                                     oaFloat                         delay,
00056                                     const oaComplexArray<oaFloat>   &poles,
00057                                     const oaComplexArray<oaFloat>   &residues);
00058 
00059     static oaPoleResidue    *find(const oaPiPoleResidue *model,
00060                                   const oaDesignObject  *receiver);
00061 
00062     void                    destroy();
00063 
00064     void                    setDelay(oaFloat delay);
00065     void                    setPoles(const oaComplexArray<oaFloat> &poles);
00066     void                    setResidues(const oaComplexArray<oaFloat> &res);
00067 
00068     oaFloat                 getDelay() const;
00069     void                    getPoles(oaComplexArray<oaFloat> &poles) const;
00070     void                    getResidues(oaComplexArray<oaFloat> &res) const;
00071 
00072     oaDesignObject          *getReceiver() const;
00073     oaPiPoleResidue         *getPiPoleResidue() const;
00074 
00075     enum {dtIndex = oacPoleResidueDataType};
00076     enum {domain = oacNoDomain};
00077 };
00078 
00079 
00080 
00081 // *****************************************************************************
00082 // Design Traits.
00083 // *****************************************************************************
00084 template<>
00085 class oaTraits<oaPoleResidue> {
00086 public:
00087     typedef oaDesignObject              parentType;
00088     typedef oaPoleResidueModTypeEnum    modTypeType;
00089     enum {dbType = oacDesignDBType};
00090     enum {domain = oacNoDomain};
00091     enum {isMultiDomain = false};
00092     enum {dtIndex = oacPoleResidueDataType};
00093     enum {isConcrete = true};
00094     enum {objectTypeEnumVal = oacPoleResidueType};
00095     enum {dataTypeEnumVal = oacPoleResidueDataType};
00096 };
00097 
00098 
00099 
00100 END_OA_NAMESPACE
00101 
00102 #endif

Return to top of page