etomica.api
Interface IMoleculeList
- All Known Implementing Classes:
- AtomSetAllMolecules, MoleculeArrayList, MoleculeListWrapper, MoleculePair, MoleculesetArray, MoleculeSetSinglet
public interface IMoleculeList
Interface for a set of IAtoms. The IAtomSet might contain 0, 1, 2 or many
IAtoms.
getMolecule
IMolecule getMolecule(int i)
- Returns the i-th atom, with numbering beginning from 0.
If i is greater than count-1, throws an IllegalArgumentException.
getMoleculeCount
int getMoleculeCount()
- Returns:
- the number of atoms in the set