Package jgromacs.db
Class ResidueType
java.lang.Object
jgromacs.db.ResidueType
- All Implemented Interfaces:
Cloneable
Objects of this class represent a residue type
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new ResidueType objectResidueType
(int type) Constructs a new ResidueType object of a given typeResidueType
(String code) Constructs a new ResidueType object of given code -
Method Summary
Modifier and TypeMethodDescriptionclone()
Returns an identical ResidueType objectboolean
Returns true if the two residue types are identicalReturns 1 letter code of residue typeReturns 3 letter code of residue typeReturns full name of residue typeint
hashCode()
Returns hash codeboolean
Returns true if it is an amino acid (not water or else)boolean
isOther()
Returns true if it is not an amino acid nor waterboolean
isWater()
Returns true if it is water (not amino acid or else)toString()
Returns the String representation of residue type
-
Constructor Details
-
ResidueType
public ResidueType()Constructs a new ResidueType object -
ResidueType
public ResidueType(int type) Constructs a new ResidueType object of a given type- Parameters:
type
- residue type
-
ResidueType
Constructs a new ResidueType object of given code- Parameters:
code
- residue code
-
-
Method Details
-
get1LetterCode
Returns 1 letter code of residue type- Returns:
- residue code
-
get3LetterCode
Returns 3 letter code of residue type- Returns:
- residue code
-
getFullName
Returns full name of residue type- Returns:
- residue name
-
isAminoAcid
public boolean isAminoAcid()Returns true if it is an amino acid (not water or else) -
isWater
public boolean isWater()Returns true if it is water (not amino acid or else) -
isOther
public boolean isOther()Returns true if it is not an amino acid nor water -
toString
Returns the String representation of residue type -
clone
Returns an identical ResidueType object -
equals
Returns true if the two residue types are identical -
hashCode
public int hashCode()Returns hash code
-