edu.iastate.metnet.birdseyeview
Class Protein

java.lang.Object
  extended by edu.iastate.metnet.birdseyeview.Protein
Direct Known Subclasses:
Polypeptide, ProteinComplex

public abstract class Protein
extends java.lang.Object

The Protein class is an abstract class that encapsulates the name, metnet entity ID, and type of a protein. Subclasses are the types of protein.

Author:
Matt Studham Created September 18, 2005

Constructor Summary
Protein(java.lang.Integer id, java.lang.String n, java.lang.String t)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object o)
          This method overrides the Object.equals method to explicitly show equality for proteins.
 java.lang.Integer getEntityID()
          Returns the entityID.
 java.lang.String getName()
          Returns the name.
 java.lang.String getType()
          Returns the type.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Protein

public Protein(java.lang.Integer id,
               java.lang.String n,
               java.lang.String t)
Constructor.

Parameters:
id -
n -
t -
Method Detail

equals

public boolean equals(java.lang.Object o)
This method overrides the Object.equals method to explicitly show equality for proteins.

Overrides:
equals in class java.lang.Object
Parameters:
o - Another Protein object
Returns:
boolean

getEntityID

public java.lang.Integer getEntityID()
Returns the entityID.

Returns:
Integer

getName

public java.lang.String getName()
Returns the name.

Returns:
String

getType

public java.lang.String getType()
Returns the type.

Returns:
String