public class OakChain extends Object implements Chain
| Constructor and Description |
|---|
OakChain(OakChain chain) |
OakChain(String chainIdentifier) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLeafSubstructure(OakLeafSubstructure leafSubstructure) |
void |
addLeafSubstructure(OakLeafSubstructure leafSubstructure,
boolean consecutivePart) |
void |
connectChainBackbone() |
void |
connectNucleotideBonds(OakNucleotide source,
OakNucleotide target) |
void |
connectPeptideBonds(OakAminoAcid source,
OakAminoAcid target)
Connects two residues, using the Backbone Carbon (C) of the source residue and the Backbone Nitrogen (N) of the
target residue.
|
boolean |
equals(Object o) |
List<LeafSubstructure<?>> |
getAllLeafSubstructures()
Returns all
LeafSubstructures. |
Optional<Atom> |
getAtom(Integer atomIdentifier)
|
String |
getChainIdentifier()
Returns the chain identifier, a short sequence of alphabetic characters.
|
List<LeafSubstructure<?>> |
getConsecutivePart() |
OakChain |
getCopy()
Returns a copy of this chain.
|
LeafSubstructure<?> |
getFirstLeafSubstructure() |
Optional<LeafSubstructure<?>> |
getLeafSubstructure(LeafIdentifier leafIdentifier)
Returns an
Optional of the LeafSubstructure with the given identifier. |
LeafIdentifier |
getNextLeafIdentifier() |
List<LeafSubstructure<?>> |
getNonConsecutivePart() |
int |
hashCode() |
void |
removeAtom(Integer atomIdentifier)
Removes an atom from this container.
|
boolean |
removeLeafSubstructure(LeafIdentifier leafIdentifier)
Removes a
LeafSubstructure from this container. |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitflatToStringgetAllAminoAcids, getAllAtoms, getAllLigands, getAllNucleotides, getAminoAcid, getAtom, getLigand, getNucleotide, getNumberOfLeafSubstructures, removeLeafSubstructure, removeLeafSubstructuresNotRelevantForpublic OakChain(String chainIdentifier)
public OakChain(OakChain chain)
public String getChainIdentifier()
ChaingetChainIdentifier in interface Chainpublic 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 void addLeafSubstructure(OakLeafSubstructure leafSubstructure, boolean consecutivePart)
public void addLeafSubstructure(OakLeafSubstructure leafSubstructure)
public 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 void removeAtom(Integer atomIdentifier)
AtomContainerremoveAtom in interface AtomContaineratomIdentifier - The identifier of the atom to be removed.public void connectChainBackbone()
public void connectPeptideBonds(OakAminoAcid source, OakAminoAcid target)
source - AminoAcid with Backbone Carbon.target - AminoAcid with Backbone Nitrogen.public void connectNucleotideBonds(OakNucleotide source, OakNucleotide target)
public List<LeafSubstructure<?>> getConsecutivePart()
public List<LeafSubstructure<?>> getNonConsecutivePart()
public LeafIdentifier getNextLeafIdentifier()
public OakChain getCopy()
ChaingetCopy in interface ChaingetCopy in interface LeafSubstructureContainerCopyright © 2018. All rights reserved.