etomica.atom
Interface AtomLeafAgentManager.AgentSource

All Known Implementing Classes:
BondListener, CalcGradientDifferentiable, ChargeAgentSourceTIP4PWater, ColorSchemeCollectiveAgent, ColorSchemeCoordination, ColorSchemeNeighbor, ColorSchemeRandom, CriterionPositionWall, CriterionSimple, DisplayBoxCanvasG3DSys, IntegratorConNVT, IntegratorGear4, IntegratorGear4NPH, IntegratorHard, IntegratorHardField, IntegratorRigidIterative, IntegratorRigidMatrixIterative, IntegratorVelocityVerlet, IntegratorVelocityVerletRattle, IntegratorVelocityVerletShake, IntegratorVerlet, NeighborCellManager, NeighborCellManagerList, NeighborListManager, NeighborListManager.AtomPotential1ListSource, NeighborSiteManager, SceneManager.SphereShapeSource
Enclosing class:
AtomLeafAgentManager

public static interface AtomLeafAgentManager.AgentSource

Interface for an object that wants an agent associated with each Atom in a Box.


Method Summary
 Class getAgentClass()
          Returns the Class of the agent.
 Object makeAgent(IAtom a)
          Returns an agent for the given Atom.
 void releaseAgent(Object agent, IAtom atom)
          This informs the agent source that the agent is going away and that the agent source should disconnect the agent from other elements
 

Method Detail

getAgentClass

Class getAgentClass()
Returns the Class of the agent. This is used to create an array of the appropriate Class.


makeAgent

Object makeAgent(IAtom a)
Returns an agent for the given Atom.


releaseAgent

void releaseAgent(Object agent,
                  IAtom atom)
This informs the agent source that the agent is going away and that the agent source should disconnect the agent from other elements