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, wait
addPotential, getPotential, getPotentials, getSpecies, isEnabled, isEnabled, isEnabled, isPotentialHard, lrcMaster, makePotentialGroup, potentialAddedNotify, removePotential, setEnabled, setEnabled, setEnabled, setPotentialHard
protected 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)
PotentialMaster
addPotential
in class PotentialMaster
public void addPotential(IPotentialAtomic potential, AtomType[] atomTypes)
PotentialMaster
addPotential
in class PotentialMaster
public void removePotential(IPotentialAtomic potential)
PotentialMaster
removePotential
in class PotentialMaster
public void calculate(Box box, IteratorDirective id, PotentialCalculation pc)
PotentialMaster
calculate
in class PotentialMaster
protected void calculate(IAtom leafAtom, IAtomList leafList, int leafIndex, PotentialArrayByType potentialArray, IteratorDirective.Direction direction, PotentialCalculation pc)
public PotentialArrayByType makeAgent(AtomType type)
AtomTypeAgentManager.AgentSource
makeAgent
in interface AtomTypeAgentManager.AgentSource<PotentialArrayByType>
public void releaseAgent(PotentialArrayByType agent, AtomType type)
AtomTypeAgentManager.AgentSource
releaseAgent
in interface AtomTypeAgentManager.AgentSource<PotentialArrayByType>