edu.mssm.crover.representation
Class Disulfide_Annotation

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

public class Disulfide_Annotation
extends Annotation

Annotates disulfide bridges.

Author:
Fabien Campagne
See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.mssm.crover.representation.Annotation
origin
 
Constructor Summary
Disulfide_Annotation(BiologicalOrigin origin, java.lang.String type_of)
           
Disulfide_Annotation(java.lang.String type_of)
          Constructs a new Disulfide annotation.
 
Method Summary
 boolean describesResidue(int position)
          Returns whether the position is described by this annotation.
 int getFirstResidue()
          Get the index of the first residue of the bridge.
 java.lang.String getInfo()
          This annotation describes a "disulfide bridge".
 int getSecondResidue()
          Get the index of the second residue of the bridge.
 java.lang.String getTypeOf()
          Get the type of this domain, as a descriptive text.
 void setFirstResidue(int res)
          Set the index of the first residue of the bridge.
 void setSecondResidue(int res)
          Set the index of the second residue of the bridge.
 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

Disulfide_Annotation

public Disulfide_Annotation(java.lang.String type_of)
Constructs a new Disulfide annotation.


Disulfide_Annotation

public Disulfide_Annotation(BiologicalOrigin origin,
                            java.lang.String type_of)
Method Detail

getTypeOf

public java.lang.String getTypeOf()
Get the type of this domain, as a descriptive text.


getInfo

public java.lang.String getInfo()
This annotation describes a "disulfide bridge".

Specified by:
getInfo in interface BiologicalAnnotation
Specified by:
getInfo in class Annotation

getFirstResidue

public int getFirstResidue()
Get the index of the first residue of the bridge.


setFirstResidue

public void setFirstResidue(int res)
Set the index of the first residue of the bridge.


getSecondResidue

public int getSecondResidue()
Get the index of the second residue of the bridge.


setSecondResidue

public void setSecondResidue(int res)
Set the index of the second residue of the bridge.


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 when position is the position of the first or second residue of the bridge.


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