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 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 isGridAlignExtraction()
          Method to tell whether the node extractor should grid-align geometry before extraction.
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 setGridAlignExtraction(boolean a)
          Method to set whether the node extractor should grid-align geometry before extraction.
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, initProjectSettings, isAnalysis, isBackground, isFixErrors, isIncremental, isOn, isSynthesis, makeBooleanSetting, makeDoubleSetting, makeIntSetting, makeLongSetting, makeStringSetting, 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.

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.

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.

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.

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.