IPotential, IPotentialAtomicpublic class P1ConstraintNbrHcp extends java.lang.Object implements IPotentialAtomic
| Modifier and Type | Field | Description | 
|---|---|---|
| protected Boundary | boundary | |
| protected Vector | drj | |
| protected Vector | drk | |
| protected IAtomList | leafList | |
| protected int[][] | neighborAtoms | |
| protected double | neighborRadiusSq | |
| protected int | p1Counter | 
| Constructor | Description | 
|---|---|
| P1ConstraintNbrHcp(Space space,
                  double neighborDistance,
                  Box box) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| double | energy(IAtomList atoms) | Returns sum of energy for all triplets containing the given atom | 
| double | energyi(IAtom atom) | Returns the energy for atom i due to requirements for i and its
 neighbors (but not for i as a neighbor) | 
| int | getp1Counter() | |
| double | getRange() | Returns the range over which the potential applies. | 
| int | nBody() | The number of atoms on which the potential depends. | 
| void | setBox(Box box) | Informs the potential of the box on which it acts so that it can
 properly consider the boundaries. | 
protected final int[][] neighborAtoms
protected final Vector drj
protected final Vector drk
protected double neighborRadiusSq
protected final Boundary boundary
protected IAtomList leafList
protected int p1Counter
public int nBody()
IPotentialnBody in interface IPotentialpublic double getRange()
IPotentialgetRange in interface IPotentialpublic void setBox(Box box)
IPotentialsetBox in interface IPotentialpublic double energy(IAtomList atoms)
energy in interface IPotentialAtomicpublic double energyi(IAtom atom)
public int getp1Counter()