org.rosuda.klimt
Class DataRoot

java.lang.Object
  extended by org.rosuda.klimt.DataRoot

public class DataRoot
extends java.lang.Object

DataRoot is an object associated with each data set. It contains meta information of the data


Field Summary
static int DT_Forest
          Dataset type constant: forest data. this changes linking behavior
static int DT_Regular
          Dataset type constant: regular dataset
 
Constructor Summary
DataRoot(SVarSet ds)
          create a new data root with a new (empty) tree resistry and data type DT_Regular
DataRoot(SVarSet ds, TreeRegistry tr, int dataType)
           
 
Method Summary
 SVarSet getDataSet()
          retrieves associated dataset
 int getDataType()
          returns data type of this data set
 NodeMarker getNodeMarker()
           
 TreeRegistry getTreeRegistry()
          retrieves associated tree registry
 void setDataType(int dataType)
          override data type (e.g. when new meta data was added)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DT_Regular

public static final int DT_Regular
Dataset type constant: regular dataset

See Also:
Constant Field Values

DT_Forest

public static final int DT_Forest
Dataset type constant: forest data. this changes linking behavior

See Also:
Constant Field Values
Constructor Detail

DataRoot

public DataRoot(SVarSet ds,
                TreeRegistry tr,
                int dataType)

DataRoot

public DataRoot(SVarSet ds)
create a new data root with a new (empty) tree resistry and data type DT_Regular

Method Detail

getTreeRegistry

public TreeRegistry getTreeRegistry()
retrieves associated tree registry

Returns:
tree registry

getDataSet

public SVarSet getDataSet()
retrieves associated dataset

Returns:
dataset

getDataType

public int getDataType()
returns data type of this data set


setDataType

public void setDataType(int dataType)
override data type (e.g. when new meta data was added)

Parameters:
dataType - new data type

getNodeMarker

public NodeMarker getNodeMarker()