|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.peace_tools.workspace.MSTData
public class MSTData
This class encapsulates all the data necessary to use a given Minimum Spanning Tree (MST) data file. A MST data file essentially contains the MST structure with closely related ESTs on the same subtree of the MST. Constructing the MST is the most computationally intensive part of the clustering algorithm supported by PEACE. This element contains meta data about the MST file. The MSTData class is created each time a new Job is run to build a MST on a given EST data set. The EST data is the primary input from which the MST 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.
Nested Class Summary | |
---|---|
static class |
MSTData.MSTBuilderType
Different enumerations defining the different approaches that PEACE currently supports for building a MST. |
Field Summary | |
---|---|
private FWAnalyzer |
analyzer
Information about the distance/similarity analyzer that was used to create this MST data set. |
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. |
protected java.lang.String |
id
The unique generated data set ID value for this data. |
private JobSummary |
jobSummary
The core/useful information about the job that was run to compute the MST. |
private java.lang.String |
path
The path to the actual MST file (on the local machine) that is referred by this entry. |
private MSTData.MSTBuilderType |
type
The type of MST building approach supported by PEACE that was used to obtain the MST referred by this class. |
Constructor Summary | |
---|---|
MSTData(java.lang.String id,
MSTData.MSTBuilderType type,
java.lang.String path,
java.lang.String description,
FWAnalyzer analyzer,
JobSummary summary)
The constructor to create a fully populated MSTData object that contains all the meta data regarding a MST file that has been generated from a given EST file. |
Method Summary | |
---|---|
static MSTData |
create(org.w3c.dom.Element mstData)
Helper method to utilize data from a DOM tree to create a suitable MSTData 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. |
FWAnalyzer |
getFWAnalyzer()
Obtain meta data about the frame/word analyzer that was used to generate metrics (may it be similarity or distance values) that were used to build the MST. |
java.lang.String |
getID()
Obtain the work space wide unique identifier set for this data set. |
JobSummary |
getJobSummary()
Obtain meta data about the job that was run to generate the MST. |
java.lang.String |
getPath()
Obtain the complete file name and path where the actual MST file is located. |
java.lang.String |
getSummary(java.lang.String indent)
Provides a textual multi-line summary for this element. |
MSTData.MSTBuilderType |
getType()
The type of MST building approach supported by PEACE that was used to obtain the MST referred by this class. |
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 MST 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 DataSet dataSet
protected final java.lang.String id
private final MSTData.MSTBuilderType type
private final java.lang.String path
private final java.lang.String description
private final FWAnalyzer analyzer
private JobSummary jobSummary
Constructor Detail |
---|
public MSTData(java.lang.String id, MSTData.MSTBuilderType type, java.lang.String path, java.lang.String description, FWAnalyzer analyzer, JobSummary summary)
id
- The unique generated data set ID value for this data.type
- he type of MST building approach supported by PEACE that was
used to obtain the MST referred by this class.path
- The path to the actual MST file (on the local machine) that is
referred by this entry.description
- A user defined description for this file.analyzer
- Information about the distance/similarity analyzer that was
used to create this MST data set.summary
- The core/useful information about the job that was run to
compute the MST.Method Detail |
---|
public static MSTData create(org.w3c.dom.Element mstData) throws java.lang.Exception
mstData
- The DOM element to be used for creating the MSTData
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 MSTData.MSTBuilderType getType()
public java.lang.String getPath()
public java.lang.String getDescription()
public FWAnalyzer getFWAnalyzer()
public JobSummary getJobSummary()
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 getSummary(java.lang.String indent)
indent
- The leading spaces to be used for indenting each
line. This parameter cannnot be null.
public java.lang.String toCmdLine()
public java.lang.String toString()
toString
in class java.lang.Object
protected void setDataSet(DataSet dataSet)
Note: This method is used by the DataSet. Use
DataSet.add(MSTData)
method to add a MSTData object
to a data set.
dataSet
- The data set to which this object has been added.public DataSet getDataSet()
public void updateJobSummary(Job job)
job
- The job from where the necessary information is
to be copied.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |