| Constructor and Description |
|---|
AtomIterator(Group g)
Constructs an AtomIterator object.
|
AtomIterator(Structure struct)
Constructs an AtomIterator object over all models
|
AtomIterator(Structure struct,
int modelNr)
Constructs an AtomIterator object over a single model
|
| Modifier and Type | Method and Description |
|---|---|
Chain |
getCurrentChain()
Get the chain that contains the current atom.
|
int |
getCurrentModel()
Get the model number of the model containing the current atom.
|
boolean |
hasNext()
Is there a next atom ?
|
Atom |
next()
Return next atom.
|
void |
remove()
does nothing.
|
public AtomIterator(Structure struct)
struct - a Structure objectpublic AtomIterator(Structure struct, int modelNr)
struct - a Structure objectpublic AtomIterator(Group g)
g - a Group objectpublic Chain getCurrentChain()
public int getCurrentModel()
public boolean hasNext()
hasNext in interface java.util.Iterator<Atom>public Atom next() throws java.util.NoSuchElementException
next in interface java.util.Iterator<Atom>java.util.NoSuchElementException - if there is no atom after the current onepublic void remove()
remove in interface java.util.Iterator<Atom>Copyright © 2000-2020 BioJava. All Rights Reserved.