00001 // ***************************************************************************** 00002 // ***************************************************************************** 00003 // oaStdDevice.h 00004 // 00005 // This file contains the definitions for the oaStdDevice class, which is an 00006 // abstract base class for devices with two endpoints and a value for each 00007 // analysis point. 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(oaStdDevice_P) 00028 #define oaStdDevice_P 00029 00030 00031 00032 // ***************************************************************************** 00033 // Nested includes 00034 // ***************************************************************************** 00035 #include "oaAnalysisPoint.h" 00036 #include "oaNode.h" 00037 #include "oaDevice.h" 00038 00039 00040 00041 // ***************************************************************************** 00042 // Declare and define types in the OpenAccess namespace. 00043 // ***************************************************************************** 00044 BEGIN_OA_NAMESPACE 00045 00046 00047 00048 // ***************************************************************************** 00049 // oaStdDevice 00050 // ***************************************************************************** 00051 class OA_DESIGN_DLL_API oaStdDevice : public oaDevice { 00052 public: 00053 oaNode *getNode(oaEndpointType endpoint) const; 00054 oaNode *getOtherNode(oaNode *node) const; 00055 oaEndpointType getEndpoint(oaNode *node) const; 00056 00057 void setValue(const oaAnalysisPoint *ap, 00058 oaFloat value); 00059 oaFloat getValue(const oaAnalysisPoint *ap) const; 00060 00061 oaCollection<oaNode, oaStdDevice> getNodes() const; 00062 }; 00063 00064 00065 00066 // ***************************************************************************** 00067 // Design Traits. 00068 // ***************************************************************************** 00069 template<> 00070 class oaTraits<oaStdDevice> { 00071 public: 00072 typedef oaDeviceModTypeEnum modTypeType; 00073 typedef oaDevice parentType; 00074 enum {dtIndex = oacDeviceDataType}; 00075 enum {dataTypeEnumVal = oacDeviceDataType}; 00076 enum {dbType = oacDesignDBType}; 00077 enum {domain = oacNoDomain}; 00078 enum {isMultiDomain = false}; 00079 enum {isConcrete = false}; 00080 enum {abstractTypeEnumVal = oacStdDeviceType}; 00081 }; 00082 00083 00084 00085 END_OA_NAMESPACE 00086 00087 #endif
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.