|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.electric.database.constraint.Constraints
public abstract class Constraints
Top-level class to handle constraints. The methods here are overridden by the actual constraint solver. At this time, there is only one solver: Layout.
Constructor Summary | |
---|---|
Constraints()
|
Method Summary | |
---|---|
abstract void |
endBatch(java.lang.String userName)
Method to handle the end of a batch of changes. |
void |
eraseLibrary(Library lib)
Method to announce that a Library is about to be erased. |
void |
examineCell(Cell cell)
Method to examine a cell because it has changed. |
static Constraints |
getCurrent()
Method to return the current constraint system. |
void |
init()
Method to initialize a constraint system. |
void |
killObject(ElectricObject obj)
Method to handle the deletion of an ElectricObject. |
void |
modifyArcInst(ArcInst ai,
ImmutableArcInst oD)
Method to handle a change to an ArcInst. |
void |
modifyCell(Cell cell,
ImmutableCell oD)
Method to announce a change to a Cell. |
void |
modifyCellGroup(Cell cell,
Cell.CellGroup oCellGroup)
Method to announce a move of a Cell int CellGroup. |
void |
modifyExport(Export pp,
ImmutableExport oD)
Method to handle a change to an Export. |
void |
modifyLibrary(Library lib,
ImmutableLibrary oldD)
Method to announce a change to a Library. |
void |
modifyNodeInst(NodeInst ni,
ImmutableNodeInst oD)
Method to announce a change to a NodeInst. |
void |
newObject(ElectricObject obj)
Method to handle the creation of a new ElectricObject. |
void |
readLibrary(Library lib)
Method to announce that a Library has been read. |
void |
redrawObject(ElectricObject obj)
Method to request that an object be redrawn. |
void |
renameIds(IdMapper idMapper)
Method to announce than Ids were renamed. |
void |
renameObject(ElectricObject obj,
java.lang.Object oldName)
Method to handle the renaming of an ElectricObject. |
void |
request(java.lang.String cmd)
Method to make a request of a constraint system (not used). |
void |
slice()
Method to give a constraint system a chance to run. |
void |
startBatch(Snapshot initialSnapshot)
Method to handle the start of a batch of changes. |
void |
writeLibrary(Library lib)
Method to announce that a Library is about to be written to disk. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Constraints()
Method Detail |
---|
public static Constraints getCurrent()
public void init()
public void request(java.lang.String cmd)
cmd
- the command request.public void examineCell(Cell cell)
cell
- the Cell to examine.public void slice()
public void startBatch(Snapshot initialSnapshot)
initialSnapshot
- snapshot before job changes.public abstract void endBatch(java.lang.String userName)
public void modifyNodeInst(NodeInst ni, ImmutableNodeInst oD)
ni
- the NodeInst that was changed.oD
- the old contents of the NodeInst.public void modifyArcInst(ArcInst ai, ImmutableArcInst oD)
ai
- the ArcInst that changed.oD
- the old contents of the ArcInst.public void modifyExport(Export pp, ImmutableExport oD)
pp
- the Export that moved.oD
- the old contents of the Export.public void modifyCell(Cell cell, ImmutableCell oD)
cell
- the Cell that was changed.oD
- the old contents of the Cell.public void modifyCellGroup(Cell cell, Cell.CellGroup oCellGroup)
cell
- the cell that was moved.oCellGroup
- the old CellGroup of the Cell.public void modifyLibrary(Library lib, ImmutableLibrary oldD)
lib
- the Library that was changed.oldD
- the old contents of the Library.public void newObject(ElectricObject obj)
obj
- the ElectricObject that was just created.public void killObject(ElectricObject obj)
obj
- the ElectricObject that was just deleted.public void renameObject(ElectricObject obj, java.lang.Object oldName)
obj
- the ElectricObject that was renamed.oldName
- the former name of that ElectricObject.public void redrawObject(ElectricObject obj)
obj
- the ElectricObject to be redrawn.public void readLibrary(Library lib)
lib
- the Library that was read.public void eraseLibrary(Library lib)
lib
- the Library that will be erased.public void writeLibrary(Library lib)
lib
- the Library that will be saved.public void renameIds(IdMapper idMapper)
idMapper
- mapper from old Ids to new Ids.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |