Package org.biojava.bio.structure
Class AtomIterator
- java.lang.Object
-
- org.biojava.bio.structure.AtomIterator
-
-
Constructor Summary
Constructors Constructor Description AtomIterator(Group g)Constructs an AtomIterator object.AtomIterator(Structure struct)Constructs an AtomIterator object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChaingetCurrentChain()Get the chain that contains the current atom.intgetCurrentModel()Get the model number of the model containing the current atom.booleanhasNext()Is there a next atom ?Atomnext()Return next atom.voidremove()does nothing.
-
-
-
Method Detail
-
getCurrentChain
public Chain getCurrentChain()
Get the chain that contains the current atom.- Returns:
- a Chain object
-
getCurrentModel
public int getCurrentModel()
Get the model number of the model containing the current atom.- Returns:
- the number of the model
-
hasNext
public boolean hasNext()
Is there a next atom ?- Specified by:
hasNextin interfacejava.util.Iterator<Atom>- Returns:
- true if there is an atom after the current one
-
next
public Atom next() throws java.util.NoSuchElementException
Return next atom.- Specified by:
nextin interfacejava.util.Iterator<Atom>- Returns:
- the next Atom
- Throws:
java.util.NoSuchElementException- if there is no atom after the current one
-
remove
public void remove()
does nothing.- Specified by:
removein interfacejava.util.Iterator<Atom>
-
-