etomica.nbr.list
Class NeighborCellManagerList

java.lang.Object
  extended by etomica.nbr.cell.NeighborCellManager
      extended by etomica.nbr.list.NeighborCellManagerList
All Implemented Interfaces:
IBoundaryListener, AtomLeafAgentManager.AgentSource, BoxCellManager, Serializable

public class NeighborCellManagerList
extends NeighborCellManager

Subclass of NeighborCellManager that notifies the NeighborListManager when an atom added to the box gets a cell.

See Also:
Serialized Form

Field Summary
protected  PotentialMasterList potentialMaster
           
 
Fields inherited from class etomica.nbr.cell.NeighborCellManager
agentManager, box, cellRange, doApplyPBC, lattice, numCells, positionDefinition, range, sim, v
 
Constructor Summary
NeighborCellManagerList(ISimulation sim, IBox box, double potentialRange, IAtomPositionDefinition positionDefinition, ISpace _space)
           
NeighborCellManagerList(ISimulation sim, IBox box, double potentialRange, ISpace _space)
           
 
Method Summary
 Object makeAgent(IAtom atom)
          Returns the cell containing the given atom.
 void setPotentialMaster(PotentialMasterList newPotentialMaster)
           
 
Methods inherited from class etomica.nbr.cell.NeighborCellManager
assignCell, assignCellAll, boundaryInflate, checkDimensions, getAgentClass, getCell, getCellRange, getDoApplyPBC, getLattice, getPotentialRange, makeMCMoveListener, releaseAgent, setCellRange, setDoApplyPBC, setPotentialRange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

potentialMaster

protected PotentialMasterList potentialMaster
Constructor Detail

NeighborCellManagerList

public NeighborCellManagerList(ISimulation sim,
                               IBox box,
                               double potentialRange,
                               ISpace _space)

NeighborCellManagerList

public NeighborCellManagerList(ISimulation sim,
                               IBox box,
                               double potentialRange,
                               IAtomPositionDefinition positionDefinition,
                               ISpace _space)
Method Detail

setPotentialMaster

public void setPotentialMaster(PotentialMasterList newPotentialMaster)

makeAgent

public Object makeAgent(IAtom atom)
Description copied from class: NeighborCellManager
Returns the cell containing the given atom. The atom is added to the cell's atom list.

Specified by:
makeAgent in interface AtomLeafAgentManager.AgentSource
Overrides:
makeAgent in class NeighborCellManager