public abstract class OakLeafSubstructure<FamilyType extends StructuralFamily> extends Object implements LeafSubstructure<FamilyType>
| Constructor and Description |
|---|
OakLeafSubstructure(LeafIdentifier leafIdentifier,
FamilyType family) |
OakLeafSubstructure(LeafIdentifier identifer,
FamilyType aminoAcidFamily,
String threeLetterCode) |
OakLeafSubstructure(OakLeafSubstructure<FamilyType> leafSubstructure)
This is a copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAtom(OakAtom atom) |
int |
addBondBetween(OakAtom source,
OakAtom target) |
int |
addBondBetween(OakAtom source,
OakAtom target,
BondType bondType) |
int |
addBondBetween(OakBond edge,
OakAtom source,
OakAtom target)
Adds a bond connecting the the given atoms.
|
void |
addExchangeableFamily(FamilyType exchangeableType)
Adds an exchangeable
StructuralFamily. |
boolean |
containsAtomWithName(String atomName) |
boolean |
equals(Object o) |
List<Atom> |
getAllAtoms()
Returns all
Atoms. |
Optional<Atom> |
getAtom(Integer atomIdentifier)
|
Optional<Atom> |
getAtomByName(String atomName) |
Collection<OakBond> |
getBonds() |
Set<FamilyType> |
getExchangeableFamilies()
Returns the
StructuralFamilys to which this entity is exchangeable. |
FamilyType |
getFamily()
Returns the
StructuralFamily of this entity. |
LeafIdentifier |
getIdentifier()
Returns the complete leaf identifier.
|
int |
getNextEdgeIdentifier() |
String |
getThreeLetterCode()
Returns the three letter code of the chemical compound represented by this leaf substructure.
|
int |
hashCode() |
boolean |
isAnnotatedAsHeteroAtom() |
void |
removeAtom(Integer atomIdentifier)
Removes an atom from this container.
|
void |
setAnnotatedAsHetAtom(boolean annotatedAsHetAtom) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitflatToString, getChainIdentifier, getCopy, getInsertionCode, getModelIdentifier, getPdbIdentifier, getPdbLines, getPosition, getSerialgetContainingFamiliespublic OakLeafSubstructure(LeafIdentifier leafIdentifier, FamilyType family)
public OakLeafSubstructure(LeafIdentifier identifer, FamilyType aminoAcidFamily, String threeLetterCode)
public OakLeafSubstructure(OakLeafSubstructure<FamilyType> leafSubstructure)
leafSubstructure - The leaf to copy.public LeafIdentifier getIdentifier()
LeafSubstructuregetIdentifier in interface LeafSubstructure<FamilyType extends StructuralFamily>LeafIdentifierpublic boolean containsAtomWithName(String atomName)
containsAtomWithName in interface LeafSubstructure<FamilyType extends StructuralFamily>public Optional<Atom> getAtomByName(String atomName)
getAtomByName in interface LeafSubstructure<FamilyType extends StructuralFamily>public boolean isAnnotatedAsHeteroAtom()
isAnnotatedAsHeteroAtom in interface LeafSubstructure<FamilyType extends StructuralFamily>public void setAnnotatedAsHetAtom(boolean annotatedAsHetAtom)
public String getThreeLetterCode()
LeafSubstructuregetThreeLetterCode in interface LeafSubstructure<FamilyType extends StructuralFamily>public FamilyType getFamily()
ExchangeableStructuralFamily of this entity.getFamily in interface Exchangeable<FamilyType extends StructuralFamily>StructuralFamilypublic List<Atom> getAllAtoms()
AtomContainerAtoms.getAllAtoms in interface AtomContainerAtoms.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 addAtom(OakAtom atom)
public void removeAtom(Integer atomIdentifier)
AtomContainerremoveAtom in interface AtomContaineratomIdentifier - The identifier of the atom to be removed.public Collection<OakBond> getBonds()
public int addBondBetween(OakBond edge, OakAtom source, OakAtom target)
edge - The edge to be added.source - The source atom.target - The target atom.public Set<FamilyType> getExchangeableFamilies()
ExchangeableStructuralFamilys to which this entity is exchangeable. By default an entity is always
exchangeable to the same StructuralFamily.getExchangeableFamilies in interface Exchangeable<FamilyType extends StructuralFamily>public void addExchangeableFamily(FamilyType exchangeableType)
ExchangeableStructuralFamily.addExchangeableFamily in interface Exchangeable<FamilyType extends StructuralFamily>exchangeableType - the StructuralFamily to be addedpublic int getNextEdgeIdentifier()
Copyright © 2018. All rights reserved.