PotentialMasterCell, PotentialMasterHybrid, PotentialMasterList, PotentialMasterSitepublic abstract class PotentialMasterNbr extends PotentialMaster
PotentialMaster.AtomIterator0, PotentialMaster.MoleculeIterator0, PotentialMaster.PotentialLinker| Modifier and Type | Field | Description |
|---|---|---|
protected NeighborCriterion[][] |
criteria |
|
protected java.util.List<NeighborCriterion>[] |
criteria1Body |
|
protected java.util.List<IPotentialAtomic> |
potentials0body |
|
protected IPotentialAtomic[][] |
rangedPotentials |
|
protected java.util.List<IPotentialAtomic>[] |
rangedPotentials1Body |
|
protected Simulation |
simulation |
enabled, isPotentialHard, iteratorFactory, lrcMaster, potentialList| Constructor | Description |
|---|---|
PotentialMasterNbr(Simulation sim) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addPotential(IPotentialMolecular potential,
ISpecies[] species) |
Indicates to the PotentialMaster that the given potential should apply to
the specified species.
|
protected void |
addRangedPotentialForTypes(IPotentialAtomic subPotential,
AtomType[] atomTypes) |
|
abstract BoxCellManager |
getBoxCellManager(Box box) |
|
NeighborCriterion[] |
getCriteria(AtomType type) |
|
java.util.List<NeighborCriterion> |
getCriteria1Body(AtomType type) |
|
NeighborCriterion |
getCriterion(AtomType type1,
AtomType type2) |
|
PotentialArray |
getIntraPotentials(ISpecies species) |
|
IPotentialAtomic[][] |
getRangedPotentials() |
|
IPotentialAtomic[] |
getRangedPotentials(AtomType atomType) |
|
java.util.List<IPotentialAtomic> |
getRangedPotentials1Body(AtomType 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 |
removePotential(IPotentialAtomic potential) |
Removes given potential from the group.
|
void |
setBoxForCriteria(Box box) |
Sets the box for all NeighborCriterions
|
protected void |
setBoxForPotentials(Box box) |
Sets the box for all ranged potentials
|
void |
setCriterion(AtomType type1,
AtomType type2,
NeighborCriterion criterion) |
Sets the criterion associated with the given pair of atom types, overriding
the default provided by the PotentialMasterList.
|
void |
setCriterion1Body(IPotentialAtomic potential,
AtomType type,
NeighborCriterion criterion) |
Sets the criterion associated with the given 1-body potential, overriding
the default provided by the PotentialMasterList.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPotential, addPotential, calculate, getPotential, getPotentials, getSpecies, isEnabled, isEnabled, isEnabled, isPotentialHard, lrcMaster, removePotential, setEnabled, setEnabled, setEnabled, setPotentialHardprotected final IPotentialAtomic[][] rangedPotentials
protected final java.util.List<IPotentialAtomic>[] rangedPotentials1Body
protected final java.util.List<IPotentialAtomic> potentials0body
protected final NeighborCriterion[][] criteria
protected final java.util.List<NeighborCriterion>[] criteria1Body
protected final Simulation simulation
public PotentialMasterNbr(Simulation sim)
public PotentialGroup makePotentialGroup(int nBody)
PotentialMastermakePotentialGroup in class PotentialMasterpublic void addPotential(IPotentialMolecular potential, ISpecies[] species)
PotentialMasteraddPotential in class PotentialMasterpublic void potentialAddedNotify(IPotentialAtomic subPotential, PotentialGroup pGroup)
PotentialMasterpotentialAddedNotify in class PotentialMasterprotected void addRangedPotentialForTypes(IPotentialAtomic subPotential, AtomType[] atomTypes)
public void removePotential(IPotentialAtomic potential)
PotentialMasterremovePotential in class PotentialMasterpublic final IPotentialAtomic[][] getRangedPotentials()
public final IPotentialAtomic[] getRangedPotentials(AtomType atomType)
public final java.util.List<IPotentialAtomic> getRangedPotentials1Body(AtomType atomType)
public final PotentialArray getIntraPotentials(ISpecies species)
public NeighborCriterion getCriterion(AtomType type1, AtomType type2)
type1 - the first atom typetype2 - the second atom typepublic NeighborCriterion[] getCriteria(AtomType type)
type - the atom type for which you want to know the NeighborCriteriapublic java.util.List<NeighborCriterion> getCriteria1Body(AtomType type)
type - the atom type for which you want to know the NeighborCriteriapublic void setCriterion(AtomType type1, AtomType type2, NeighborCriterion criterion)
public void setCriterion1Body(IPotentialAtomic potential, AtomType type, NeighborCriterion criterion)
public void setBoxForCriteria(Box box)
box - the box!protected void setBoxForPotentials(Box box)
box - the box!public abstract BoxCellManager getBoxCellManager(Box box)