|
|||||||||
| 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 an environment for representing EDIF circuits.
An EDIF environment represents a list of
EDIF libraries and has a top-level
EDIF design. This object has a name and is not static so
multiple EdifEnvironment objects may exist in a single JVM.
EdifDesign,
EdifLibraryManager| Field Summary | |
|---|---|
private EdifLibraryManager |
_libraries
The EdifLibraryManager object representing the environment libraries. |
private EdifDesign |
_topDesign
The top-level design associated with this environment. |
| Constructor Summary | |
|---|---|
EdifEnvironment(EdifNameable name)
Construct an EdifEnvironment Object with the passed-in EdifNameable as its name Object. |
|
EdifEnvironment(java.lang.String name)
Construct an EdifEnvironment Object with the passed-in string as its name. |
|
| Method Summary | |
|---|---|
void |
addLibrary(EdifLibrary library)
Add the passed-in library to the appropriate position. |
EdifLibrary |
getLibrary(java.lang.String lib)
Return the library that matches the passed in string. |
EdifLibraryManager |
getLibraryManager()
Return the library manager. |
EdifCell |
getTopCell()
Return the top cell of the design. |
EdifCellInstance |
getTopCellInstance()
Return the top instance of the design. |
EdifDesign |
getTopDesign()
Return the top design. |
void |
setTopDesign(EdifDesign design)
Set the top design. |
void |
toEdif(EdifPrintWriter epw)
Convert this Object to EDIF format and prints it to the passed in EdifPrintWriter. |
java.lang.String |
toString()
Return a String representation of this object. |
void |
trimToSize()
Trim the size of this object. |
| Methods inherited from class byucc.edif.NamedPropertyObject |
|---|
addProperty, addProperty, addPropertyList, copyProperties, equals, equalsProperties, getEdifNameable, getName, getOldName, getProperty, getPropertyList, rename, 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)
throws InvalidEdifNameException
name - The name of the constructed EdifEnvironment Object
InvalidEdifNameExceptionpublic EdifEnvironment(EdifNameable name)
name - The EdifNameable name of the constructed
EdifEnvironment Object| Method Detail |
|---|
public void addLibrary(EdifLibrary library)
throws EdifNameConflictException
library - The library to add
TODO: should this method even exist?
EdifNameConflictExceptionpublic EdifLibrary getLibrary(java.lang.String lib)
lib - The String name to match for when fetching the
librarypublic EdifLibraryManager getLibraryManager()
public EdifCell getTopCell()
public EdifCellInstance getTopCellInstance()
public EdifDesign getTopDesign()
public void setTopDesign(EdifDesign design)
design - The object that will become the new design for
this EdifEnvironmentpublic 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()
trimToSize in interface Trimable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||