etomica.nbr.cell
Class BoxAgentSourceCellManager

java.lang.Object
  extended by etomica.nbr.cell.BoxAgentSourceCellManager
All Implemented Interfaces:
BoxAgentManager.BoxAgentSource, Serializable
Direct Known Subclasses:
BoxAgentSourceCellManagerList

public class BoxAgentSourceCellManager
extends Object
implements BoxAgentManager.BoxAgentSource, Serializable

BoxAgentSource responsible for creating a NeighborCellManager.

See Also:
Serialized Form

Field Summary
protected  IAtomPositionDefinition positionDefinition
           
protected  double range
           
protected  ISimulation sim
           
protected  ISpace space
           
 
Constructor Summary
BoxAgentSourceCellManager(ISimulation sim, IAtomPositionDefinition positionDefinition, ISpace _space)
           
 
Method Summary
 Class getAgentClass()
           
 Object makeAgent(IBox box)
           
 void releaseAgent(Object agent)
           
 void setRange(double d)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sim

protected final ISimulation sim

range

protected double range

positionDefinition

protected final IAtomPositionDefinition positionDefinition

space

protected final ISpace space
Constructor Detail

BoxAgentSourceCellManager

public BoxAgentSourceCellManager(ISimulation sim,
                                 IAtomPositionDefinition positionDefinition,
                                 ISpace _space)
Method Detail

setRange

public void setRange(double d)

getAgentClass

public Class getAgentClass()
Specified by:
getAgentClass in interface BoxAgentManager.BoxAgentSource

makeAgent

public Object makeAgent(IBox box)
Specified by:
makeAgent in interface BoxAgentManager.BoxAgentSource

releaseAgent

public void releaseAgent(Object agent)
Specified by:
releaseAgent in interface BoxAgentManager.BoxAgentSource