Package pl.poznan.put.pdb.analysis
Class ResidueCollection.PdbBuilder
java.lang.Object
pl.poznan.put.pdb.analysis.ResidueCollection.PdbBuilder
- Enclosing interface:
- ResidueCollection
A builder that can merge many residue collections in one PDB file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd
(ResidueCollection residueCollection) Add a new residue collection to the builder.add
(ResidueCollection residueCollection, String name) Add a new named residue collection to the builder.build()
-
Constructor Details
-
PdbBuilder
public PdbBuilder()
-
-
Method Details
-
add
Add a new residue collection to the builder.- Parameters:
residueCollection
- The residue collection to build.- Returns:
- This builder instance.
-
add
Add a new named residue collection to the builder. A line with name of the collection is prepended to the ATOM lines.- Parameters:
residueCollection
- The residue collection to build.name
- Name of the collection, which will be prepended to ATOM lines if not empty.- Returns:
- This builder instance.
-
build
- Returns:
- The string content in PDB format.
-