etomica.api
Interface IAtomType

All Known Subinterfaces:
IAtomTypeOriented, IAtomTypeSphere
All Known Implementing Classes:
AtomTypeLeaf, AtomTypeOrientedSphere, AtomTypeSphere, AtomTypeWell

public interface IAtomType


Method Summary
 int getChildIndex()
           
 IElement getElement()
           
 int getIndex()
          Returns the index for this IAtomTypeLeaf, within the context of an ISimulation.
 double getMass()
          Returns the value of the mass.
 ISpecies getSpecies()
           
 double rm()
          Returns the reciprocal of the mass, 1.0/mass
 void setChildIndex(int newChildIndex)
           
 void setIndex(int newIndex)
          Informs the ISpecies what its index should be.
 void setSpecies(ISpecies newParent)
           
 

Method Detail

setSpecies

void setSpecies(ISpecies newParent)

setIndex

void setIndex(int newIndex)
Informs the ISpecies what its index should be. This should only be called by the SpeciesManager.


getIndex

int getIndex()
Returns the index for this IAtomTypeLeaf, within the context of an ISimulation. The index is the IAtomTypeLeaf' position in the list of species and atom types in the simulation.


setChildIndex

void setChildIndex(int newChildIndex)

getChildIndex

int getChildIndex()

getSpecies

ISpecies getSpecies()

getMass

double getMass()
Returns the value of the mass.


rm

double rm()
Returns the reciprocal of the mass, 1.0/mass


getElement

IElement getElement()