Package ffx.potential.nonbonded
Class NeighborList.Cell
java.lang.Object
ffx.potential.nonbonded.NeighborList.Cell
- Enclosing class:
NeighborList
Hold the atoms in each cell.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int atomIndex, int symOpIndex, double z) Add an atom to the cell.voidclear()Clear the list of atoms in the cell.get(int index) intgetCount()intintgetSymOpAtoms(int symOpIndex, int[] index) Return the number of atoms in the cell for a given symmetry operator.voidgroupAdd(int groupIndex)
-
Constructor Details
-
Cell
public Cell(int a, int b, int c)
-
-
Method Details
-
add
public void add(int atomIndex, int symOpIndex, double z) Add an atom to the cell.- Parameters:
atomIndex- The atom index.symOpIndex- The symmetry operator index.
-
groupAdd
public void groupAdd(int groupIndex) -
get
-
getCount
public int getCount() -
getGroupCount
public int getGroupCount() -
getSymOpAtoms
public int getSymOpAtoms(int symOpIndex, int[] index) Return the number of atoms in the cell for a given symmetry operator.- Parameters:
symOpIndex- The symmetry operator index.index- The list of indexes for the given symmetry operator.- Returns:
- The number of atoms in the cell for the symmetry operator.
-
clear
public void clear()Clear the list of atoms in the cell.
-