|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IPotentialMaster
| Method Summary | |
|---|---|
void |
addModel(Model newModel)
Add the given Model's intramolecular potentials to this PotentialMaster |
void |
addPotential(IPotentialAtomic potential,
IAtomType[] atomTypes)
Indicates to the PotentialMaster that the given potential should apply to the specified atom types. |
void |
addPotential(IPotentialMolecular potential,
ISpecies[] species)
Indicates to the PotentialMaster that the given potential should apply to the specified species. |
void |
calculate(IBox 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. |
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. |
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. |
| Method Detail |
|---|
PotentialMasterLrc lrcMaster()
PotentialGroup makePotentialGroup(int nBody)
void calculate(IBox box,
IteratorDirective id,
PotentialCalculation pc)
void addModel(Model newModel)
void addPotential(IPotentialMolecular potential,
ISpecies[] species)
void addPotential(IPotentialAtomic potential,
IAtomType[] atomTypes)
The order of the elements in the atomTypes array is not relevant, and is subject to rearrangement by the method -- the array is sorted (using the compareTo method of AtomType) before doing anything else.
void potentialAddedNotify(IPotentialAtomic subPotential,
PotentialGroup pGroup)
PotentialGroup getPotential(ISpecies[] types)
void removePotential(IPotentialMolecular potential)
void removePotential(IPotentialAtomic potential)
boolean isEnabled()
void setEnabled(boolean enabled)
enabled - flags if potentials are enabled.
void setEnabled(IPotentialMolecular potential,
boolean enabled)
boolean isEnabled(IPotentialMolecular potential)
void setEnabled(IPotentialAtomic potential,
boolean enabled)
boolean isEnabled(IPotentialAtomic potential)
IPotentialMolecular[] getPotentials()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||