public abstract class MmtfLeafSubstructure<FamilyType extends StructuralFamily> extends Object implements LeafSubstructure<FamilyType>
LeafSubstructure for mmtf structures. Remembers the internal group index, the leaf
identifier and the indices of the first and the last atom belonging to this group.| Modifier and Type | Field and Description |
|---|---|
protected Set<FamilyType> |
exchangeableFamilies
The families to which the
LeafSubstructure can be exchanged. |
protected FamilyType |
family
The structural family of this entity
|
| Modifier | Constructor and Description |
|---|---|
protected |
MmtfLeafSubstructure(MmtfLeafSubstructure<?> mmtfLeafSubstructure)
A copy constructor that passes all attributes of the given
MmtfLeafSubstructure to a new instance. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsAtomWithName(String atomName) |
boolean |
equals(Object o) |
List<Atom> |
getAllAtoms()
Returns all
Atoms. |
Optional<Atom> |
getAtom(Integer internalAtomIndex)
|
Optional<Atom> |
getAtomByName(String atomName) |
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.
|
String |
getThreeLetterCode()
Returns the three letter code of the chemical compound represented by this leaf substructure.
|
int |
hashCode() |
void |
removeAtom(Integer atomIdentifier)
Removes an atom from this container.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitflatToString, getChainIdentifier, getCopy, getInsertionCode, getModelIdentifier, getPdbIdentifier, getPdbLines, getPosition, getSerial, isAnnotatedAsHeteroAtomaddExchangeableFamily, getContainingFamiliesprotected FamilyType extends StructuralFamily family
protected Set<FamilyType extends StructuralFamily> exchangeableFamilies
LeafSubstructure can be exchanged.protected MmtfLeafSubstructure(MmtfLeafSubstructure<?> mmtfLeafSubstructure)
MmtfLeafSubstructure to a new instance.mmtfLeafSubstructure - The MmtfLeafSubstructure to copy.public LeafIdentifier getIdentifier()
LeafSubstructuregetIdentifier in interface LeafSubstructure<FamilyType extends StructuralFamily>LeafIdentifierpublic String getThreeLetterCode()
LeafSubstructuregetThreeLetterCode in interface LeafSubstructure<FamilyType extends StructuralFamily>public List<Atom> getAllAtoms()
AtomContainerAtoms.getAllAtoms in interface AtomContainerAtoms.public Optional<Atom> getAtom(Integer internalAtomIndex)
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 AtomContainerinternalAtomIndex - 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 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 FamilyType getFamily()
ExchangeableStructuralFamily of this entity.getFamily in interface Exchangeable<FamilyType extends StructuralFamily>StructuralFamilypublic 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>Copyright © 2018. All rights reserved.