edu.iastate.metnet.dao
Class MetnetBlockUnit

java.lang.Object
  extended by edu.iastate.metnet.dao.MetnetBlockUnit
All Implemented Interfaces:
IMetnetBlockUnit, java.io.Serializable
Direct Known Subclasses:
MetnetInteraction, MetnetLiveEntity, MetnetPathway

public abstract class MetnetBlockUnit
extends java.lang.Object
implements IMetnetBlockUnit, java.io.Serializable

general node in the graph

Since:
6/19/04
Author:
Jie Li
See Also:
Serialized Form

Field Summary
protected  Blockunit blockunit
          always the latest version for user interface
protected  Blockunit buffer
          store the original copy for reloaded user interface
protected  int ID
          any identify to make the node unique in the pathway graph, normally this will be blockid
(package private) static org.apache.log4j.Logger logger
          log4j facility
 
Constructor Summary
MetnetBlockUnit()
          default constuctor
MetnetBlockUnit(Blockunit blockunit)
          default constructor when the blockunit is known
 
Method Summary
 java.lang.String getAracycID()
           
 Blockunit getBlockunit()
          get the blockunit, can be changed in the user interface
 Blockunit getBuffer()
          get the buffered blockunit, never touched for comparison when things are being saved
 java.lang.String getDate()
           
 java.lang.Integer getId()
          same as getID() but return object
 int getID()
          get the identity in the pathway graph
 java.lang.String getLocation()
           
 java.lang.String getName()
          get the name
 java.lang.String getOrganism()
           
 java.lang.String getSource()
           
 java.lang.String getType()
           
 java.lang.String getUsername()
           
abstract  boolean isPropertyChanged()
          detect if the content is changed, for the interaction, it means the properties, not the structure
 void setBlockunit(Blockunit blockunit)
          set the blockunit
 void setID(int ID)
          set the identity
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

static org.apache.log4j.Logger logger
log4j facility


buffer

protected Blockunit buffer
store the original copy for reloaded user interface


blockunit

protected Blockunit blockunit
always the latest version for user interface


ID

protected int ID
any identify to make the node unique in the pathway graph, normally this will be blockid

Constructor Detail

MetnetBlockUnit

public MetnetBlockUnit()
default constuctor


MetnetBlockUnit

public MetnetBlockUnit(Blockunit blockunit)
default constructor when the blockunit is known

Parameters:
blockunit - the blockunit
Method Detail

getID

public int getID()
Description copied from interface: IMetnetBlockUnit
get the identity in the pathway graph

Specified by:
getID in interface IMetnetBlockUnit
Returns:
the identity

getId

public java.lang.Integer getId()
Description copied from interface: IMetnetBlockUnit
same as getID() but return object

Specified by:
getId in interface IMetnetBlockUnit
Returns:
the id object

setID

public void setID(int ID)
Description copied from interface: IMetnetBlockUnit
set the identity

Specified by:
setID in interface IMetnetBlockUnit

getName

public java.lang.String getName()
Description copied from interface: IMetnetBlockUnit
get the name

Specified by:
getName in interface IMetnetBlockUnit
Returns:
the name of the blockunit

getOrganism

public java.lang.String getOrganism()

getLocation

public java.lang.String getLocation()

getUsername

public java.lang.String getUsername()

getDate

public java.lang.String getDate()

getAracycID

public java.lang.String getAracycID()

getSource

public java.lang.String getSource()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getType

public java.lang.String getType()

getBlockunit

public Blockunit getBlockunit()
Description copied from interface: IMetnetBlockUnit
get the blockunit, can be changed in the user interface

Specified by:
getBlockunit in interface IMetnetBlockUnit
Returns:
Returns the blockunit.

setBlockunit

public void setBlockunit(Blockunit blockunit)
Description copied from interface: IMetnetBlockUnit
set the blockunit

Specified by:
setBlockunit in interface IMetnetBlockUnit
Parameters:
blockunit - The blockunit to set.

getBuffer

public Blockunit getBuffer()
get the buffered blockunit, never touched for comparison when things are being saved

Specified by:
getBuffer in interface IMetnetBlockUnit
Returns:
the buffered blockunit

isPropertyChanged

public abstract boolean isPropertyChanged()
Description copied from interface: IMetnetBlockUnit
detect if the content is changed, for the interaction, it means the properties, not the structure

Specified by:
isPropertyChanged in interface IMetnetBlockUnit
Returns:
true if changed, false if not