com.sun.electric.tool.io.output
Class CIF

java.lang.Object
  extended by com.sun.electric.tool.io.output.Output
      extended by com.sun.electric.tool.io.output.Geometry
          extended by com.sun.electric.tool.io.output.CIF

public class CIF
extends Geometry

Class to write CIF output to disk.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.electric.tool.io.output.Geometry
Geometry.CellGeom, Geometry.PolyWithGeom, Geometry.Visitor
 
Nested classes/interfaces inherited from class com.sun.electric.tool.io.output.Output
Output.OutputCellInfo, Output.WriteJELIB
 
Field Summary
 
Fields inherited from class com.sun.electric.tool.io.output.Geometry
cellGeoms, numCells, numVisited, topCell
 
Fields inherited from class com.sun.electric.tool.io.output.Output
dataOutputStream, filePath, printWriter, quiet
 
Method Summary
protected  void done()
          Abstract method called after traversal
protected  boolean includeGeometric()
          Method to determine whether or not to include the original Geometric with a Poly.
protected  boolean mergeGeom(int hierLevelsFromBottom)
          method to determine whether or not to merge geometry
protected  void start()
          Abstract method called before hierarchy traversal
protected  void writeCellGeom(Geometry.CellGeom cellGeom)
          Method to write cellGeom
static int writeCIFFile(Cell cell, VarContext context, java.lang.String filePath)
          User Interface independent entry point for CIF output.
 
Methods inherited from class com.sun.electric.tool.io.output.Geometry
getMaxHierDepth, writeCell, writeCell
 
Methods inherited from class com.sun.electric.tool.io.output.Output
closeBinaryOutputStream, closeTextOutputStream, emitCopyright, exportCellCommand, getAreaToPrint, openBinaryOutputStream, openTextOutputStream, saveJelib, setContinuationString, setOutputWidth, writeCell, writeLibrary, writePanicSnapshot, writeWidthLimited
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

writeCIFFile

public static int writeCIFFile(Cell cell,
                               VarContext context,
                               java.lang.String filePath)
User Interface independent entry point for CIF output.

Parameters:
cell - the top-level cell to write.
context - the hierarchical context to the cell.
filePath - the disk file to create.
Returns:
the number of errors detected

start

protected void start()
Description copied from class: Geometry
Abstract method called before hierarchy traversal

Specified by:
start in class Geometry

done

protected void done()
Description copied from class: Geometry
Abstract method called after traversal

Specified by:
done in class Geometry

writeCellGeom

protected void writeCellGeom(Geometry.CellGeom cellGeom)
Method to write cellGeom

Specified by:
writeCellGeom in class Geometry

mergeGeom

protected boolean mergeGeom(int hierLevelsFromBottom)
method to determine whether or not to merge geometry

Overrides:
mergeGeom in class Geometry

includeGeometric

protected boolean includeGeometric()
Method to determine whether or not to include the original Geometric with a Poly. Only includes Geometric information if NOT merging boxes, because if merging boxes, then the original Geometric information is lost.

Overrides:
includeGeometric in class Geometry