Class PdbCompactFragment

java.lang.Object
pl.poznan.put.pdb.analysis.PdbCompactFragment
All Implemented Interfaces:
Serializable, ResidueCollection, SingleTypedResidueCollection
Direct Known Subclasses:
ImmutablePdbCompactFragment

@Immutable public abstract class PdbCompactFragment extends Object implements SingleTypedResidueCollection
A collection of residues such that (i, i+1) are connected.
See Also:
  • Constructor Details

    • PdbCompactFragment

      public PdbCompactFragment()
  • Method Details

    • residues

      @Parameter(order=1) public abstract List<PdbResidue> residues()
      Specified by:
      residues in interface ResidueCollection
      Returns:
      The list of residues.
    • name

      @Default public String name()
      Returns:
      The name of this compact fragment.
    • shifted

      public final PdbCompactFragment shifted(int shift, int size)
      Creates a new instance from this one which starts from a shifted position and has a limited size.
      Parameters:
      shift - Starting position.
      size - Length of the new compact fragment.
      Returns:
      An instance of this class created by taking a sublist of the residues.
    • torsionAngles

      public final ResidueTorsionAngles torsionAngles(PdbResidueIdentifier identifier)
      Computes torsion angles' values for a given residue.
      Parameters:
      identifier - A residue identifier.
      Returns:
      An object containing values of torsion angles in the given residue.
    • toString

      public final String toString()
      Overrides:
      toString in class Object
    • angleTypes

      @Lazy protected Set<TorsionAngleType> angleTypes()
    • angleValues

      @Lazy protected List<ResidueTorsionAngles> angleValues()