Enum Class SecStrucType
- All Implemented Interfaces:
Serializable
,Comparable<SecStrucType>
,Constable
This enum contains all of the secondary structure types found in the DSSP
output. It also contains some methods to operate with the SS types.
When compared, the types are sorted in the declaration order of the enum, which is the DSSP preference of type assignment.
- Author:
- Andreas Prlic, Aleix Lafita
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SecStrucType
fromCharacter
(Character stype) Converts a Character representing a Secondary Structure type into the corresponding enum object.boolean
A Beta-Strand is an extended set of sequential Bridges that, together with other Beta-Strands, is part of a Beta-Sheet.boolean
Helix type can be 3-10 helix, pi-helix or alpha-helix.toString()
static SecStrucType
Returns the enum constant of this class with the specified name.static SecStrucType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
helix4
-
extended
-
bridge
-
helix3
-
helix5
-
turn
-
bend
-
coil
-
-
Field Details
-
type
-
name
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromCharacter
Converts a Character representing a Secondary Structure type into the corresponding enum object.- Parameters:
stype
- the character representing the SS type- Returns:
- SecStrucType or null if the character is invalid
-
toString
- Overrides:
toString
in classEnum<SecStrucType>
-
isHelixType
public boolean isHelixType()Helix type can be 3-10 helix, pi-helix or alpha-helix.- Returns:
- true if the type is any of the helix types, false otherwise
-
isBetaStrand
public boolean isBetaStrand()A Beta-Strand is an extended set of sequential Bridges that, together with other Beta-Strands, is part of a Beta-Sheet.- Returns:
- true if the type is a Beta-Strand
-