00001 // ***************************************************************************** 00002 // ***************************************************************************** 00003 // oaResistor.h 00004 // 00005 // This file contains the definition of the oaResistor class, which represents 00006 // a resistor in a parasitic network for a net. 00007 // 00008 // ***************************************************************************** 00009 // Except as specified in the OpenAccess terms of use of Cadence or Silicon 00010 // Integration Initiative, this material may not be copied, modified, 00011 // re-published, uploaded, executed, or distributed in any way, in any medium, 00012 // in whole or in part, without prior written permission from Cadence. 00013 // 00014 // Copyright 2002-2005 Cadence Design Systems, Inc. 00015 // All Rights Reserved. 00016 // 00017 // $Author: icftcm $ 00018 // $Revision: #1 $ 00019 // $Date: 2010/08/09 $ 00020 // $State: Exp $ 00021 // ***************************************************************************** 00022 // ***************************************************************************** 00023 00024 00025 00026 #if !defined(oaResistor_P) 00027 #define oaResistor_P 00028 00029 00030 00031 // ***************************************************************************** 00032 // Nested includes 00033 // ***************************************************************************** 00034 #include "oaStdDevice.h" 00035 00036 00037 00038 // ***************************************************************************** 00039 // Declare and define types in the OpenAccess namespace. 00040 // ***************************************************************************** 00041 BEGIN_OA_NAMESPACE 00042 00043 00044 00045 // ***************************************************************************** 00046 // oaResistor 00047 // ***************************************************************************** 00048 class OA_DESIGN_DLL_API oaResistor : public oaStdDevice { 00049 public: 00050 static oaResistor *create(oaNode *fromNode, 00051 oaNode *toNode); 00052 static oaResistor *create(oaNode *fromNode, 00053 oaNode *toNode, 00054 oaUInt4 id); 00055 00056 oaUInt4 getWidth() const; 00057 oaUInt4 getLength() const; 00058 oaUInt4 getHeight() const; 00059 oaUInt4 getNumCuts() const; 00060 oaUInt4 getCutArea() const; 00061 oaUInt4 getCutPerimeter() const; 00062 00063 oaBoolean hasWidth() const; 00064 oaBoolean hasLength() const; 00065 oaBoolean hasHeight() const; 00066 oaBoolean hasNumCuts() const; 00067 oaBoolean hasCutArea() const; 00068 oaBoolean hasCutPerimeter() const; 00069 00070 void setWidth(oaUInt4 width); 00071 void setLength(oaUInt4 length); 00072 void setHeight(oaUInt4 height); 00073 void setNumCuts(oaUInt4 numCuts); 00074 void setCutArea(oaUInt4 cutArea); 00075 void setCutPerimeter(oaUInt4 cutPerimeter); 00076 }; 00077 00078 00079 00080 // ***************************************************************************** 00081 // Design Traits. 00082 // ***************************************************************************** 00083 template<> 00084 class oaTraits<oaResistor> { 00085 public: 00086 typedef oaDeviceModTypeEnum modTypeType; 00087 typedef oaStdDevice parentType; 00088 enum {dtIndex = oacDeviceDataType}; 00089 enum {dataTypeEnumVal = oacDeviceDataType}; 00090 enum {dbType = oacDesignDBType}; 00091 enum {domain = oacNoDomain}; 00092 enum {isMultiDomain = false}; 00093 enum {isConcrete = true}; 00094 enum {objectTypeEnumVal = oacResistorType}; 00095 }; 00096 00097 00098 00099 END_OA_NAMESPACE 00100 00101 #endif
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.