PotentialCalculation
protected static final class IntegratorHard.CollisionHandlerUp extends java.lang.Object implements PotentialCalculation
Modifier and Type | Method | Description |
---|---|---|
void |
doCalculation(IAtomList atoms,
IPotentialAtomic potential) |
Method giving the specific calculation performed by this class.
|
void |
reset() |
resets the "atom" held by this class, ensuring the method will
work even if (coincidentally) the atom is the same as the same
one as the last time the method was called.
|
void |
setAtom(IAtom a) |
sets the atom whose collision time is to be calculated
|
public void reset()
public void setAtom(IAtom a)
public void doCalculation(IAtomList atoms, IPotentialAtomic potential)
PotentialCalculation
doCalculation
in interface PotentialCalculation
atoms
- IAtomSet the atom sets for which the calculation is performed.potential
- The potential used to apply the action defined by this class.