edu.mssm.crover.representation
Class SequenceOrigin_Annotation

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

public class SequenceOrigin_Annotation
extends Annotation

This annotation describes the origin of the sequence itself. Does this sequence comes from SwissProt, PIR, Genbank, EMBL, TrEMBL, etc.. ? This annotation is only present when a valid Origin can be constructed. This means that the accesion code and Database must be known for this annotation to be attached to an AnnotatedBioSequence.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.mssm.crover.representation.Annotation
origin
 
Constructor Summary
SequenceOrigin_Annotation(BiologicalOrigin so)
           
 
Method Summary
 boolean describesResidue(int position)
          This annotation does not describe independant residues.
 java.lang.String getInfo()
          Returns a consise text that describes the nature of this annotation.
 BiologicalOrigin getSequenceOrigin()
          Returns the origin that describes from where this sequence was obtained.
 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

SequenceOrigin_Annotation

public SequenceOrigin_Annotation(BiologicalOrigin so)
Method Detail

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:
"origin of this sequence".

getSequenceOrigin

public BiologicalOrigin getSequenceOrigin()
Returns the origin that describes from where this sequence was obtained.


toString

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

describesResidue

public boolean describesResidue(int position)
This annotation does not describe independant residues.

Returns:
False.


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