AtomLeafAgentManager.AgentSource<Vector>
, PotentialCalculation
public class PotentialCalculationMeanField extends java.lang.Object implements PotentialCalculation, AtomLeafAgentManager.AgentSource<Vector>
Modifier and Type | Field | Description |
---|---|---|
protected double |
J2 |
|
protected AtomLeafAgentManager<Vector> |
leafAgentManager |
|
protected Space |
space |
Constructor | Description |
---|---|
PotentialCalculationMeanField(Space space,
double J,
Box box) |
Modifier and Type | Method | Description |
---|---|---|
void |
doCalculation(IAtomList atoms,
IPotentialAtomic potential) |
Method giving the specific calculation performed by this class.
|
AtomLeafAgentManager<Vector> |
getAgentManager() |
|
Vector |
makeAgent(IAtom a,
Box agentBox) |
Returns an agent for the given Atom.
|
void |
releaseAgent(Vector 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.
|
void |
reset() |
protected final double J2
protected final Space space
protected AtomLeafAgentManager<Vector> leafAgentManager
public void doCalculation(IAtomList atoms, IPotentialAtomic potential)
PotentialCalculation
doCalculation
in interface PotentialCalculation
atoms
- IAtomSet the atom sets for which the calculation is performed.potential
- The potential used to apply the action defined by this class.public void reset()
public AtomLeafAgentManager<Vector> getAgentManager()
public Vector makeAgent(IAtom a, Box agentBox)
AtomLeafAgentManager.AgentSource
makeAgent
in interface AtomLeafAgentManager.AgentSource<Vector>
agentBox
- TODOpublic void releaseAgent(Vector agent, IAtom atom, Box agentBox)
AtomLeafAgentManager.AgentSource
releaseAgent
in interface AtomLeafAgentManager.AgentSource<Vector>