IPotential, IPotentialAtomicpublic class P3Induction extends java.lang.Object implements IPotentialAtomic
| Modifier and Type | Class | Description |
|---|---|---|
static class |
P3Induction.MyAgent |
| Modifier and Type | Field | Description |
|---|---|---|
protected double[] |
alpha |
|
protected Boundary |
boundary |
|
protected Vector |
dr1 |
|
protected Vector |
dr2 |
|
protected double[] |
I |
|
protected Vector |
or3 |
|
protected java.util.Map<AtomType,P3Induction.MyAgent> |
paramsManager |
|
protected Vector |
ri |
|
protected Vector |
rij |
|
protected Vector |
rik |
|
protected Vector |
rj |
|
protected Vector |
rk |
|
protected Space |
space |
| Constructor | Description |
|---|---|
P3Induction(Space space,
java.util.Map<AtomType,P3Induction.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.
|
static void |
main(java.lang.String[] args) |
|
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,P3Induction.MyAgent> paramsManager
protected final Space space
protected final double[] I
protected final double[] alpha
protected final Vector dr1
protected final Vector dr2
protected final Vector ri
protected final Vector rj
protected final Vector rk
protected final Vector rij
protected final Vector rik
protected final Vector or3
protected Boundary boundary
public P3Induction(Space space, java.util.Map<AtomType,P3Induction.MyAgent> paramsManager)
public double energy(IAtomList atoms)
IPotentialAtomicenergy in interface IPotentialAtomicpublic double getRange()
IPotentialgetRange in interface IPotentialpublic void setBox(Box box)
IPotentialsetBox in interface IPotentialpublic int nBody()
IPotentialnBody in interface IPotentialpublic static void main(java.lang.String[] args)