etomica.action
Class BoxDeleteMolecules
java.lang.Object
etomica.action.BoxActionAdapter
etomica.action.BoxDeleteMolecules
- All Implemented Interfaces:
- BoxAction, IAction, Serializable
public class BoxDeleteMolecules
- extends BoxActionAdapter
Deletes molecules from a box as determined by an AtomFilter. Atoms deleted
are those for which the filter's accept method returns false.
- See Also:
- Serialized Form
|
Method Summary |
void |
actionPerformed()
Performs the action of deleting accept == false molecules, considering
all molecules in the box last given to setBox. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BoxDeleteMolecules
public BoxDeleteMolecules(AtomFilter filter)
- Parameters:
filter - determines the atoms that will be deleted by the action; those
for which filter.accept returns false are deleted
actionPerformed
public void actionPerformed()
- Performs the action of deleting accept == false molecules, considering
all molecules in the box last given to setBox. If no box was given,
no action is performed and method returns quietly.