de.zimek.proteinfeatures.protein
Class Protein

java.lang.Object
  extended byde.zimek.proteinfeatures.protein.Protein

public class Protein
extends java.lang.Object

Author:
Arthur Zimek

Field Summary
private  char[] as
           
private  java.lang.String astralID
           
private  ID id
           
private  char[] ss
           
 
Constructor Summary
Protein(java.lang.String astralID, ID id, java.lang.String aminoAcidSequence, java.lang.String secondaryStructureSequence)
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares this Protein with another Object which is supposed to be a Protein also.
 char[] getAS()
           
 java.lang.String getAstralID()
           
 ID getID()
           
 char[] getSS()
          Returns the secondary structure.
 int hashCode()
          Returns the hashCode for this Object which is equal to the hashCode for the astralID-String.
 int length()
          Returns the length of the aminoacid sequence.
 java.lang.String lowerCaseASSequence()
          Returns the aminoacid-sequence as a String of lowercase letters.
 void setCathID(java.lang.String cathID)
          Sets the id as CathID
 void setScopID(java.lang.String scopID)
          Sets the id as ScopID.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

astralID

private java.lang.String astralID

id

private ID id

as

private char[] as

ss

private char[] ss
Constructor Detail

Protein

public Protein(java.lang.String astralID,
               ID id,
               java.lang.String aminoAcidSequence,
               java.lang.String secondaryStructureSequence)
Method Detail

equals

public boolean equals(java.lang.Object o)
Compares this Protein with another Object which is supposed to be a Protein also.

Returns:
true, if the astralIDs of the given Protein equals this astralID, false otherwise
See Also:
Object.equals(Object)

hashCode

public int hashCode()
Returns the hashCode for this Object which is equal to the hashCode for the astralID-String.

See Also:
Object.hashCode()

length

public int length()
Returns the length of the aminoacid sequence.

Returns:
int the length of the aminoacid sequence

getAS

public char[] getAS()
Returns:
char[]

getAstralID

public java.lang.String getAstralID()
Returns:
String

getID

public ID getID()
Returns:
String

getSS

public char[] getSS()
Returns the secondary structure.

Returns:
char[] the secondary structure

setScopID

public void setScopID(java.lang.String scopID)
Sets the id as ScopID.

Parameters:
scopID - The scopID to set

setCathID

public void setCathID(java.lang.String cathID)
Sets the id as CathID

Parameters:
cathID -

lowerCaseASSequence

public java.lang.String lowerCaseASSequence()
Returns the aminoacid-sequence as a String of lowercase letters.

Returns:
String the aminoacid-sequence as a String of lowercase letters