|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.peace_tools.workspace.MSTClusterData
public class MSTClusterData
This class encapsulates all the data necessary to use a given clustering information generated from a Spanning Tree (MST) data file. This element contains meta data about the MST file. The MSTClusterData class is created each time a new Job is run to cluster based on a given MST data set. The MST data is the primary input from which the cluster data is derived.
In addition to encapsulating the data this class also provides convenient interfaces for marshalling and unmarshalling XML data compatible with the PEACE GUI configuration XML file format.
Field Summary | |
---|---|
private DataSet |
dataSet
Reference to the data set that logically contains this MSTData element. |
private java.lang.String |
description
A user defined description for this file. |
private java.lang.String |
id
The unique generated ID value for this entry. |
private JobSummary |
jobSummary
The core/useful information about the job that was run to compute the MST. |
protected java.lang.String |
mstID
The unique value for the MSTData entry based on which this cluster data was generated. |
private java.lang.String |
path
The path to the actual MST file (on the local machine) that is referred by this entry. |
private int |
threshold
The threshold value used for cluster generating. |
Constructor Summary | |
---|---|
MSTClusterData(java.lang.String id,
java.lang.String mstID,
java.lang.String path,
java.lang.String description,
int threshold,
JobSummary summary)
The constructor to create a fully populated MSTClusterData object that contains all the meta data regarding a MST file that has been generated from a given EST file. |
Method Summary | |
---|---|
static MSTClusterData |
create(org.w3c.dom.Element clstrData)
Helper method to utilize data from a DOM tree to create a suitable MSTClusterData entry. |
DataSet |
getDataSet()
Obtain the data set that logically contains this MST Data. |
java.lang.String |
getDescription()
Obtain the user supplied description for this this data. |
java.lang.String |
getID()
Obtain the work space wide unique identifier set for this entry. |
JobSummary |
getJobSummary()
Obtain meta data about the job that was run to generate the cluster. |
java.lang.String |
getMSTID()
Obtain the work space wide unique identifier set for this MST data set. |
java.lang.String |
getPath()
Obtain the complete file name and path where the actual cluster file is located. |
java.lang.String |
getSummary(java.lang.String indent)
Provides a textual multi-line summary for this element. |
int |
getThreshold()
The threshold value used for cluster generating. |
void |
marshall(org.w3c.dom.Element dataset)
Method to marshall the data stored in this object to become part of a DOM tree element passed in. |
void |
marshall(java.io.PrintWriter out)
Method to marshall the data stored in this object directly to a XML fragment. |
protected void |
setDataSet(DataSet dataSet)
Set the data set that this object logically belongs to. |
java.lang.String |
toCmdLine()
Return the information in the form of a partial PEACE command line parameter. |
java.lang.String |
toString()
Overrides the default implementation in the base class to simply return the last part of the cluster file associated with this entry. |
void |
updateJobSummary(Job job)
Set revised updated information about the job associated with this MSTData entry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private transient DataSet dataSet
private java.lang.String id
protected final java.lang.String mstID
private final java.lang.String path
private final java.lang.String description
private final int threshold
private JobSummary jobSummary
Constructor Detail |
---|
public MSTClusterData(java.lang.String id, java.lang.String mstID, java.lang.String path, java.lang.String description, int threshold, JobSummary summary)
id
- The workspace wide unique ID associated with this
entry.mstID
- The unique MST data set ID value for this data.path
- The path to the actual cluster file (on the local machine) that is
referred by this entry.description
- A user defined description for this file.threshold
- The threshold value used to partition a MST.summary
- The core/useful information about the job that was run to
compute the MST.Method Detail |
---|
public static MSTClusterData create(org.w3c.dom.Element clstrData) throws java.lang.Exception
clstrData
- The DOM element to be used for creating the cluster
entry and populating with the needed data.
java.lang.Exception
- This method throws an exception when errors occur
during reading and processing elements from the DOM node.public java.lang.String getID()
public java.lang.String getMSTID()
public java.lang.String getPath()
public java.lang.String getDescription()
public JobSummary getJobSummary()
public int getThreshold()
public final void marshall(org.w3c.dom.Element dataset)
dataset
- The DOM element corresponding to the "DataSet"
node that contains this entry.public final void marshall(java.io.PrintWriter out)
out
- The stream to which the XML must be serialized.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toCmdLine()
public void updateJobSummary(Job job)
job
- The job from where the necessary information is
to be copied.protected void setDataSet(DataSet dataSet)
Note: This method is used by the DataSet. Use
DataSet.add(MSTClusterData)
method to add a
MSTClusterData
object to a data set.
dataSet
- The data set to which this object has been added.public DataSet getDataSet()
public java.lang.String getSummary(java.lang.String indent)
indent
- The leading spaces to be used for indenting each
line. This parameter cannot be null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |