byucc.edif
Class EdifDesign

java.lang.Object
  extended bybyucc.edif.NamedPropertyObject
      extended bybyucc.edif.EdifDesign
All Implemented Interfaces:
EdifOut, Nameable, Properties, java.io.Serializable

public class EdifDesign
extends NamedPropertyObject
implements EdifOut, java.io.Serializable

Represents an EdifDesign within an EdifEnvironment object. An EdifDesign identifies the cell instance at the top level of the hierarchy of an Edif file. A design has a name (renamed if necessary), properties, and a top cell instance.

Version:
$Id: EdifDesign.java,v 1.14 2004/08/27 19:16:42 tsa6 Exp $
Author:
Welson Sun, Mike Wirthlin, Tyler Anderson
See Also:
EdifEnvironment, Serialized Form

Field Summary
private  EdifCellInstance _topCellInstance
          The top EdifCellInstance of this design.
 
Fields inherited from class byucc.edif.NamedPropertyObject
 
Constructor Summary
EdifDesign(EdifNameable name)
          Constructs an empty, named EdifDesign Object
EdifDesign(java.lang.String name)
          Constructs an empty, named EdifDesign Object
 
Method Summary
 EdifCellInstance getTopCellInstance()
          Returns the top cell instance of this design.
 void setTopCellInstance(EdifCellInstance cellInstance)
          Sets the top EdifCellInstance of this design.
 void toEdif(EdifPrintWriter epw)
          Converts this Object to EDIF format, and writes it the passed-in EdifPrintWriter.
 java.lang.String toString()
          Returns a String representation of this Object.
 
Methods inherited from class byucc.edif.NamedPropertyObject
addProperty, addProperty, equals, equalsProperties, getEdifNameable, getName, getProperty, getPropertyList, rename, rename
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_topCellInstance

private EdifCellInstance _topCellInstance
The top EdifCellInstance of this design.

Constructor Detail

EdifDesign

public EdifDesign(java.lang.String name)
Constructs an empty, named EdifDesign Object

Parameters:
name - The name of this EdifDesign Object

EdifDesign

public EdifDesign(EdifNameable name)
Constructs an empty, named EdifDesign Object

Parameters:
name - The Object that holds name information for this EdifDesign Object
Method Detail

getTopCellInstance

public EdifCellInstance getTopCellInstance()
Returns the top cell instance of this design.

Returns:
an EdifCellInstance Object that refers to the top EdifCell of this design

setTopCellInstance

public void setTopCellInstance(EdifCellInstance cellInstance)
Sets the top EdifCellInstance of this design.

Parameters:
cellInstance - The EdifCellInstance Object that this EdifDesign Object will refer to

toEdif

public void toEdif(EdifPrintWriter epw)
Converts this Object to EDIF format, and writes it the passed-in EdifPrintWriter.

Specified by:
toEdif in interface EdifOut
Parameters:
epw - The EdifPrintWriter Object that will write this Object's EDIF data to

toString

public java.lang.String toString()
Returns a String representation of this Object.

Returns:
A String representing this object, and the top EdifCellInstance