BoxAgentManager.BoxAgentSource<NeighborCellManagerMolecular>
BoxAgentSourceCellManagerListMolecular
public class BoxAgentSourceCellManagerMolecular extends java.lang.Object implements BoxAgentManager.BoxAgentSource<NeighborCellManagerMolecular>
Modifier and Type | Field | Description |
---|---|---|
protected IMoleculePositionDefinition |
positionDefinition |
|
protected double |
range |
|
protected Simulation |
sim |
|
protected Space |
space |
Constructor | Description |
---|---|
BoxAgentSourceCellManagerMolecular(Simulation sim,
IMoleculePositionDefinition positionDefinition,
Space _space) |
Modifier and Type | Method | Description |
---|---|---|
NeighborCellManagerMolecular |
makeAgent(Box box) |
|
void |
releaseAgent(NeighborCellManagerMolecular agent) |
Disconnects the given agent from its box and performs any actions needed to clean up
|
void |
setRange(double d) |
protected final Simulation sim
protected double range
protected final IMoleculePositionDefinition positionDefinition
protected final Space space
public BoxAgentSourceCellManagerMolecular(Simulation sim, IMoleculePositionDefinition positionDefinition, Space _space)
public void setRange(double d)
public NeighborCellManagerMolecular makeAgent(Box box)
makeAgent
in interface BoxAgentManager.BoxAgentSource<NeighborCellManagerMolecular>
box
- the Box for this agentpublic void releaseAgent(NeighborCellManagerMolecular agent)
BoxAgentManager.BoxAgentSource
releaseAgent
in interface BoxAgentManager.BoxAgentSource<NeighborCellManagerMolecular>
agent
- the agent being released