|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectetomica.nbr.cell.NeighborCellManager
public class NeighborCellManager
Class that defines and manages construction and use of lattice of cells for cell-based neighbor listing.
| Field Summary | |
|---|---|
protected AtomLeafAgentManager |
agentManager
|
protected IBox |
box
|
protected int |
cellRange
|
protected boolean |
doApplyPBC
|
protected CellLattice |
lattice
|
protected int[] |
numCells
|
protected IAtomPositionDefinition |
positionDefinition
|
protected double |
range
|
protected ISimulation |
sim
|
protected IVectorMutable |
v
|
| Constructor Summary | |
|---|---|
NeighborCellManager(ISimulation sim,
IBox box,
double potentialRange,
IAtomPositionDefinition positionDefinition,
ISpace space)
Construct manager for neighbor cells in the given box. |
|
NeighborCellManager(ISimulation sim,
IBox box,
double potentialRange,
ISpace _space)
Constructs manager for neighbor cells in the given box. |
|
| Method Summary | |
|---|---|
void |
assignCell(IAtom atom)
Assigns the cell for the given atom. |
void |
assignCellAll()
Assigns cells to all interacting atoms in the box. |
void |
boundaryInflate(IBoundaryEvent e)
|
protected boolean |
checkDimensions()
Checks the box's dimensions to make sure the number of cells is appropriate. |
Class |
getAgentClass()
Returns the Class of the agent. |
Cell |
getCell(IAtom atom)
|
int |
getCellRange()
Returns the cellRange. |
boolean |
getDoApplyPBC()
|
CellLattice |
getLattice()
Returns the lattice that defines the cell arrangement. |
double |
getPotentialRange()
Returns the potential range. |
Object |
makeAgent(IAtom atom)
Returns the cell containing the given atom. |
IListener |
makeMCMoveListener()
|
void |
releaseAgent(Object cell,
IAtom atom)
Removes the given atom from the cell. |
void |
setCellRange(int newCellRange)
Sets the cell range to the given value. |
void |
setDoApplyPBC(boolean newDoApplyPBC)
|
void |
setPotentialRange(double newRange)
Sets the potential range to the given value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final ISimulation sim
protected final CellLattice lattice
protected final IAtomPositionDefinition positionDefinition
protected final IBox box
protected int cellRange
protected double range
protected final AtomLeafAgentManager agentManager
protected boolean doApplyPBC
protected final IVectorMutable v
protected final int[] numCells
| Constructor Detail |
|---|
public NeighborCellManager(ISimulation sim,
IBox box,
double potentialRange,
ISpace _space)
public NeighborCellManager(ISimulation sim,
IBox box,
double potentialRange,
IAtomPositionDefinition positionDefinition,
ISpace space)
| Method Detail |
|---|
public void setDoApplyPBC(boolean newDoApplyPBC)
public boolean getDoApplyPBC()
public CellLattice getLattice()
BoxCellManager
getLattice in interface BoxCellManagerpublic void setPotentialRange(double newRange)
public double getPotentialRange()
public int getCellRange()
public void setCellRange(int newCellRange)
public void boundaryInflate(IBoundaryEvent e)
boundaryInflate in interface IBoundaryListenerprotected boolean checkDimensions()
public void assignCellAll()
assignCellAll in interface BoxCellManagerpublic Cell getCell(IAtom atom)
public void assignCell(IAtom atom)
public IListener makeMCMoveListener()
public Class getAgentClass()
AtomLeafAgentManager.AgentSource
getAgentClass in interface AtomLeafAgentManager.AgentSourcepublic Object makeAgent(IAtom atom)
makeAgent in interface AtomLeafAgentManager.AgentSource
public void releaseAgent(Object cell,
IAtom atom)
releaseAgent in interface AtomLeafAgentManager.AgentSource
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||