etomica.atom
Interface AtomTypeAgentManager.AgentSource

All Known Implementing Classes:
ColorSchemeByType, IntegratorHard, IntegratorHardField, PotentialMasterCell, PotentialMasterHybrid, PotentialMasterList, PotentialMasterMonatomic, PotentialMasterNbr, PotentialMasterSite
Enclosing class:
AtomTypeAgentManager

public static interface AtomTypeAgentManager.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(IAtomType type)
          Returns an agent for the given AtomType.
 void releaseAgent(Object agent, IAtomType 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(IAtomType type)
Returns an agent for the given AtomType.


releaseAgent

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