etomica.atom
Interface SpeciesAgentManager.AgentSource

All Known Implementing Classes:
IntegratorRigidIterative, IntegratorRigidMatrixIterative, IntegratorVelocityVerletRattle, IntegratorVelocityVerletShake, PotentialMasterCell, PotentialMasterHybrid, PotentialMasterList, PotentialMasterNbr, PotentialMasterSite
Enclosing class:
SpeciesAgentManager

public static interface SpeciesAgentManager.AgentSource

Interface for an object that wants an agent associated with each AtomType in a Simulation.


Method Summary
 Class getSpeciesAgentClass()
          Returns the Class of the agent.
 Object makeAgent(ISpecies type)
          Returns an agent for the given AtomType.
 void releaseAgent(Object agent, ISpecies type)
          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

getSpeciesAgentClass

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


makeAgent

Object makeAgent(ISpecies type)
Returns an agent for the given AtomType.


releaseAgent

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