edu.iris.Fissures.seed.container
Class SeedObject

java.lang.Object
  extended by edu.iris.Fissures.seed.container.SeedObject
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable
Direct Known Subclasses:
Blockette, Btime, SeedObjectProxy, Waveform

public abstract class SeedObject
extends java.lang.Object
implements java.lang.Comparable, java.io.Serializable

Abstract class for all SEED object entities. This abstract class represents properties that are common among all of the SeedObjects.

Version:
10/23/2002
Author:
Robert Casey (IRIS DMC)
See Also:
Serialized Form

Constructor Summary
SeedObject()
           
 
Method Summary
 int compareTo(java.lang.Object o)
          Compare and sort SeedObjects relative to each other.
abstract  int getLookupId()
          Each SEED object should have a unique Lookup ID if they are to be distinguished uniquely from one another.
abstract  int getType()
          Return a number that represents the type of SeedObject this is.
abstract  java.lang.String toString()
          Express the contents of this SeedObject as a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SeedObject

public SeedObject()
Method Detail

getType

public abstract int getType()
Return a number that represents the type of SeedObject this is. Blockette's, for instance, return their Blockette type number.


toString

public abstract java.lang.String toString()
Express the contents of this SeedObject as a String.

Overrides:
toString in class java.lang.Object

getLookupId

public abstract int getLookupId()
Each SEED object should have a unique Lookup ID if they are to be distinguished uniquely from one another.


compareTo

public int compareTo(java.lang.Object o)
              throws java.lang.ClassCastException
Compare and sort SeedObjects relative to each other. Implements the Comparable interface. SeedObjects will compare their lookup ID's.

Specified by:
compareTo in interface java.lang.Comparable
Throws:
java.lang.ClassCastException