PotentialMasterMonatomic
, PotentialMasterNbr
, PotentialMasterNbrMolecular
public class PotentialMaster
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static class |
PotentialMaster.AtomIterator0 |
|
static class |
PotentialMaster.MoleculeIterator0 |
|
static class |
PotentialMaster.PotentialLinker |
Modifier and Type | Field | Description |
---|---|---|
protected boolean |
enabled |
|
protected boolean |
isPotentialHard |
|
protected IteratorFactory |
iteratorFactory |
|
protected PotentialMasterLrc |
lrcMaster |
|
protected java.util.List<PotentialMaster.PotentialLinker> |
potentialList |
Constructor | Description |
---|---|
PotentialMaster() |
|
PotentialMaster(IteratorFactory iteratorFactory) |
Modifier and Type | Method | Description |
---|---|---|
void |
addPotential(IPotentialAtomic potential,
AtomType[] atomTypes) |
Indicates to the PotentialMaster that the given potential should apply to
the specified atom types.
|
void |
addPotential(IPotentialMolecular potential,
MoleculesetIteratorPDT iterator,
ISpecies[] types) |
|
void |
addPotential(IPotentialMolecular potential,
ISpecies[] species) |
Indicates to the PotentialMaster that the given potential should apply to
the specified species.
|
void |
calculate(Box box,
IteratorDirective id,
PotentialCalculation pc) |
Performs the given PotentialCalculation on the atoms of the given Box.
|
PotentialGroup |
getPotential(ISpecies[] types) |
Returns the potential that applies to the specified types,
or null of no existing potential applies.
|
IPotentialMolecular[] |
getPotentials() |
Returns an array containing all molecular Potentials.
|
ISpecies[] |
getSpecies(IPotentialMolecular potential) |
|
boolean |
isEnabled() |
|
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 |
isEnabled(IPotentialMolecular 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 |
isPotentialHard() |
Flag indicating indicating that the only energetic interactions are based on hard potentials, which
prohibit overlap but otherwise have zero energy.
|
PotentialMasterLrc |
lrcMaster() |
Returns the object that oversees the long-range
correction zero-body potentials.
|
PotentialGroup |
makePotentialGroup(int nBody) |
Returns an nBody PotentialGroup appropriate for this type of
PotentialMaster.
|
void |
potentialAddedNotify(IPotentialAtomic subPotential,
PotentialGroup pGroup) |
Notifies the PotentialMaster that the sub-potential has been added to
the given PotentialGroup, which is associated (but not necessarily held
by) this PotentialMaster.
|
void |
removePotential(IPotentialAtomic potential) |
Removes given potential from the group.
|
void |
removePotential(IPotentialMolecular potential) |
Removes given potential from the group.
|
void |
setEnabled(boolean enabled) |
Permits enabling/disabling of all potentials.
|
void |
setEnabled(IPotentialAtomic potential,
boolean enabled) |
Indicates that the specified potential should not contribute to potential
calculations.
|
void |
setEnabled(IPotentialMolecular potential,
boolean enabled) |
Indicates that the specified potential should not contribute to potential
calculations.
|
void |
setPotentialHard(boolean potentialHard) |
protected PotentialMasterLrc lrcMaster
protected IteratorFactory iteratorFactory
protected java.util.List<PotentialMaster.PotentialLinker> potentialList
protected boolean enabled
protected boolean isPotentialHard
public PotentialMaster()
public PotentialMaster(IteratorFactory iteratorFactory)
public PotentialMasterLrc lrcMaster()
public PotentialGroup makePotentialGroup(int nBody)
public void calculate(Box box, IteratorDirective id, PotentialCalculation pc)
public void addPotential(IPotentialMolecular potential, ISpecies[] species)
public void addPotential(IPotentialAtomic potential, AtomType[] atomTypes)
public void potentialAddedNotify(IPotentialAtomic subPotential, PotentialGroup pGroup)
public PotentialGroup getPotential(ISpecies[] types)
public ISpecies[] getSpecies(IPotentialMolecular potential)
public void addPotential(IPotentialMolecular potential, MoleculesetIteratorPDT iterator, ISpecies[] types)
public void removePotential(IPotentialMolecular potential)
public void removePotential(IPotentialAtomic potential)
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- flags if potentials are enabled.public void setEnabled(IPotentialMolecular potential, boolean enabled)
public boolean isPotentialHard()
public void setPotentialHard(boolean potentialHard)
potentialHard
- new value of field indicating that simulation involves only hard potentials. No check
is made to ensure that they are indeed only hard potentials.public void setEnabled(IPotentialAtomic potential, boolean enabled)
public boolean isEnabled(IPotentialAtomic potential)
public boolean isEnabled(IPotentialMolecular potential)
public IPotentialMolecular[] getPotentials()