IPotential
, IPotentialAtomic
public class P3AxilrodTeller extends java.lang.Object implements IPotentialAtomic
Modifier and Type | Class | Description |
---|---|---|
static class |
P3AxilrodTeller.MyAgent |
Modifier and Type | Field | Description |
---|---|---|
protected Boundary |
boundary |
|
protected Vector |
dr1 |
|
protected Vector |
dr2 |
|
protected java.util.Map<AtomType,P3AxilrodTeller.MyAgent> |
paramsManager |
|
protected Space |
space |
Constructor | Description |
---|---|
P3AxilrodTeller(Space space,
java.util.Map<AtomType,P3AxilrodTeller.MyAgent> paramsManager) |
Modifier and Type | Method | Description |
---|---|---|
double |
energy(IAtomList atoms) |
Returns the interaction energy between the given atoms.
|
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 java.util.Map<AtomType,P3AxilrodTeller.MyAgent> paramsManager
protected final Space space
protected final Vector dr1
protected final Vector dr2
protected Boundary boundary
public P3AxilrodTeller(Space space, java.util.Map<AtomType,P3AxilrodTeller.MyAgent> paramsManager)
public double energy(IAtomList atoms)
IPotentialAtomic
energy
in interface IPotentialAtomic
public double getRange()
IPotential
getRange
in interface IPotential
public void setBox(Box box)
IPotential
setBox
in interface IPotential
public int nBody()
IPotential
nBody
in interface IPotential