public static class StructureParser.MultiParser extends Object implements Iterator<Structure>
Iterator pattern
the structures can be parsed and processed individually. Each specified structure will be parsed lazily so
parsing until a certain condition is met can be done without parsing unused structures. Additionally some
speedups are provided parsing multiple structures. Every ligand is only parsed once, the first time it is
encountered, afterwards it is stored as a LeafSkeleton that is completed with the the concrete atom
positions for each new occurrence.| Modifier and Type | Method and Description |
|---|---|
String |
getCurrentChainIdentifier()
Returns the chain identifier of the next structure, if it can be accessed prior to parsing.
|
String |
getCurrentPdbIdentifier()
Returns the pdb identifier of the next structure, if it can be accessed prior to parsing.
|
int |
getNumberOfQueuedStructures()
Returns the number of structures totally queued.
|
int |
getNumberOfRemainingStructures()
Returns the number of structures remaining.
|
boolean |
hasNext() |
Structure |
next() |
List<Structure> |
parse()
Parses all structures that are queued for this
StructureParser.MultiParser. |
StructureParser.MultiParser |
setOptions(StructureParserOptions options)
Sets the
StructureParserOptions for this parsing process. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removepublic int getNumberOfQueuedStructures()
public int getNumberOfRemainingStructures()
public String getCurrentPdbIdentifier()
IllegalStateException - if the structures identifier could not be accessed.public String getCurrentChainIdentifier()
IllegalStateException - if the structures identifier could not be accessed.public StructureParser.MultiParser setOptions(StructureParserOptions options)
StructureParserOptions for this parsing process.options - The options.public List<Structure> parse()
StructureParser.MultiParser.Copyright © 2018. All rights reserved.