dragon.matrix
Class AbstractCell

java.lang.Object
  |
  +--dragon.matrix.AbstractCell
All Implemented Interfaces:
Cell, java.lang.Comparable, java.io.Serializable
Direct Known Subclasses:
DoubleCell, IntCell

public abstract class AbstractCell
extends java.lang.Object
implements Cell, java.io.Serializable

Implements basic functions of interface--Cell such as resetting and comparing cell objects

Copyright: Copyright (c) 2005

Company: IST, Drexel University

Version:
1.0
Author:
Davis Zhou
See Also:
Serialized Form

Constructor Summary
AbstractCell()
           
 
Method Summary
 int compareTo(java.lang.Object obj)
           
 boolean getResetOption()
          If the reset option is true, the merge method replaces the cell score with the new score, otherwise adds the new score to the existing score.
 void setResetOption(boolean option)
          If the reset option is true, the merge method replaces the cell score with the new score, otherwise adds the new score to the existing score.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface dragon.matrix.Cell
fromByteArray, fromString, getByteScore, getColumn, getDoubleScore, getIntScore, getLongScore, getRow, merge, setByteScore, setDoubleScore, setIntScore, setLongScore, toByteArray, toString, transpose
 

Constructor Detail

AbstractCell

public AbstractCell()
Method Detail

getResetOption

public boolean getResetOption()
Description copied from interface: Cell
If the reset option is true, the merge method replaces the cell score with the new score, otherwise adds the new score to the existing score.

Specified by:
getResetOption in interface Cell
Returns:
the reset option

setResetOption

public void setResetOption(boolean option)
Description copied from interface: Cell
If the reset option is true, the merge method replaces the cell score with the new score, otherwise adds the new score to the existing score.

Specified by:
setResetOption in interface Cell
Parameters:
option - the reset option

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable