etomica.nbr.list
Class AtomPotentialList

java.lang.Object
  extended by etomica.nbr.list.AtomPotentialList
All Implemented Interfaces:
Serializable

public class AtomPotentialList
extends Object
implements Serializable

Class used to maintain list of whether each 1-body potential that applies to an AtomType is currently in effect or not for an Atom.

See Also:
Serialized Form

Field Summary
protected  boolean[] isInteractingList
           
 
Constructor Summary
AtomPotentialList()
          Constructs sequencer for the given atom.
 
Method Summary
 void clearNbrs()
          Clears neighbor lists, resetting all flags to false (not interacting).
 boolean[] getInteractingList()
          Returns booleans indicating whether the Atom interacts with each potential or not.
protected  void setCapacity(int index)
           
 void setIsInteracting(boolean flag, int index)
          Sets whether the atom is interacting or not with the potential corresponding to the given index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isInteractingList

protected boolean[] isInteractingList
Constructor Detail

AtomPotentialList

public AtomPotentialList()
Constructs sequencer for the given atom.

Method Detail

setIsInteracting

public void setIsInteracting(boolean flag,
                             int index)
Sets whether the atom is interacting or not with the potential corresponding to the given index.


getInteractingList

public boolean[] getInteractingList()
Returns booleans indicating whether the Atom interacts with each potential or not.


setCapacity

protected void setCapacity(int index)

clearNbrs

public void clearNbrs()
Clears neighbor lists, resetting all flags to false (not interacting).