public class PotentialMasterHybrid extends PotentialMasterNbr
PotentialMaster.AtomIterator0, PotentialMaster.MoleculeIterator0, PotentialMaster.PotentialLinker
enabled, isPotentialHard, iteratorFactory, lrcMaster, potentialList
criteria, 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, wait
addPotential, addPotential, getPotential, getPotentials, getSpecies, isEnabled, isEnabled, isEnabled, isPotentialHard, lrcMaster, removePotential, setEnabled, setEnabled, setEnabled, setPotentialHard
getCriteria, getCriteria1Body, getCriterion, getIntraPotentials, getRangedPotentials, getRangedPotentials, getRangedPotentials1Body, setBoxForCriteria, setBoxForPotentials, setCriterion, setCriterion1Body
public PotentialMasterHybrid(Simulation sim, double range, Space _space)
public PotentialGroup makePotentialGroup(int nBody)
PotentialMaster
makePotentialGroup
in class PotentialMasterNbr
public PotentialMasterList getPotentialMasterList()
public PotentialMasterCell getPotentialMasterCell()
public void calculate(Box box, IteratorDirective id, PotentialCalculation pc)
calculate
in class PotentialMaster
public 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)
PotentialMaster
addPotential
in class PotentialMasterNbr
protected void addRangedPotentialForTypes(IPotentialAtomic potential, AtomType[] atomTypes)
addRangedPotentialForTypes
in class PotentialMasterNbr
public void potentialAddedNotify(IPotentialAtomic subPotential, PotentialGroup pGroup)
PotentialMaster
potentialAddedNotify
in class PotentialMasterNbr
public NeighborListManager getNeighborManager(Box box)
public void removePotential(IPotentialAtomic potential)
PotentialMaster
removePotential
in class PotentialMasterNbr
public BoxCellManager getBoxCellManager(Box box)
getBoxCellManager
in class PotentialMasterNbr