AtomLeafAgentManager.AgentSource<AtomSite>, BoxCellManagerpublic class NeighborSiteManager extends java.lang.Object implements BoxCellManager, AtomLeafAgentManager.AgentSource<AtomSite>
The expected use for this neighbor structure is in modeling of lattice systems such as the Ising model in which the coordinate represents something other than the spatial position of the atom; can also be applied to diffusionless crystalline solids, such as the valence-force field model, single-occupancy crystals, and perhaps high-density unconstrained crystals.
| Constructor | Description |
|---|---|
NeighborSiteManager(Box box,
int nCells) |
Constructs manager for neighbor cells in the given box.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
assignCellAll() |
Should not be called, because cell assignments are made as atoms are created.
|
CellLattice |
getLattice() |
Returns the lattice used to define the neighbor structure.
|
AtomSite |
getSite(IAtom atom) |
|
AtomSite |
makeAgent(IAtom atom,
Box agentBox) |
Returns an agent for the given Atom.
|
void |
releaseAgent(AtomSite agent,
IAtom atom,
Box agentBox) |
This informs the agent source that the agent is going away and that
the agent source should disconnect the agent from other elements.
|
public NeighborSiteManager(Box box, int nCells)
public CellLattice getLattice()
getLattice in interface BoxCellManagerpublic void assignCellAll()
assignCellAll in interface BoxCellManagerjava.lang.RuntimeException - if invokedpublic AtomSite makeAgent(IAtom atom, Box agentBox)
AtomLeafAgentManager.AgentSourcemakeAgent in interface AtomLeafAgentManager.AgentSource<AtomSite>agentBox - TODOpublic void releaseAgent(AtomSite agent, IAtom atom, Box agentBox)
AtomLeafAgentManager.AgentSourcereleaseAgent in interface AtomLeafAgentManager.AgentSource<AtomSite>