AtomTypeAgentManager.AgentSource<PotentialArrayByType>public class PotentialMasterMonatomic extends PotentialMaster implements AtomTypeAgentManager.AgentSource<PotentialArrayByType>
PotentialMaster.AtomIterator0, PotentialMaster.MoleculeIterator0, PotentialMaster.PotentialLinker| Modifier and Type | Field | Description |
|---|---|---|
protected IPotential[] |
allPotentials |
|
protected AtomPair |
atomPair |
|
protected AtomSetSinglet |
atomSetSinglet |
|
protected AtomTypeAgentManager<PotentialArrayByType> |
potentialAgentManager |
enabled, isPotentialHard, iteratorFactory, lrcMaster, potentialList| Constructor | Description |
|---|---|
PotentialMasterMonatomic(Simulation sim) |
| 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,
ISpecies[] species) |
Indicates to the PotentialMaster that the given potential should apply to
the specified species.
|
protected void |
calculate(IAtom leafAtom,
IAtomList leafList,
int leafIndex,
PotentialArrayByType potentialArray,
IteratorDirective.Direction direction,
PotentialCalculation pc) |
|
void |
calculate(Box box,
IteratorDirective id,
PotentialCalculation pc) |
Performs the given PotentialCalculation on the atoms of the given Box.
|
PotentialArrayByType |
makeAgent(AtomType type) |
Returns an agent for the given AtomType.
|
void |
releaseAgent(PotentialArrayByType agent,
AtomType type) |
This informs the agent source that the agent is going away and that the agent source should disconnect the
agent from other elements.
|
void |
removePotential(IPotentialAtomic potential) |
Removes given potential from the group.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPotential, getPotential, getPotentials, getSpecies, isEnabled, isEnabled, isEnabled, isPotentialHard, lrcMaster, makePotentialGroup, potentialAddedNotify, removePotential, setEnabled, setEnabled, setEnabled, setPotentialHardprotected final AtomTypeAgentManager<PotentialArrayByType> potentialAgentManager
protected final AtomSetSinglet atomSetSinglet
protected final AtomPair atomPair
protected IPotential[] allPotentials
public PotentialMasterMonatomic(Simulation sim)
public void addPotential(IPotentialMolecular potential, ISpecies[] species)
PotentialMasteraddPotential in class PotentialMasterpublic void addPotential(IPotentialAtomic potential, AtomType[] atomTypes)
PotentialMasteraddPotential in class PotentialMasterpublic void removePotential(IPotentialAtomic potential)
PotentialMasterremovePotential in class PotentialMasterpublic void calculate(Box box, IteratorDirective id, PotentialCalculation pc)
PotentialMastercalculate in class PotentialMasterprotected void calculate(IAtom leafAtom, IAtomList leafList, int leafIndex, PotentialArrayByType potentialArray, IteratorDirective.Direction direction, PotentialCalculation pc)
public PotentialArrayByType makeAgent(AtomType type)
AtomTypeAgentManager.AgentSourcemakeAgent in interface AtomTypeAgentManager.AgentSource<PotentialArrayByType>public void releaseAgent(PotentialArrayByType agent, AtomType type)
AtomTypeAgentManager.AgentSourcereleaseAgent in interface AtomTypeAgentManager.AgentSource<PotentialArrayByType>