edu.iastate.metnet.dao
Class CategoryNode

java.lang.Object
  extended by edu.iastate.metnet.dao.CategoryNode
All Implemented Interfaces:
java.io.Serializable

public class CategoryNode
extends java.lang.Object
implements java.io.Serializable

store the node in category graph

Author:
Jie Li
See Also:
Serialized Form

Field Summary
(package private)  java.lang.Integer classId
          class id if this is a class
(package private)  java.lang.String name
          class name or pathway name
(package private)  java.lang.Integer pbid
          blockid of the pathway if this is a pathway
(package private)  java.lang.Integer recordId
          unique id in the graph
(package private)  java.lang.String type
          type, either class or pathway, we will not inherit the node type any more
 
Constructor Summary
CategoryNode(java.lang.Integer recordId, java.lang.String type)
          default constructor
 
Method Summary
 java.lang.Integer getClassId()
           
 java.lang.String getName()
           
 java.lang.Integer getPbid()
           
 java.lang.Integer getRecordId()
           
 java.lang.String getType()
           
 void setClassId(java.lang.Integer classId)
           
 void setName(java.lang.String name)
           
 void setPbid(java.lang.Integer pbid)
           
 void setRecordId(java.lang.Integer recordId)
           
 void setType(java.lang.String type)
           
 java.lang.String toString()
          control the representation in the graph
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

recordId

java.lang.Integer recordId
unique id in the graph


classId

java.lang.Integer classId
class id if this is a class


pbid

java.lang.Integer pbid
blockid of the pathway if this is a pathway


type

java.lang.String type
type, either class or pathway, we will not inherit the node type any more


name

java.lang.String name
class name or pathway name

Constructor Detail

CategoryNode

public CategoryNode(java.lang.Integer recordId,
                    java.lang.String type)
default constructor

Parameters:
recordId - unique id in the category graph
Method Detail

getClassId

public java.lang.Integer getClassId()
Returns:
the classId

setClassId

public void setClassId(java.lang.Integer classId)
Parameters:
classId - the classId to set

getName

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

setName

public void setName(java.lang.String name)
Parameters:
name - the name to set

getPbid

public java.lang.Integer getPbid()
Returns:
the pbid

setPbid

public void setPbid(java.lang.Integer pbid)
Parameters:
pbid - the pbid to set

getRecordId

public java.lang.Integer getRecordId()
Returns:
the recordId

setRecordId

public void setRecordId(java.lang.Integer recordId)
Parameters:
recordId - the recordId to set

getType

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

setType

public void setType(java.lang.String type)
Parameters:
type - the type to set

toString

public java.lang.String toString()
control the representation in the graph

Overrides:
toString in class java.lang.Object