oaTrackPattern.h

Go to the documentation of this file.
00001 // *****************************************************************************
00002 // *****************************************************************************
00003 // oaTrackPattern.h
00004 //
00005 // This file contains the definition for the oaTrackPattern class. The 
00006 // oaTrackPattern class implements the routing grid for gridded routers.
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(oaTrackPattern_P)
00027 #define oaTrackPattern_P
00028 
00029 
00030 
00031 // *****************************************************************************
00032 // Nested includes
00033 // *****************************************************************************
00034 #include "oaBlock.h"
00035 
00036 
00037 
00038 // *****************************************************************************
00039 // Declare and define types in the OpenAccess namespace.
00040 // *****************************************************************************
00041 BEGIN_OA_NAMESPACE
00042 
00043 
00044 
00045 // *****************************************************************************
00046 // oaTrackPattern
00047 // *****************************************************************************
00048 class OA_DESIGN_DLL_API oaTrackPattern : public oaBlockObject {
00049 public:
00050     static oaTrackPattern   *create(oaBlock     *block,
00051                                     oaBoolean   isHorizontal,
00052                                     oaCoord     startCoord,
00053                                     oaUInt4     numTracks,
00054                                     oaDist      trackSpacing,
00055                                     oaLayerNum  routingLayer);
00056     static oaTrackPattern   *create(oaBlock     *block,
00057                                     oaBoolean   isHorizontal,
00058                                     oaCoord     startCoord,
00059                                     oaUInt4     numTracks,
00060                                     oaDist      trackSpacing);
00061 
00062     void                    destroy();
00063 
00064     oaBoolean               isHorizontal() const;
00065     oaCoord                 getStartCoord() const;
00066     oaUInt4                 getNumTracks() const;
00067     oaDist                  getTrackSpacing() const;
00068     oaBoolean               hasRoutingLayer() const;
00069     oaLayerNum              getRoutingLayer() const;
00070 
00071     void                    setHorizontal(oaBoolean isHorizontal);
00072     void                    setStartCoord(oaCoord start);
00073     void                    setNumTracks(oaUInt4 num);
00074     void                    setTrackSpacing(oaDist spacing);
00075     void                    setRoutingLayer(oaLayerNum layer);
00076     void                    removeRoutingLayer();
00077 
00078     enum {dtIndex = oacTrackPatternDataType};
00079 };
00080 
00081 
00082 
00083 // *****************************************************************************
00084 // Design Traits.
00085 // *****************************************************************************
00086 template<>
00087 class oaTraits<oaTrackPattern> {
00088 public:
00089     typedef oaBlockObject               parentType;
00090     typedef oaTrackPatternModTypeEnum   modTypeType;
00091     enum {domain = oacBlockDomain};
00092     enum {dbType = oacDesignDBType};
00093     enum {isMultiDomain = false};
00094     enum {dtIndex = oacTrackPatternDataType};
00095     enum {isConcrete = true};
00096     enum {objectTypeEnumVal = oacTrackPatternType};
00097     enum {dataTypeEnumVal = oacTrackPatternDataType};
00098 };
00099 
00100 
00101 
00102 END_OA_NAMESPACE
00103 
00104 #endif

Return to top of page