com.sun.electric.tool.ncc.basic
Class NccUtils

java.lang.Object
  extended by com.sun.electric.tool.ncc.basic.NccUtils

public class NccUtils
extends java.lang.Object


Constructor Summary
NccUtils()
           
 
Method Summary
static long accumulateBenchmarkValue(java.lang.String msg, long val, BenchmarkResults.BenchIdx benchmark, NccGlobals globals)
           
static NccResult buildBlackBoxes(CellContext c1, CellContext c2, HierarchyInfo hierInfo, NccOptions options, Aborter aborter)
           
static Cell[] findSchematicAndLayout(Cell cell)
          If cell is layout then pair it with the main schematic cell of cell's CellGroup.
static java.lang.String fullName(Cell c)
           
static CellContext getCellContext(EditWindow_ wnd)
           
static java.util.List<CellContext> getCellContextsFromWindows()
           
static CellContext getCurrentCellContext()
           
static long getTime()
           
static void hang(java.lang.String msg)
          Wait forever.
static java.lang.String hourMinSec(java.util.Date start, java.util.Date stop)
          print hours minutes seconds
static java.lang.String hourMinSec(long elapsedMsec)
           
static void incrementBenchmarkCount(BenchmarkResults.BenchIdx benchmark, NccGlobals globals)
           
static long registerTiming(java.lang.String msg, long start, BenchmarkResults.BenchIdx benchmark, NccGlobals globals)
           
static double round(double x, int places)
           
static boolean sizesMatch(double w1, double w2, NccOptions opt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NccUtils

public NccUtils()
Method Detail

fullName

public static java.lang.String fullName(Cell c)

findSchematicAndLayout

public static Cell[] findSchematicAndLayout(Cell cell)
If cell is layout then pair it with the main schematic cell of cell's CellGroup. If cell is schematic then pair it with some layout cell from cell's CellGroup. If cell is neither schematic nor layout then return the main schematic and some layout cell. Always put the schematic at index 0


getCurrentCellContext

public static CellContext getCurrentCellContext()

getCellContext

public static CellContext getCellContext(EditWindow_ wnd)

getCellContextsFromWindows

public static java.util.List<CellContext> getCellContextsFromWindows()

hourMinSec

public static java.lang.String hourMinSec(java.util.Date start,
                                          java.util.Date stop)
print hours minutes seconds


hourMinSec

public static java.lang.String hourMinSec(long elapsedMsec)

buildBlackBoxes

public static NccResult buildBlackBoxes(CellContext c1,
                                        CellContext c2,
                                        HierarchyInfo hierInfo,
                                        NccOptions options,
                                        Aborter aborter)

sizesMatch

public static boolean sizesMatch(double w1,
                                 double w2,
                                 NccOptions opt)

hang

public static void hang(java.lang.String msg)
Wait forever. This allows me to explore memory usage


round

public static double round(double x,
                           int places)

registerTiming

public static long registerTiming(java.lang.String msg,
                                  long start,
                                  BenchmarkResults.BenchIdx benchmark,
                                  NccGlobals globals)

accumulateBenchmarkValue

public static long accumulateBenchmarkValue(java.lang.String msg,
                                            long val,
                                            BenchmarkResults.BenchIdx benchmark,
                                            NccGlobals globals)

incrementBenchmarkCount

public static void incrementBenchmarkCount(BenchmarkResults.BenchIdx benchmark,
                                           NccGlobals globals)

getTime

public static long getTime()