|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectetomica.potential.PotentialMaster
etomica.nbr.PotentialMasterNbr
public abstract class PotentialMasterNbr
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class etomica.potential.PotentialMaster |
|---|
PotentialMaster.AtomIterator0, PotentialMaster.PotentialLinker |
| Field Summary | |
|---|---|
protected IPotential[] |
allPotentials
|
protected BoxAgentManager |
boxAgentManager
|
protected BoxAgentManager.BoxAgentSource |
boxAgentSource
|
protected SpeciesAgentManager |
intraAgentManager
|
protected SpeciesAgentManager.AgentIterator |
intraPotentialIterator
|
protected AtomTypeAgentManager |
rangedAgentManager
|
protected AtomTypeAgentManager.AgentIterator |
rangedPotentialIterator
|
protected ISimulation |
simulation
|
| Fields inherited from class etomica.potential.PotentialMaster |
|---|
enabled, first, iteratorFactory, last, lrcMaster |
| Constructor Summary | |
|---|---|
protected |
PotentialMasterNbr(ISimulation sim,
BoxAgentManager.BoxAgentSource boxAgentSource,
BoxAgentManager boxAgentManager)
|
| Method Summary | |
|---|---|
void |
addPotential(IPotentialMolecular potential,
ISpecies[] species)
Indicates to the PotentialMaster that the given potential should apply to the specified species. |
protected void |
addRangedPotential(IPotentialAtomic potential,
IAtomType atomType)
|
protected abstract void |
addRangedPotentialForTypes(IPotentialAtomic subPotential,
IAtomType[] atomTypes)
|
BoxAgentManager |
getCellAgentManager()
|
PotentialArray |
getIntraPotentials(ISpecies atomType)
|
PotentialArray |
getRangedPotentials(IAtomType atomType)
|
ISimulation |
getSimulation()
Returns the simulation associated with this PotentialMaster |
Class |
getSpeciesAgentClass()
Returns the Class of the agent. |
Object |
makeAgent(IAtomType type)
Returns an agent for the given AtomType. |
Object |
makeAgent(ISpecies type)
Returns an agent for the given AtomType. |
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 |
releaseAgent(Object agent,
IAtomType 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 |
releaseAgent(Object agent,
ISpecies 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. |
| Methods inherited from class etomica.potential.PotentialMaster |
|---|
addModel, addPotential, addPotential, calculate, getPotential, getPotentials, getSpecies, isEnabled, isEnabled, isEnabled, lrcMaster, removePotential, setEnabled, setEnabled, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected AtomTypeAgentManager.AgentIterator rangedPotentialIterator
protected SpeciesAgentManager.AgentIterator intraPotentialIterator
protected final AtomTypeAgentManager rangedAgentManager
protected final SpeciesAgentManager intraAgentManager
protected IPotential[] allPotentials
protected BoxAgentManager.BoxAgentSource boxAgentSource
protected final ISimulation simulation
protected BoxAgentManager boxAgentManager
| Constructor Detail |
|---|
protected PotentialMasterNbr(ISimulation sim,
BoxAgentManager.BoxAgentSource boxAgentSource,
BoxAgentManager boxAgentManager)
| Method Detail |
|---|
public PotentialGroup makePotentialGroup(int nBody)
IPotentialMaster
makePotentialGroup in interface IPotentialMastermakePotentialGroup in class PotentialMaster
public void addPotential(IPotentialMolecular potential,
ISpecies[] species)
IPotentialMaster
addPotential in interface IPotentialMasteraddPotential in class PotentialMaster
public void potentialAddedNotify(IPotentialAtomic subPotential,
PotentialGroup pGroup)
IPotentialMaster
potentialAddedNotify in interface IPotentialMasterpotentialAddedNotify in class PotentialMaster
protected abstract void addRangedPotentialForTypes(IPotentialAtomic subPotential,
IAtomType[] atomTypes)
protected void addRangedPotential(IPotentialAtomic potential,
IAtomType atomType)
public void removePotential(IPotentialAtomic potential)
IPotentialMaster
removePotential in interface IPotentialMasterremovePotential in class PotentialMasterpublic PotentialArray getRangedPotentials(IAtomType atomType)
public PotentialArray getIntraPotentials(ISpecies atomType)
public final BoxAgentManager getCellAgentManager()
public Class getSpeciesAgentClass()
AtomTypeAgentManager.AgentSource
getSpeciesAgentClass in interface AtomTypeAgentManager.AgentSourcegetSpeciesAgentClass in interface SpeciesAgentManager.AgentSourcepublic Object makeAgent(IAtomType type)
AtomTypeAgentManager.AgentSource
makeAgent in interface AtomTypeAgentManager.AgentSource
public void releaseAgent(Object agent,
IAtomType type)
AtomTypeAgentManager.AgentSource
releaseAgent in interface AtomTypeAgentManager.AgentSourcepublic Object makeAgent(ISpecies type)
SpeciesAgentManager.AgentSource
makeAgent in interface SpeciesAgentManager.AgentSource
public void releaseAgent(Object agent,
ISpecies type)
SpeciesAgentManager.AgentSource
releaseAgent in interface SpeciesAgentManager.AgentSourcepublic ISimulation getSimulation()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||