protected static class CoordinateDefinitionMolecule.MoleculeSiteSource extends java.lang.Object implements MoleculeAgentManager.MoleculeAgentSource, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected IAtomPositionDefinition |
positionDefinition |
Constructor and Description |
---|
MoleculeSiteSource(ISpace space,
IAtomPositionDefinition positionDefinition) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class |
getMoleculeAgentClass()
Returns the Class of the agent.
|
java.lang.Object |
makeAgent(IMolecule molecule)
Returns an agent for the given Atom.
|
void |
releaseAgent(java.lang.Object agent,
IMolecule molecule)
This informs the agent source that the agent is going away and that
the agent source should disconnect the agent from other elements
|
protected final IAtomPositionDefinition positionDefinition
public MoleculeSiteSource(ISpace space, IAtomPositionDefinition positionDefinition)
public java.lang.Class getMoleculeAgentClass()
etomica.atom.MoleculeAgentManager.MoleculeAgentSource
getMoleculeAgentClass
in interface MoleculeAgentManager.MoleculeAgentSource
public java.lang.Object makeAgent(IMolecule molecule)
etomica.atom.MoleculeAgentManager.MoleculeAgentSource
makeAgent
in interface MoleculeAgentManager.MoleculeAgentSource
public void releaseAgent(java.lang.Object agent, IMolecule molecule)
etomica.atom.MoleculeAgentManager.MoleculeAgentSource
releaseAgent
in interface MoleculeAgentManager.MoleculeAgentSource