etomica.action
Class BoxDeleteMolecules

java.lang.Object
  extended by etomica.action.BoxActionAdapter
      extended by 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

Field Summary
 
Fields inherited from class etomica.action.BoxActionAdapter
box
 
Constructor Summary
BoxDeleteMolecules(AtomFilter filter)
           
 
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 etomica.action.BoxActionAdapter
getBox, setBox
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.