Class SecStrucElement
- java.lang.Object
-
- org.biojava.nbio.structure.secstruc.SecStrucElement
-
- All Implemented Interfaces:
Serializable
public class SecStrucElement extends Object implements Serializable
A secondary structure element (SSE) is an object representing a block of sequential residues that share the same secondary structure type.- Since:
- 4.1.1
- Author:
- Aleix Lafita
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SecStrucElement(SecStrucType type, ResidueNumber start, ResidueNumber end, int length, int index, String chainID)
Create a new SSE object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getId()
Returns the ID of this element.int
getIndex()
Returns the index of the SSE for its type.int
getLength()
Return the length (number of residues) in the SSE.ResidueRangeAndLength
getRange()
Returns the residue range of this SSE.SecStrucType
getType()
Returns theSecStrucType
of this element.String
toString()
-
-
-
Constructor Detail
-
SecStrucElement
public SecStrucElement(SecStrucType type, ResidueNumber start, ResidueNumber end, int length, int index, String chainID)
Create a new SSE object. The start and end residue numbers cannot be the same.- Parameters:
type
- object describing the type of SSstart
- first residue of the SSEend
- final residue of the SSElength
- number of residues included in the SSEindex
-chainID
- the chain ID
-
-
Method Detail
-
getType
public SecStrucType getType()
Returns theSecStrucType
of this element.- Returns:
-
getIndex
public int getIndex()
Returns the index of the SSE for its type. This is, the sequential position of this SSE relative to the other SSE of the same type.- Returns:
-
getLength
public int getLength()
Return the length (number of residues) in the SSE.- Returns:
-
getId
public String getId()
Returns the ID of this element. The ID is the concatenation of the type letter and the numerical element identifier (e.g. H1, S1, ...).- Returns:
-
getRange
public ResidueRangeAndLength getRange()
Returns the residue range of this SSE.- Returns:
-
-