edu.mssm.crover.representation
Class Mutation_Annotation

java.lang.Object
  |
  +--edu.mssm.crover.representation.Annotation
        |
        +--edu.mssm.crover.representation.Mutation_Annotation
All Implemented Interfaces:
BiologicalAnnotation, RootObject, java.io.Serializable

public class Mutation_Annotation
extends Annotation

Annotates ponctual mutations. See the origin of the annotation for more detail about the mutation. This class only support for URL documents. There is no model of the mutation so there is no way to search for all the mutations that transformed residues to cysteine (for instance).

Author:
Fabien Campagne
See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.mssm.crover.representation.Annotation
origin
 
Constructor Summary
Mutation_Annotation()
           
 
Method Summary
 boolean describesResidue(int position)
          Returns whether the position is described by this annotation.
 java.lang.String getInfo()
          Returns a consise text that describes the nature of this annotation.
 java.net.URL getInformation()
          Get the URL od the document that describes this mutation.
 java.lang.Integer getResidueNumber()
          Get the index of the residue which is described by this mutation.
 void setInformation(java.net.URL u)
          Set the URL od the document that describes this mutation.
 void setResidueNumber(java.lang.Integer res)
          Set the index of the residue which is described by this mutation.
 java.lang.String toString()
           
 
Methods inherited from class edu.mssm.crover.representation.Annotation
getOrigin, setOrigin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Mutation_Annotation

public Mutation_Annotation()
Method Detail

getResidueNumber

public java.lang.Integer getResidueNumber()
Get the index of the residue which is described by this mutation.


setResidueNumber

public void setResidueNumber(java.lang.Integer res)
Set the index of the residue which is described by this mutation.


getInformation

public java.net.URL getInformation()
Get the URL od the document that describes this mutation.


setInformation

public void setInformation(java.net.URL u)
Set the URL od the document that describes this mutation.


getInfo

public java.lang.String getInfo()
Description copied from interface: BiologicalAnnotation
Returns a consise text that describes the nature of this annotation. This text is constant over several instances of the same class.

Specified by:
getInfo in interface BiologicalAnnotation
Specified by:
getInfo in class Annotation
Returns:
"mutation".

toString

public java.lang.String toString()
Overrides:
toString in class Annotation

describesResidue

public boolean describesResidue(int position)
Description copied from interface: BiologicalAnnotation
Returns whether the position is described by this annotation.

Returns:
True if position==getResidueNumber(), False otherwise.


Copyright @ 2003 Mount Sinai School of Medicine. All Rights Reserved.