|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectbyucc.edif.NamedPropertyObject
byucc.edif.EdifEnvironment
public class EdifEnvironment
Represents a complete EdifEnvironment. This class contains a EdifLibraryManager (collection of Edif libraries) and a top-level design (EdifDesign).
EdifDesign,
EdifLibraryManager,
Serialized Form| Field Summary | |
|---|---|
private EdifLibraryManager |
_libraries
The EdifLibrary objects of this file. |
private EdifDesign |
_topDesign
The top-level design in the EdifEnvironment. |
| Constructor Summary | |
|---|---|
EdifEnvironment(EdifNameable name)
Constructs an EdifEnvironment Object with the passed-in EdifNameable as its name Object. |
|
EdifEnvironment(java.lang.String name)
Constructs an EdifEnvironment Object with the passed-in string as its name. |
|
| Method Summary | |
|---|---|
void |
addLibrary(EdifLibrary library)
Adds the passed-in library to the appropriate position. |
static EdifEnvironment |
deSerialize(java.lang.String filename)
De-serializes and returns an EdifEnvironment object, along with each of its respective sub and super objects. |
EdifLibrary |
getLibrary(java.lang.String lib)
Returns the library that matches the passed in string. |
EdifLibraryManager |
getLibraryManager()
Returns the library manager. |
EdifCell |
getTopCell()
Returns the top cell of the design. |
EdifCellInstance |
getTopCellInstance()
Returns the top instance of the design. |
EdifDesign |
getTopDesign()
Returns the top design. |
static void |
serialize(java.lang.String filename,
EdifEnvironment toWrite)
Serializes the passed in EdifEnvironment, and writes it to the file specified by the given filename. |
void |
setTopDesign(EdifDesign design)
Sets the top design. |
void |
tagLeafCellsAsPrimitives()
Tags leaf cells as primitives. |
void |
tagPrimitives(EdifLibrary primitives)
Tags all EdifCell objects that are found in the given library as a "primitive". |
void |
toEdif(EdifPrintWriter epw)
Converts this Object to EDIF format and prints it to the passed in EdifPrintWriter. |
java.lang.String |
toString()
Returns a String representation of this object. |
void |
trimToSize()
Trims this object, and any other Trimmable Objects that it contains down to size. |
| Methods inherited from class byucc.edif.NamedPropertyObject |
|---|
addProperty, addProperty, copyProperties, equals, equalsProperties, getEdifNameable, getName, getOldName, getProperty, getPropertyList, rename, rename |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private EdifLibraryManager _libraries
private EdifDesign _topDesign
| Constructor Detail |
|---|
public EdifEnvironment(java.lang.String name)
name - The name of the constructed EdifEnvironment Objectpublic EdifEnvironment(EdifNameable name)
name - The EdifNameable name of the constructed
EdifEnvironment Object| Method Detail |
|---|
public void addLibrary(EdifLibrary library)
library - The library to addpublic EdifLibraryManager getLibraryManager()
public EdifLibrary getLibrary(java.lang.String lib)
lib - The String name to match for when fetching the
librarypublic EdifCellInstance getTopCellInstance()
public EdifCell getTopCell()
public EdifDesign getTopDesign()
public static EdifEnvironment deSerialize(java.lang.String filename)
filename - The filename to de serialize and obtain a
previously serialized EdifEnvironment Object
public static void serialize(java.lang.String filename,
EdifEnvironment toWrite)
deSerialize(String) method.
filename - The filename to store the serialized
EdifEnvironment ObjecttoWrite - The EdifEnvironment Object to serialize and
store at the given filenamepublic void setTopDesign(EdifDesign design)
design - The object that will become the new design for
this EdifEnvironmentpublic void tagLeafCellsAsPrimitives()
EdifLibraryManager.tagLeafCellsAsPrimitives()public void tagPrimitives(EdifLibrary primitives)
primitives - The library of primitives to compare cells toEdifLibraryManager.tagPrimitives(byucc.edif.EdifLibrary)public void toEdif(EdifPrintWriter epw)
toEdif in interface EdifOutepw - The EdifPrintWriter that the EDIF data will be
written topublic java.lang.String toString()
toString in class java.lang.Objectpublic void trimToSize()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||