IntegratorListener
, MoleculeAgentManager.MoleculeAgentSource
, java.io.Serializable
NeighborListManagerSlantyMolecular
public class NeighborListManagerMolecular extends java.lang.Object implements IntegratorListener, MoleculeAgentManager.MoleculeAgentSource, java.io.Serializable
Modifier and Type | Class | Description |
---|---|---|
static class |
NeighborListManagerMolecular.MoleculePotential1ListSource |
Modifier and Type | Field | Description |
---|---|---|
protected MoleculeAgentManager |
agentManager1Body |
|
protected MoleculeAgentManager |
agentManager2Body |
|
protected Box |
box |
|
protected boolean |
doApplyPBC |
|
protected boolean |
initialized |
|
protected MoleculeSetSinglet |
moleculeSetSinglet |
|
protected PotentialMasterListMolecular |
potentialMaster |
Constructor | Description |
---|---|
NeighborListManagerMolecular(PotentialMasterListMolecular potentialMasterList,
double range,
Box box,
Space space) |
Configures instance for use by the given PotentialMaster.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addMoleculeNotify(IMolecule molecule) |
Constructs neighbor lists for the given atom
|
void |
dispose() |
|
NeighborCriterionMolecular[] |
getCriterion(ISpecies species) |
|
boolean |
getDoApplyPBC() |
|
IMoleculeList[] |
getDownList(IMolecule molecule) |
|
NeighborListEventManagerMolecular |
getEventManager() |
|
BoxImposePbc |
getPbcEnforcer() |
|
MoleculePotentialList |
getPotential1BodyList(IMolecule molecule) |
|
double |
getRange() |
|
int |
getUpdateInterval() |
Returns the interval for which neighbor update checks are performed.
|
IMoleculeList[] |
getUpList(IMolecule molecule) |
|
void |
integratorInitialized(IntegratorEvent e) |
Invoked when integration begins.
|
void |
integratorStepFinished(IntegratorEvent e) |
Invoked at the end of each integrator step.
|
void |
integratorStepStarted(IntegratorEvent e) |
Invoked at the beginning of each integrator step.
|
boolean |
isQuiet() |
|
java.lang.Object |
makeAgent(IMolecule molecule) |
Returns an agent for the given Atom.
|
protected void |
neighborSetup() |
Reassigns all interacting atoms to cells, then loops over all cell-list
neighbor pairs, determines for each pair whether a potential applies to it,
and if so, puts each in the other's neighbor list.
|
void |
releaseAgent(java.lang.Object agent,
IMolecule molecule) |
This informs the agent source that the agent is going away and that
the agent source should disconnect the agent from other elements
|
void |
reset() |
For each box in the array, applies central image,
resets neighbors of all atoms, and sets up all neighbor
lists.
|
void |
setDoApplyPBC(boolean newDoApplyPBC) |
|
void |
setPbcEnforcer(BoxImposePbc pbcEnforcer) |
|
void |
setQuiet(boolean quiet) |
Sets the quiet flag, indicating if unsafe-neighbor conditions should generate
an error message (would not want this if atoms were inserted in a MC
move, for example).
|
void |
setRange(double d) |
Sets the interaction range, which affects the cell-list neighbor iteration
used to generate candidate neighbors for neighbor listing.
|
void |
setUpdateInterval(int updateInterval) |
Sets the interval for which neighbor update checks are performed.
|
void |
updateLists() |
|
void |
updateNbrsIfNeeded() |
Checks whether any atom needs neighbor list updating, and if
one is found, performs neighbor list updates of all atom
neighbor lists.
|
protected final MoleculeSetSinglet moleculeSetSinglet
protected final PotentialMasterListMolecular potentialMaster
protected final MoleculeAgentManager agentManager2Body
protected final MoleculeAgentManager agentManager1Body
protected Box box
protected boolean initialized
protected boolean doApplyPBC
public NeighborListManagerMolecular(PotentialMasterListMolecular potentialMasterList, double range, Box box, Space space)
public void setDoApplyPBC(boolean newDoApplyPBC)
public boolean getDoApplyPBC()
public void updateLists()
public void integratorInitialized(IntegratorEvent e)
IntegratorListener
integratorInitialized
in interface IntegratorListener
public void integratorStepFinished(IntegratorEvent e)
IntegratorListener
integratorStepFinished
in interface IntegratorListener
public void integratorStepStarted(IntegratorEvent e)
IntegratorListener
integratorStepStarted
in interface IntegratorListener
public void reset()
public void updateNbrsIfNeeded()
public int getUpdateInterval()
public void setUpdateInterval(int updateInterval)
public NeighborCriterionMolecular[] getCriterion(ISpecies species)
public BoxImposePbc getPbcEnforcer()
public void setPbcEnforcer(BoxImposePbc pbcEnforcer)
pbcEnforcer
- The pbcEnforcer to set.protected void neighborSetup()
public void addMoleculeNotify(IMolecule molecule)
public void setRange(double d)
public double getRange()
public boolean isQuiet()
public void setQuiet(boolean quiet)
quiet
- if true, no error will be generated; default is falsepublic IMoleculeList[] getUpList(IMolecule molecule)
public IMoleculeList[] getDownList(IMolecule molecule)
public MoleculePotentialList getPotential1BodyList(IMolecule molecule)
public void dispose()
public NeighborListEventManagerMolecular getEventManager()
public java.lang.Object makeAgent(IMolecule molecule)
MoleculeAgentManager.MoleculeAgentSource
makeAgent
in interface MoleculeAgentManager.MoleculeAgentSource
public void releaseAgent(java.lang.Object agent, IMolecule molecule)
MoleculeAgentManager.MoleculeAgentSource
releaseAgent
in interface MoleculeAgentManager.MoleculeAgentSource