Package jgromacs.data
Class SequencePosition
- java.lang.Object
-
- jgromacs.data.SequencePosition
-
- All Implemented Interfaces:
java.lang.Cloneable
public class SequencePosition extends java.lang.Object implements java.lang.Cloneable
Objects of this class represent a single sequence position
-
-
Constructor Summary
Constructors Constructor Description SequencePosition()
Constructs a new SequencePosition objectSequencePosition(int index, java.lang.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, java.lang.String annotation)
Constructs a new SequencePosition object of given index, residue type and annotationSequencePosition(ResidueType residueType, java.lang.String annotation)
Constructs a new SequencePosition object of residue type and annotation
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
Returns an identical SequencePosition objectboolean
equals(java.lang.Object other)
Returns true if the two sequence positions are identicaljava.lang.String
getAnnotation()
Returns the annotation of sequence positionint
getIndex()
Returns the index of sequence positionResidueType
getResidueType()
Returns the residue type of sequence positionint
hashCode()
Returns hash codevoid
setAnnotation(java.lang.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 positionjava.lang.String
toString()
Returns the String representation of sequence position
-
-
-
Constructor Detail
-
SequencePosition
public SequencePosition()
Constructs a new SequencePosition object
-
SequencePosition
public SequencePosition(int index, ResidueType residueType)
Constructs a new SequencePosition object of given index and residue type- Parameters:
index
- indexresidueType
- residue type
-
SequencePosition
public SequencePosition(int index, java.lang.String annotation)
Constructs a new SequencePosition object of given index and annotation- Parameters:
index
- indexannotation
- annotation
-
SequencePosition
public SequencePosition(ResidueType residueType, java.lang.String annotation)
Constructs a new SequencePosition object of residue type and annotation- Parameters:
residueType
- residue typeannotation
- annotation
-
SequencePosition
public SequencePosition(int index, ResidueType residueType, java.lang.String annotation)
Constructs a new SequencePosition object of given index, residue type and annotation- Parameters:
index
- indexresidueType
- residue typeannotation
- annotation
-
-
Method Detail
-
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
public java.lang.String getAnnotation()
Returns the annotation of sequence position- Returns:
- annotation of sequence position
-
setAnnotation
public void setAnnotation(java.lang.String annotation)
Sets the annotation of sequence position- Parameters:
annotation
- annotation of sequence position
-
getResidueType
public ResidueType getResidueType()
Returns the residue type of sequence position- Returns:
- residue type of sequence position
-
setResidueType
public void setResidueType(ResidueType residueType)
Sets the residue type of sequence position- Parameters:
residueType
- residue type of sequence position
-
clone
public java.lang.Object clone()
Returns an identical SequencePosition object- Overrides:
clone
in classjava.lang.Object
- Returns:
- clone of the sequence position
-
equals
public boolean equals(java.lang.Object other)
Returns true if the two sequence positions are identical- Overrides:
equals
in classjava.lang.Object
- Parameters:
other
- the other sequence position
-
hashCode
public int hashCode()
Returns hash code- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
Returns the String representation of sequence position- Overrides:
toString
in classjava.lang.Object
- Returns:
- String representation
-
-