BoxEventListener
AtomLeafAgentManager
public class BoxEventListenerAdapter extends java.lang.Object implements BoxEventListener
Constructor | Description |
---|---|
BoxEventListenerAdapter() |
Modifier and Type | Method | Description |
---|---|---|
void |
boxAtomLeafIndexChanged(BoxAtomIndexEvent e) |
Called when an atom's global (leaf) index has changed.
|
void |
boxGlobalAtomLeafIndexChanged(BoxIndexEvent e) |
Called when the maximum leaf index in the box has changed.
|
void |
boxMoleculeAdded(BoxMoleculeEvent e) |
Called when a molecule is added to the box.
|
void |
boxMoleculeIndexChanged(BoxMoleculeIndexEvent e) |
Called when an molecule's index has changed.
|
void |
boxMoleculeRemoved(BoxMoleculeEvent e) |
Called when a molecule is removed from the box.
|
void |
boxNumberMolecules(BoxMoleculeCountEvent e) |
Called when the number of molecules of a particular species has changed
in the box.
|
public void boxMoleculeAdded(BoxMoleculeEvent e)
BoxEventListener
boxMoleculeAdded
in interface BoxEventListener
e
- the event, which contains the added molecule and the box to
which it was added.public void boxMoleculeRemoved(BoxMoleculeEvent e)
BoxEventListener
boxMoleculeRemoved
in interface BoxEventListener
e
- the event, which contains the removed molecule and the box from
which it was removed.public void boxGlobalAtomLeafIndexChanged(BoxIndexEvent e)
BoxEventListener
boxGlobalAtomLeafIndexChanged
in interface BoxEventListener
e
- the event, which contains the box and the new maximum global
indexpublic void boxAtomLeafIndexChanged(BoxAtomIndexEvent e)
BoxEventListener
boxAtomLeafIndexChanged
in interface BoxEventListener
e
- the event, which contains the box, the atom whose index changed
and the atom's old leaf index. The atom's new leaf index can
be obtained from the atom.public void boxMoleculeIndexChanged(BoxMoleculeIndexEvent e)
BoxEventListener
boxMoleculeIndexChanged
in interface BoxEventListener
e
- the event, which contains the box, the molecule whose index
changed and the molecule's old index. The molecule's new index
can be obtained from the atom.public void boxNumberMolecules(BoxMoleculeCountEvent e)
BoxEventListener
boxNumberMolecules
in interface BoxEventListener
e
- the event, which contains the box, the species and the new
number of molecules of that species.