public class PotentialMasterHybrid extends PotentialMasterNbr
PotentialMaster.AtomIterator0, PotentialMaster.MoleculeIterator0, PotentialMaster.PotentialLinkerenabled, isPotentialHard, iteratorFactory, lrcMaster, potentialListcriteria, criteria1Body, potentials0body, rangedPotentials, rangedPotentials1Body, simulation| Constructor | Description |
|---|---|
PotentialMasterHybrid(Simulation sim,
double range,
Space _space) |
| 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 potential,
AtomType[] atomTypes) |
|
void |
calculate(Box box,
IteratorDirective id,
PotentialCalculation pc) |
Overrides superclass method to enable direct neighbor-list iteration
instead of iteration via species/potential hierarchy.
|
BoxCellManager |
getBoxCellManager(Box box) |
|
double |
getCellRange() |
|
NeighborCellManager |
getNbrCellManager(Box box) |
|
NeighborListManager |
getNeighborManager(Box box) |
|
PotentialMasterCell |
getPotentialMasterCell() |
|
PotentialMasterList |
getPotentialMasterList() |
|
double |
getRange() |
|
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 |
setCellRange(int newRange) |
|
void |
setRange(double newRange) |
|
void |
setUseNbrLists(boolean flag) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPotential, addPotential, getPotential, getPotentials, getSpecies, isEnabled, isEnabled, isEnabled, isPotentialHard, lrcMaster, removePotential, setEnabled, setEnabled, setEnabled, setPotentialHardgetCriteria, getCriteria1Body, getCriterion, getIntraPotentials, getRangedPotentials, getRangedPotentials, getRangedPotentials1Body, setBoxForCriteria, setBoxForPotentials, setCriterion, setCriterion1Bodypublic PotentialMasterHybrid(Simulation sim, double range, Space _space)
public PotentialGroup makePotentialGroup(int nBody)
PotentialMastermakePotentialGroup in class PotentialMasterNbrpublic PotentialMasterList getPotentialMasterList()
public PotentialMasterCell getPotentialMasterCell()
public void calculate(Box box, IteratorDirective id, PotentialCalculation pc)
calculate in class PotentialMasterpublic double getCellRange()
public void setCellRange(int newRange)
public double getRange()
public void setRange(double newRange)
public NeighborCellManager getNbrCellManager(Box box)
public void setUseNbrLists(boolean flag)
public void addPotential(IPotentialMolecular potential, ISpecies[] species)
PotentialMasteraddPotential in class PotentialMasterNbrprotected void addRangedPotentialForTypes(IPotentialAtomic potential, AtomType[] atomTypes)
addRangedPotentialForTypes in class PotentialMasterNbrpublic void potentialAddedNotify(IPotentialAtomic subPotential, PotentialGroup pGroup)
PotentialMasterpotentialAddedNotify in class PotentialMasterNbrpublic NeighborListManager getNeighborManager(Box box)
public void removePotential(IPotentialAtomic potential)
PotentialMasterremovePotential in class PotentialMasterNbrpublic BoxCellManager getBoxCellManager(Box box)
getBoxCellManager in class PotentialMasterNbr