public interface LeafSubstructureContainer extends AtomContainer
AminoAcids, Nucleotides, and Ligands.getAtom, removeAtomList<LeafSubstructure<?>> getAllLeafSubstructures()
LeafSubstructures.LeafSubstructures.Optional<LeafSubstructure<?>> getLeafSubstructure(LeafIdentifier leafIdentifier)
Optional of the LeafSubstructure with the given identifier. If no LeafSubstructure
with the identifier could be found, an empty optional is returned.leafIdentifier - The identifier of the leaf.Optional encapsulating the LeafSubstructure.LeafSubstructure<?> getFirstLeafSubstructure()
boolean removeLeafSubstructure(LeafIdentifier leafIdentifier)
LeafSubstructure from this container.leafIdentifier - The identifier of the leaf.LeafSubstructure was removed.default boolean removeLeafSubstructure(LeafSubstructure leafSubstructure)
default void removeLeafSubstructuresNotRelevantFor(LeafSubstructureContainer leafSubstructuresToKeep)
LeafSubstructures from this container that are not referenced in the given
LeafSubstructureContainer. Basically all LeafSubstructures are removed that do not match any of the
given containers families. This method also keeps exchangeable families if any are defined.leafSubstructuresToKeep - The leaf structures that are kept.default int getNumberOfLeafSubstructures()
default List<AminoAcid> getAllAminoAcids()
AminoAcids.AminoAcids.default Optional<AminoAcid> getAminoAcid(LeafIdentifier leafIdentifier)
default List<Nucleotide> getAllNucleotides()
Nucleotides.Nucleotides.default Optional<Nucleotide> getNucleotide(LeafIdentifier leafIdentifier)
Optional of the Nucleotide with the given identifier. If no LeafSubstructure with the
identifier could be found or the LeafSubstructure is no Nucleotide, an empty optional is returned.leafIdentifier - The identifier of the nucleotide.Optional encapsulating the Nucleotide.default Optional<Ligand> getLigand(LeafIdentifier leafIdentifier)
default List<Atom> getAllAtoms()
Atoms.getAllAtoms in interface AtomContainerAtoms.<ContainerType extends LeafSubstructureContainer> ContainerType getCopy()
Copyright © 2018. All rights reserved.