IPotential
, IPotentialMolecular
P2AceticAcidTwoSite
, P2HardAssociationRefAceticAcidTwoSite
, PotentialGroup3PI
, PotentialGroupNbr
, PotentialGroupPI
, PotentialGroupSoft
public class PotentialGroup extends PotentialMolecular
Modifier and Type | Class | Description |
---|---|---|
protected static class |
PotentialGroup.PotentialLinker |
Modifier and Type | Field | Description |
---|---|---|
protected Box |
box |
|
protected NeighborCriterion |
criterion |
|
protected PotentialGroup.PotentialLinker |
first |
|
protected PotentialMaster |
potentialMaster |
nBody, space
Constructor | Description |
---|---|
PotentialGroup(int nBody) |
Makes a potential group defined on the position of nBody atom or atom groups.
|
PotentialGroup(int nBody,
Space space) |
Modifier and Type | Method | Description |
---|---|---|
void |
addPotential(IPotentialAtomic potential,
AtomType[] types) |
Adds the given potential and sets it up to apply to the atoms in the basis
having the given types.
|
void |
addPotential(IPotentialAtomic potential,
AtomsetIteratorBasisDependent iterator) |
Adds the given potential to this group, defining it to apply to the atoms
provided by the given basis-dependent iterator.
|
protected void |
addPotential(IPotentialAtomic potential,
AtomsetIteratorBasisDependent iterator,
AtomType[] types) |
|
void |
calculate(MoleculesetIterator iterator,
IteratorDirective.Direction direction,
IAtom targetAtom,
PotentialCalculation pc) |
Performs the specified calculation over the iterates given by the iterator,
using the directive to set up the iterators for the sub-potentials of this group.
|
boolean |
contains(IPotentialAtomic potential) |
Indicates if a given potential is a sub-potential of this group.
|
double |
energy(IMoleculeList basisAtoms) |
Returns the interaction energy between the given molecules.
|
AtomType[] |
getAtomTypes(IPotential potential) |
Returns the AtomTypes that the given potential applies to if the given
potential is within this potential group.
|
IPotentialAtomic[] |
getPotentials() |
|
double |
getRange() |
Returns the maximum of the range of all potentials in the group.
|
boolean |
isEnabled(IPotentialAtomic potential) |
Returns true if the potential is in this group and has not been disabled
via a previous call to setEnabled; returns false otherwise.
|
boolean |
removePotential(IPotentialAtomic potential) |
Removes given potential from the group.
|
void |
setBox(Box box) |
Informs the potential of the box on which it acts.
|
void |
setEnabled(IPotentialAtomic potential,
boolean enabled) |
Indicates that the specified potential should not contribute to potential
calculations.
|
void |
setPotentialMaster(PotentialMaster newPotentialMaster) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
nBody
protected PotentialGroup.PotentialLinker first
protected Box box
protected PotentialMaster potentialMaster
protected NeighborCriterion criterion
public PotentialGroup(int nBody)
public PotentialGroup(int nBody, Space space)
public void setPotentialMaster(PotentialMaster newPotentialMaster)
public boolean contains(IPotentialAtomic potential)
potential
- the potential in questionpublic void addPotential(IPotentialAtomic potential, AtomType[] types)
public void addPotential(IPotentialAtomic potential, AtomsetIteratorBasisDependent iterator)
protected void addPotential(IPotentialAtomic potential, AtomsetIteratorBasisDependent iterator, AtomType[] types)
public AtomType[] getAtomTypes(IPotential potential)
public double energy(IMoleculeList basisAtoms)
PotentialMolecular
energy
in interface IPotentialMolecular
energy
in class PotentialMolecular
public double getRange()
getRange
in interface IPotential
getRange
in class PotentialMolecular
public boolean removePotential(IPotentialAtomic potential)
public void calculate(MoleculesetIterator iterator, IteratorDirective.Direction direction, IAtom targetAtom, PotentialCalculation pc)
public void setBox(Box box)
PotentialMolecular
setBox
in interface IPotential
setBox
in class PotentialMolecular
public void setEnabled(IPotentialAtomic potential, boolean enabled)
public boolean isEnabled(IPotentialAtomic potential)
public IPotentialAtomic[] getPotentials()