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.CloneableObjects 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.Objectclone()Returns an identical SequencePosition objectbooleanequals(java.lang.Object other)Returns true if the two sequence positions are identicaljava.lang.StringgetAnnotation()Returns the annotation of sequence positionintgetIndex()Returns the index of sequence positionResidueTypegetResidueType()Returns the residue type of sequence positioninthashCode()Returns hash codevoidsetAnnotation(java.lang.String annotation)Sets the annotation of sequence positionvoidsetIndex(int index)Sets the index of sequence positionvoidsetResidueType(ResidueType residueType)Sets the residue type of sequence positionjava.lang.StringtoString()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:
clonein 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:
equalsin classjava.lang.Object- Parameters:
other- the other sequence position
-
hashCode
public int hashCode()
Returns hash code- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
Returns the String representation of sequence position- Overrides:
toStringin classjava.lang.Object- Returns:
- String representation
-
-