model
Class FuncResidueImpl

java.lang.Object
  extended by model.FuncResidueImpl
All Implemented Interfaces:
FuncResidue, java.lang.Comparable<FuncResidueImpl>

public class FuncResidueImpl
extends java.lang.Object
implements java.lang.Comparable<FuncResidueImpl>, FuncResidue

Implementation of the FuncResidue Interface.


Constructor Summary
FuncResidueImpl()
          Constructors
FuncResidueImpl(int position, char aa)
           
 
Method Summary
 int compareTo(FuncResidueImpl a)
          Compare function
 char getAa()
          Returns the letter of the amino acid.
 java.math.BigDecimal getCorrelation()
          Returns the correlation factor.
 java.math.BigDecimal getEntropy()
          Returns the sequence entropy factor.
 int getPosition()
          Returns the position of the amino acid.
 void setAa(char aa)
          Set the letter of the amino acid.
 void setCorrelation(java.math.BigDecimal correlation)
          Sets the correlation factor.
 void setEntropy(java.math.BigDecimal entropy)
          Set the sequence entropy factor.
 void setPosition(int position)
          Sets the position of the amino acid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FuncResidueImpl

public FuncResidueImpl()
Constructors


FuncResidueImpl

public FuncResidueImpl(int position,
                       char aa)
Method Detail

getPosition

public int getPosition()
Returns the position of the amino acid.

Specified by:
getPosition in interface FuncResidue
Returns:
Integer position

setPosition

public void setPosition(int position)
Sets the position of the amino acid.

Specified by:
setPosition in interface FuncResidue
Parameters:
position -

getAa

public char getAa()
Returns the letter of the amino acid.

Specified by:
getAa in interface FuncResidue
Returns:
Character aa

setAa

public void setAa(char aa)
Set the letter of the amino acid.

Specified by:
setAa in interface FuncResidue
Parameters:
aa -

getEntropy

public java.math.BigDecimal getEntropy()
Returns the sequence entropy factor.

Specified by:
getEntropy in interface FuncResidue
Returns:
BigDecimal entropy

setEntropy

public void setEntropy(java.math.BigDecimal entropy)
Set the sequence entropy factor.

Specified by:
setEntropy in interface FuncResidue
Parameters:
entropy -

getCorrelation

public java.math.BigDecimal getCorrelation()
Returns the correlation factor.

Specified by:
getCorrelation in interface FuncResidue
Returns:
BigDecimal correlation

setCorrelation

public void setCorrelation(java.math.BigDecimal correlation)
Sets the correlation factor.

Specified by:
setCorrelation in interface FuncResidue
Parameters:
correlation -

compareTo

public int compareTo(FuncResidueImpl a)
Compare function

Specified by:
compareTo in interface java.lang.Comparable<FuncResidueImpl>
Parameters:
correlation -