Package jgromacs.data
Class SequencePosition
java.lang.Object
jgromacs.data.SequencePosition
- All Implemented Interfaces:
Cloneable
Objects of this class represent a single sequence position
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new SequencePosition objectSequencePosition
(int index, String annotation) Constructs a new SequencePosition object of given index and annotationSequencePosition
(int index, ResidueType residueType) Constructs a new SequencePosition object of given index and residue typeSequencePosition
(int index, ResidueType residueType, String annotation) Constructs a new SequencePosition object of given index, residue type and annotationSequencePosition
(ResidueType residueType, String annotation) Constructs a new SequencePosition object of residue type and annotation -
Method Summary
Modifier and TypeMethodDescriptionclone()
Returns an identical SequencePosition objectboolean
Returns true if the two sequence positions are identicalReturns the annotation of sequence positionint
getIndex()
Returns the index of sequence positionReturns the residue type of sequence positionint
hashCode()
Returns hash codevoid
setAnnotation
(String annotation) Sets the annotation of sequence positionvoid
setIndex
(int index) Sets the index of sequence positionvoid
setResidueType
(ResidueType residueType) Sets the residue type of sequence positiontoString()
Returns the String representation of sequence position
-
Constructor Details
-
SequencePosition
public SequencePosition()Constructs a new SequencePosition object -
SequencePosition
Constructs a new SequencePosition object of given index and residue type- Parameters:
index
- indexresidueType
- residue type
-
SequencePosition
Constructs a new SequencePosition object of given index and annotation- Parameters:
index
- indexannotation
- annotation
-
SequencePosition
Constructs a new SequencePosition object of residue type and annotation- Parameters:
residueType
- residue typeannotation
- annotation
-
SequencePosition
Constructs a new SequencePosition object of given index, residue type and annotation- Parameters:
index
- indexresidueType
- residue typeannotation
- annotation
-
-
Method Details
-
getIndex
public int getIndex()Returns the index of sequence position- Returns:
- index of sequence position
-
setIndex
public void setIndex(int index) Sets the index of sequence position- Parameters:
index
- index of sequence position
-
getAnnotation
Returns the annotation of sequence position- Returns:
- annotation of sequence position
-
setAnnotation
Sets the annotation of sequence position- Parameters:
annotation
- annotation of sequence position
-
getResidueType
Returns the residue type of sequence position- Returns:
- residue type of sequence position
-
setResidueType
Sets the residue type of sequence position- Parameters:
residueType
- residue type of sequence position
-
clone
Returns an identical SequencePosition object -
equals
Returns true if the two sequence positions are identical -
hashCode
public int hashCode()Returns hash code -
toString
Returns the String representation of sequence position
-