com.sun.electric.database.change
Interface Changes

All Known Implementing Classes:
CVS, DRC, Listener, Project, Routing, User

public interface Changes

This interface defines changes that are made to the database.


Method Summary
 void endBatch(Snapshot oldSnapshot, Snapshot newSnapshot, boolean undoRedo)
          Method to annonunce database changes of a Job.
 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.
 void init()
          Method to initialize a tool.
 void killObject(ElectricObject obj)
          Method to announce the deletion of an ElectricObject.
 void modifyArcInst(ArcInst ai, ImmutableArcInst oD)
          Method to announce 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 oldD)
          Method to announce 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 announce the creation of a new ElectricObject.
 void readLibrary(Library lib)
          Method to announce that a Library has been read.
 void renameObject(ElectricObject obj, java.lang.Object oldName)
          Method to announce the renaming of an ElectricObject.
 void request(java.lang.String cmd)
          Method to make a request of a tool (not used).
 void slice()
          Method to give a tool a chance to run.
 void startBatch(Tool tool, boolean undoRedo)
          Method to announce the start of a batch of changes.
 void writeLibrary(Library lib)
          Method to announce that a Library is about to be written to disk.
 

Method Detail

init

void init()
Method to initialize a tool.


request

void request(java.lang.String cmd)
Method to make a request of a tool (not used).

Parameters:
cmd - the command request.

examineCell

void examineCell(Cell cell)
Method to examine a cell because it has changed.

Parameters:
cell - the Cell to examine.

slice

void slice()
Method to give a tool a chance to run.


startBatch

void startBatch(Tool tool,
                boolean undoRedo)
Method to announce the start of a batch of changes.

Parameters:
tool - the tool that generated the changes.
undoRedo - true if these changes are from an undo or redo command.

endBatch

void endBatch(Snapshot oldSnapshot,
              Snapshot newSnapshot,
              boolean undoRedo)
Method to annonunce database changes of a Job.

Parameters:
oldSnapshot - database snapshot before Job.
newSnapshot - database snapshot after Job and constraint propagation.
undoRedo - true if Job was Undo/Redo job.

modifyNodeInst

void modifyNodeInst(NodeInst ni,
                    ImmutableNodeInst oD)
Method to announce a change to a NodeInst.

Parameters:
ni - the NodeInst that was changed.
oD - the old contents of the NodeInst.

modifyArcInst

void modifyArcInst(ArcInst ai,
                   ImmutableArcInst oD)
Method to announce a change to an ArcInst.

Parameters:
ai - the ArcInst that changed.
oD - the old contents of the ArcInst.

modifyExport

void modifyExport(Export pp,
                  ImmutableExport oldD)
Method to announce a change to an Export.

Parameters:
pp - the Export that moved.
oldD - the old contents of the Export.

modifyCell

void modifyCell(Cell cell,
                ImmutableCell oD)
Method to announce a change to a Cell.

Parameters:
cell - the Cell that was changed.
oD - the old contents of the Cell.

modifyCellGroup

void modifyCellGroup(Cell cell,
                     Cell.CellGroup oCellGroup)
Method to announce a move of a Cell int CellGroup.

Parameters:
cell - the cell that was moved.
oCellGroup - the old CellGroup of the Cell.

modifyLibrary

void modifyLibrary(Library lib,
                   ImmutableLibrary oldD)
Method to announce a change to a Library.

Parameters:
lib - the Library that was changed.
oldD - the old contents of the Library.

newObject

void newObject(ElectricObject obj)
Method to announce the creation of a new ElectricObject.

Parameters:
obj - the ElectricObject that was just created.

killObject

void killObject(ElectricObject obj)
Method to announce the deletion of an ElectricObject.

Parameters:
obj - the ElectricObject that was just deleted.

renameObject

void renameObject(ElectricObject obj,
                  java.lang.Object oldName)
Method to announce the renaming of an ElectricObject.

Parameters:
obj - the ElectricObject that was renamed.
oldName - the former name of that ElectricObject.

readLibrary

void readLibrary(Library lib)
Method to announce that a Library has been read.

Parameters:
lib - the Library that was read.

eraseLibrary

void eraseLibrary(Library lib)
Method to announce that a Library is about to be erased.

Parameters:
lib - the Library that will be erased.

writeLibrary

void writeLibrary(Library lib)
Method to announce that a Library is about to be written to disk.

Parameters:
lib - the Library that will be saved.