public class OakStructure extends Object implements Structure
| Constructor and Description |
|---|
OakStructure() |
OakStructure(OakStructure structure) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAtom(String chainIdentifier,
String threeLetterCode,
Vector3D position)
|
void |
addModel(OakModel model) |
boolean |
equals(Object o) |
List<Chain> |
getAllChains()
Returns all
Chains. |
List<LeafSubstructure<?>> |
getAllLeafSubstructures()
Returns all
LeafSubstructures. |
Set<Integer> |
getAllModelIdentifiers()
Returns all model identifiers referenced in the model.
|
List<Model> |
getAllModels()
Returns all
Models. |
Optional<Atom> |
getAtom(Integer atomIdentifier)
|
Optional<Chain> |
getChain(int modelIdentifier,
String chainIdentifier)
|
Structure |
getCopy()
Returns a copy of this structure.
|
Chain |
getFirstChain()
Returns the first
Chain. |
LeafSubstructure<?> |
getFirstLeafSubstructure() |
Model |
getFirstModel()
Returns the first
Model (with the smallest identifier). |
int |
getLastAddedAtomIdentifier() |
Optional<LeafSubstructure<?>> |
getLeafSubstructure(LeafIdentifier leafIdentifier)
Returns an
Optional of the LeafSubstructure with the given identifier. |
Optional<Model> |
getModel(int modelIdentifier)
|
String |
getPdbIdentifier()
Returns the PDB identifier, a 4 character code, where the first character is any number followed by three
alphanumeric characters.
|
String |
getTitle()
Returns the title.
|
Optional<Map.Entry<UniqueAtomIdentifer,Atom>> |
getUniqueAtomEntry(int atomSerial) |
int |
hashCode() |
void |
removeAtom(Integer atomIdentifier)
Removes an atom from this container.
|
boolean |
removeLeafSubstructure(LeafIdentifier leafIdentifier)
Removes a
LeafSubstructure from this container. |
void |
removeModel(int modelIdentifier)
Removes a
Model with the given identifier from the structure. |
void |
setLastAddedAtomIdentifier(int lastAddedAtomIdentifier) |
void |
setPdbIdentifier(String pdbIdentifier) |
void |
setTitle(String title) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitflatToStringgetAllAminoAcids, getAllAtoms, getAllLigands, getAllNucleotides, getAminoAcid, getAtom, getLigand, getNucleotide, getNumberOfLeafSubstructures, removeLeafSubstructure, removeLeafSubstructuresNotRelevantForpublic OakStructure()
public OakStructure(OakStructure structure)
public String getPdbIdentifier()
StructuregetPdbIdentifier in interface StructurePDBIdentifierpublic void setPdbIdentifier(String pdbIdentifier)
public void setTitle(String title)
public List<Model> getAllModels()
StructureModels.getAllModels in interface Structurepublic Set<Integer> getAllModelIdentifiers()
StructuregetAllModelIdentifiers in interface Structurepublic Model getFirstModel()
StructureModel (with the smallest identifier).getFirstModel in interface Structurepublic Optional<Model> getModel(int modelIdentifier)
Structurepublic void removeModel(int modelIdentifier)
StructureModel with the given identifier from the structure.removeModel in interface StructuremodelIdentifier - The identifier of the model.public void addModel(OakModel model)
public Optional<Chain> getChain(int modelIdentifier, String chainIdentifier)
Structurepublic List<Chain> getAllChains()
ChainContainerChains.getAllChains in interface ChainContainerChains.public Chain getFirstChain()
ChainContainerChain.getFirstChain in interface ChainContainerChain.public List<LeafSubstructure<?>> getAllLeafSubstructures()
LeafSubstructureContainerLeafSubstructures.getAllLeafSubstructures in interface LeafSubstructureContainerLeafSubstructures.public Optional<LeafSubstructure<?>> getLeafSubstructure(LeafIdentifier leafIdentifier)
LeafSubstructureContainerOptional of the LeafSubstructure with the given identifier. If no LeafSubstructure
with the identifier could be found, an empty optional is returned.getLeafSubstructure in interface LeafSubstructureContainerleafIdentifier - The identifier of the leaf.Optional encapsulating the LeafSubstructure.public LeafSubstructure<?> getFirstLeafSubstructure()
getFirstLeafSubstructure in interface LeafSubstructureContainerpublic boolean removeLeafSubstructure(LeafIdentifier leafIdentifier)
LeafSubstructureContainerLeafSubstructure from this container.removeLeafSubstructure in interface LeafSubstructureContainerleafIdentifier - The identifier of the leaf.LeafSubstructure was removed.public Optional<Atom> getAtom(Integer atomIdentifier)
AtomContainerOptional of the Atom with the given identifier. If no Atom with the identifier could
be found, an empty optional is returned.getAtom in interface AtomContaineratomIdentifier - The identifier of the atom.Optional encapsulating the Atom.public Optional<Map.Entry<UniqueAtomIdentifer,Atom>> getUniqueAtomEntry(int atomSerial)
public void addAtom(String chainIdentifier, String threeLetterCode, Vector3D position)
chainIdentifier - The identifier of the Chain to which it should be added.threeLetterCode - The three-letter code of the associated LeafSubstructure.position - The position of the Atom.public void removeAtom(Integer atomIdentifier)
AtomContainerremoveAtom in interface AtomContaineratomIdentifier - The identifier of the atom to be removed.public int getLastAddedAtomIdentifier()
public void setLastAddedAtomIdentifier(int lastAddedAtomIdentifier)
public Structure getCopy()
StructuregetCopy in interface LeafSubstructureContainergetCopy in interface StructureCopyright © 2018. All rights reserved.