|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.electric.database.hierarchy.EDatabase
public class EDatabase
Electric run-time database is a graph of ElectricObjects.
Constructor Summary | |
---|---|
EDatabase(Environment environment)
|
|
EDatabase(Snapshot snapshot)
Creates a new instance of EDatabase |
Method Summary | |
---|---|
void |
addTech(Technology tech)
|
Snapshot |
backup()
Create Snapshot from the current state of Electric database. |
Snapshot |
backupUnsafe()
Create Snapshot from the current state of Electric database. |
boolean |
canComputeBounds()
|
boolean |
canComputeNetlist()
|
void |
checkChanging()
Method to check whether changing of database is allowed by current thread. |
void |
checkExamine()
Method to check whether examining of database is allowed. |
void |
checkFresh(Snapshot expectedSnapshot)
Checks that Electric database has the expected state. |
boolean |
checkInvariants()
Method to check invariants in all Libraries. |
void |
checkUndoing()
Method to check whether changing of whole database is allowed. |
static EDatabase |
clientDatabase()
|
static EDatabase |
currentDatabase()
|
Library |
findLibrary(java.lang.String libName)
Method to find a Library with the specified name. |
java.util.Set<Cell> |
findReferenceInCell(Library elib)
Get list of cells contained in other libraries that refer to cells contained in this library |
Artwork |
getArtwork()
Return Artwork technology in this database |
Cell |
getCell(CellId cellId)
|
Environment |
getEnvironment()
Returns TechPool of this database |
Snapshot |
getFreshSnapshot()
Low-level method to atomically get fresh snapshot. |
Generic |
getGeneric()
Return Generic technology in this database |
IdManager |
getIdManager()
|
Snapshot |
getInitialSnapshot()
|
Library |
getLib(LibId libId)
|
java.util.Iterator<Library> |
getLibraries()
Method to return an iterator over all libraries. |
NetworkManager |
getNetworkManager()
|
int |
getNumLibraries()
Method to return the number of libraries. |
Schematics |
getSchematics()
Return Schematic technology in this database |
java.util.Map<Setting,java.lang.Object> |
getSettings()
|
Technology |
getTech(TechId techId)
Get Technology by TechId TechId must belong to same IdManager as TechPool |
java.util.Collection<Technology> |
getTechnologies()
|
TechPool |
getTechPool()
Returns TechPool of this database |
java.util.List<Library> |
getVisibleLibraries()
Method to return an iterator over all visible libraries. |
void |
implementSettingChanges(Setting.SettingChangeBatch changeBatch)
|
void |
lock(boolean exclusive)
Locks the database. |
void |
lowLevelBeginChanging(Tool changingTool)
Low-level method to begin changes in database. |
void |
lowLevelEndChanging()
Low-level method to permit changes in database. |
void |
lowLevelSetCanUndoing(boolean b)
Low-level method to permit undos in database. |
void |
recover(Snapshot snapshot)
Force database to specified state. |
void |
resize(Environment environment)
Resize database after Technology change. |
static EDatabase |
serverDatabase()
|
static void |
setClientDatabase(EDatabase database)
|
static void |
setServerDatabase(EDatabase database)
|
void |
setToolSettings(Setting.RootGroup toolSettings)
|
void |
undo(Snapshot snapshot)
Force database to specified state. |
void |
unlock()
Unlocks the database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EDatabase(Environment environment)
public EDatabase(Snapshot snapshot)
Method Detail |
---|
public static EDatabase serverDatabase()
public static EDatabase clientDatabase()
public static EDatabase currentDatabase()
public static void setServerDatabase(EDatabase database)
public static void setClientDatabase(EDatabase database)
public IdManager getIdManager()
public Snapshot getInitialSnapshot()
public NetworkManager getNetworkManager()
public void setToolSettings(Setting.RootGroup toolSettings)
public void addTech(Technology tech)
public void implementSettingChanges(Setting.SettingChangeBatch changeBatch)
public Environment getEnvironment()
public TechPool getTechPool()
public java.util.Collection<Technology> getTechnologies()
public Technology getTech(TechId techId)
techId
- TechId to find
java.lang.IllegalArgumentException
- of TechId is not from this IdManagerpublic Artwork getArtwork()
public Generic getGeneric()
public Schematics getSchematics()
public java.util.Map<Setting,java.lang.Object> getSettings()
public Library getLib(LibId libId)
public Cell getCell(CellId cellId)
public void lock(boolean exclusive)
exclusive
- true if lock is for writing.public void unlock()
public void checkChanging()
java.lang.IllegalStateException
- if changes are not allowed.public void checkUndoing()
java.lang.IllegalStateException
- if changes are not allowed.public boolean canComputeBounds()
public boolean canComputeNetlist()
public void checkExamine()
public void lowLevelBeginChanging(Tool changingTool)
changingTool
- tool which initiatedpublic void lowLevelEndChanging()
public void lowLevelSetCanUndoing(boolean b)
public java.util.Set<Cell> findReferenceInCell(Library elib)
elib
- to search for
public Library findLibrary(java.lang.String libName)
libName
- the name of the Library.
Note that this is the Library name, and not the Library file.
public java.util.Iterator<Library> getLibraries()
public int getNumLibraries()
public java.util.List<Library> getVisibleLibraries()
public Snapshot getFreshSnapshot()
public Snapshot backup()
java.lang.IllegalStateException
- if recalculation of Snapshot is requred in thread which is not enabled to do it.public Snapshot backupUnsafe()
public void recover(Snapshot snapshot)
snapshot
- snapshot to recover.public void undo(Snapshot snapshot)
snapshot
- snapshot to undo.public void resize(Environment environment)
environment
- new Environmentpublic boolean checkInvariants()
public void checkFresh(Snapshot expectedSnapshot)
expectedSnapshot
- expected state.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |