com.sun.electric.tool.extract
Class Extract

java.lang.Object
  extended by com.sun.electric.tool.Tool
      extended by com.sun.electric.tool.extract.Extract
All Implemented Interfaces:
java.lang.Comparable

public class Extract
extends Tool

This is the Extraction tool.


Field Summary
 
Fields inherited from class com.sun.electric.tool.Tool
prefs
 
Method Summary
static int getActiveHandling()
          Method to tell how the node extractor should handle active layers.
static java.lang.String getCellExpandPattern()
          Method to return the cell expansion pattern for node extraction.
static Extract getExtractTool()
          Method to retrieve the singleton associated with the Extract tool.
static int getFactoryActiveHandling()
          Method to tell how the node extractor should handle active layers, by default.
static java.lang.String getFactoryCellExpandPattern()
          Method to return the cell expansion pattern for node extraction, by default.
static double getFactorySmallestPolygonSize()
          Method to return the size of the smallest polygon to extract, by default.
static double getSmallestPolygonSize()
          Method to return the size of the smallest polygon to extract.
 void init()
          Method to initialize the Extraction tool.
static boolean isApproximateCuts()
          Method to tell whether the node extractor should approximate cut placement in multicut situations.
static boolean isFactoryApproximateCuts()
          Method to tell whether the node extractor should approximate cut placement in multicut situations, by default.
static boolean isFactoryFlattenPcells()
          Method to tell whether the node extractor should flatten Cadence Pcells by default.
static boolean isFactoryGridAlignExtraction()
          Method to tell whether the node extractor should grid-align geometry before extraction, by default.
static boolean isFactoryIgnoreTinyPolygons()
          Method to tell whether the node extractor should ignore tiny polygons, by default.
static boolean isFlattenPcells()
          Method to tell whether the node extractor should flatten Cadence Pcells.
static boolean isGridAlignExtraction()
          Method to tell whether the node extractor should grid-align geometry before extraction.
static boolean isIgnoreTinyPolygons()
          Method to tell whether the node extractor should ignore tiny polygons.
static void setActiveHandling(int a)
          Method to set how the node extractor should handle active layers.
static void setApproximateCuts(boolean a)
          Method to set whether the node extractor should approximate cut placement in multicut situations.
static void setCellExpandPattern(java.lang.String a)
          Method to set the cell expansion pattern for node extraction.
static void setFlattenPcells(boolean a)
          Method to set whether the node extractor should flatten Cadence Pcells.
static void setGridAlignExtraction(boolean a)
          Method to set whether the node extractor should grid-align geometry before extraction.
static void setIgnoreTinyPolygons(boolean a)
          Method to set whether the node extractor should ignore tiny polygons.
static void setSmallestPolygonSize(double a)
          Method to set the size of the smallest polygon to extract.
 
Methods inherited from class com.sun.electric.tool.Tool
clearAnalysis, clearBackground, clearFixErrors, clearIncremental, clearOn, clearSynthesis, compareTo, findTool, getIndex, getListeners, getName, getNumTools, getProjectSettings, getTools, initAllTools, isAnalysis, isBackground, isFixErrors, isIncremental, isOn, isSynthesis, setAnalysis, setBackground, setFixErrors, setIncremental, setOn, setSynthesis, setVarInJob, testAll, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

init

public void init()
Method to initialize the Extraction tool.

Overrides:
init in class Tool

getExtractTool

public static Extract getExtractTool()
Method to retrieve the singleton associated with the Extract tool.

Returns:
the Extract tool.

isGridAlignExtraction

public static boolean isGridAlignExtraction()
Method to tell whether the node extractor should grid-align geometry before extraction. This is useful if the input geometry has many small alignment errors. The default is "false".

Returns:
true if the node extractor should grid-align geometry before extraction.

setGridAlignExtraction

public static void setGridAlignExtraction(boolean a)
Method to set whether the node extractor should grid-align geometry before extraction. This is useful if the input geometry has many small alignment errors.

Parameters:
a - true if the node extractor should grid-align geometry before extraction.

isFactoryGridAlignExtraction

public static boolean isFactoryGridAlignExtraction()
Method to tell whether the node extractor should grid-align geometry before extraction, by default. This is useful if the input geometry has many small alignment errors.

Returns:
true if the node extractor should grid-align geometry before extraction, by default.

getActiveHandling

public static int getActiveHandling()
Method to tell how the node extractor should handle active layers. The values can be: 0: Insist on two different active layers (N and P) and also proper select/well surrounds (the default). 1: Ignore active distinctions and use select/well surrounds to distinguish N from P. 2: Insist on two different active layers (N and P) but ignore select/well surrounds.

Returns:
an integer indicating how to handle active layers.

setActiveHandling

public static void setActiveHandling(int a)
Method to set how the node extractor should handle active layers.

Parameters:
a - an integer indicating how to handle active layers. The values can be: 0: Insist on two different active layers (N and P) and also proper select/well surrounds (the default). 1: Ignore active distinctions and use select/well surrounds to distinguish N from P. 2: Insist on two different active layers (N and P) but ignore select/well surrounds.

getFactoryActiveHandling

public static int getFactoryActiveHandling()
Method to tell how the node extractor should handle active layers, by default. The values can be: 0: Insist on two different active layers (N and P) and also proper select/well surrounds. 1: Ignore active distinctions and use select/well surrounds to distinguish N from P. 2: Insist on two different active layers (N and P) but ignore select/well surrounds.

Returns:
an integer indicating how to handle active layers, by default.

isApproximateCuts

public static boolean isApproximateCuts()
Method to tell whether the node extractor should approximate cut placement in multicut situations. When via layers in multicut situations do not exactly match Electric's spacing, this will allow a single large contact to be placed. The default is "false".

Returns:
true if the node extractor should approximate cut placement in multicut situations.

setApproximateCuts

public static void setApproximateCuts(boolean a)
Method to set whether the node extractor should approximate cut placement in multicut situations. When via layers in multicut situations do not exactly match Electric's spacing, this will allow a single large contact to be placed.

Parameters:
a - true if the node extractor should approximate cut placement in multicut situations.

isFactoryApproximateCuts

public static boolean isFactoryApproximateCuts()
Method to tell whether the node extractor should approximate cut placement in multicut situations, by default. When via layers in multicut situations do not exactly match Electric's spacing, this will allow a single large contact to be placed.

Returns:
true if the node extractor should approximate cut placement in multicut situations, by default.

isIgnoreTinyPolygons

public static boolean isIgnoreTinyPolygons()
Method to tell whether the node extractor should ignore tiny polygons. The default is "false".

Returns:
true if the node extractor should ignore tiny polygons.

setIgnoreTinyPolygons

public static void setIgnoreTinyPolygons(boolean a)
Method to set whether the node extractor should ignore tiny polygons.

Parameters:
a - true if the node extractor should ignore tiny polygons.

isFactoryIgnoreTinyPolygons

public static boolean isFactoryIgnoreTinyPolygons()
Method to tell whether the node extractor should ignore tiny polygons, by default.

Returns:
true if the node extractor should ignore tiny polygons, by default.

getSmallestPolygonSize

public static double getSmallestPolygonSize()
Method to return the size of the smallest polygon to extract. Any polygon smaller than this will be ignored. The default is 0.25 square grid units.

Returns:
the size of the smallest polygon to extract.

setSmallestPolygonSize

public static void setSmallestPolygonSize(double a)
Method to set the size of the smallest polygon to extract. Any polygon smaller than this will be ignored.

Parameters:
a - the size of the smallest polygon to extract.

getFactorySmallestPolygonSize

public static double getFactorySmallestPolygonSize()
Method to return the size of the smallest polygon to extract, by default. Any polygon smaller than this will be ignored.

Returns:
the size of the smallest polygon to extract, by default.

getCellExpandPattern

public static java.lang.String getCellExpandPattern()
Method to return the cell expansion pattern for node extraction. All cells that match this string will be expanded before node extraction. The default is ".*via.*" (anything with the word "via" in it).

Returns:
the cell expansion pattern for node extraction.

setCellExpandPattern

public static void setCellExpandPattern(java.lang.String a)
Method to set the cell expansion pattern for node extraction. All cells that match this string will be expanded before node extraction.

Parameters:
a - the cell expansion pattern for node extraction.

getFactoryCellExpandPattern

public static java.lang.String getFactoryCellExpandPattern()
Method to return the cell expansion pattern for node extraction, by default. All cells that match this string will be expanded before node extraction.

Returns:
the cell expansion pattern for node extraction, by default.

isFlattenPcells

public static boolean isFlattenPcells()
Method to tell whether the node extractor should flatten Cadence Pcells. Cadence Pcells are cells whose names end with "$$" and a number. The default is "true".

Returns:
true if the node extractor should flatten Cadence Pcells.

setFlattenPcells

public static void setFlattenPcells(boolean a)
Method to set whether the node extractor should flatten Cadence Pcells. Cadence Pcells are cells whose names end with "$$" and a number.

Parameters:
a - true if the node extractor should flatten Cadence Pcells.

isFactoryFlattenPcells

public static boolean isFactoryFlattenPcells()
Method to tell whether the node extractor should flatten Cadence Pcells by default. Cadence Pcells are cells whose names end with "$$" and a number.

Returns:
true if the node extractor should flatten Cadence Pcells, by default.