|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.peace_tools.workspace.DataSet
public class DataSet
The top-level data set that encapsulates the meta data regarding data files that are all related to a single EST file. The objective of this organization is to minimize data redundancy. Typically a single EST data file is analyzed multiple times in order to determine a suitable clustering. This scheme (that is centered around the primary EST data file) is meant to reflect the practical use of these files and work with them.
Field Summary | |
---|---|
private java.util.ArrayList<MSTClusterData> |
clusterList
The optional list of clustering data files that are currently associated with this data set. |
private java.lang.String |
description
A user defined description for this EST data file. |
private java.lang.String |
id
The unique generated data set ID value for this data. |
private java.util.ArrayList<MSTData> |
mstList
The optional list of MST data files that are currently associated with this data set. |
private java.lang.String |
path
The complete path to the actual EST file on the local machine. |
Constructor Summary | |
---|---|
DataSet(java.lang.String id,
java.lang.String path,
java.lang.String description)
Constructor to create a Data Set entry. |
Method Summary | |
---|---|
void |
add(MSTClusterData cluster)
Add a new MST-based clustering data file to this data set. |
void |
add(MSTData mstData)
Add a new Minimum Spanning Tree (MST) data file to this data set. |
static DataSet |
create(org.w3c.dom.Element data)
Helper method to utilize data from a DOM tree to create a suitable DataSet entry. |
MSTClusterData |
getClusterData(java.lang.String jobID)
Obtain the MSTClusterData entry for a given job ID. |
java.util.ArrayList<MSTClusterData> |
getClusterList()
Obtain the list of clustering data files encapsulated by this data set. |
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 data set. |
MSTData |
getMSTData(java.lang.String jobID)
Obtain the MSTData entry for a given job ID. |
java.util.ArrayList<MSTData> |
getMSTList()
Obtain the list of MST data files encapsulated by this data set. |
java.lang.String |
getPath()
Obtain the complete file name and path where the actual EST file is located. |
void |
marshall(org.w3c.dom.Element workspace)
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. |
void |
remove(MSTClusterData cluster)
Remove an existing MST-based clustering data file from this data set. |
void |
remove(MSTData mstData)
Remove an existing Minimum Spanning Tree (MST) data file from this data set. |
void |
setDescription(java.lang.String desc)
Set an user supplied description for this this data. |
void |
setID(java.lang.String id)
Set the workspace-wide ID for this DataSet. |
void |
setPath(java.lang.String path)
Set the complete file name and path where the actual EST file is located. |
java.lang.String |
toString()
Overrides the default implementation in the base class to simply return the last part of the EST file associated with this data set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.util.ArrayList<MSTData> mstList
private java.util.ArrayList<MSTClusterData> clusterList
private java.lang.String path
private java.lang.String description
private java.lang.String id
Constructor Detail |
---|
public DataSet(java.lang.String id, java.lang.String path, java.lang.String description)
id
- The workspace-wide unique ID to be set for this data
set. This ID must be obtained via a call to Workspace.reserveID().path
- The path to the actual EST file (on the local machine) that is
referred by this entry.description
- A user defined description for the EST data file.Method Detail |
---|
public static DataSet create(org.w3c.dom.Element data) throws java.lang.Exception
data
- The DOM element to be used for creating the DataSet
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 getPath()
public void setPath(java.lang.String path)
path
- The complete file name and path to the EST FASTA file.public java.lang.String getDescription()
public java.lang.String getID()
public void setID(java.lang.String id)
id
- The new ID to be set for this entry. This value is obtained
via a call to Workspace.reserveID() method.public void setDescription(java.lang.String desc)
desc
- The user supplied description set for this EST file.public java.util.ArrayList<MSTData> getMSTList()
public java.util.ArrayList<MSTClusterData> getClusterList()
public MSTData getMSTData(java.lang.String jobID)
jobID
- The ID of the job for which the MST data is to be
searched and retrieved.
public MSTClusterData getClusterData(java.lang.String jobID)
jobID
- The ID of the job for which the cluster entry
is to be searched and retrieved.
public final void marshall(org.w3c.dom.Element workspace)
workspace
- The DOM element corresponding to the "Workspace"
node that contains this entry.public final void marshall(java.io.PrintWriter out)
out
- The stream to which the XML must be serialized.public void add(MSTData mstData)
Note: This method reports the newly added MSTData entry to all workspace listeners by firing a suitable event.
mstData
- The new MSTData entry to be added to this
data set.public void remove(MSTData mstData)
Note: This method reports the removed MSTData entry to all workspace listeners by firing a suitable event.
mstData
- The MSTData entry to be removed from this data set.public void add(MSTClusterData cluster)
Note: This method reports the newly added entry to all workspace listeners by firing a suitable event.
cluster
- The new clustering entry to be added to this
data set.public void remove(MSTClusterData cluster)
Note: This method reports the removed cluster entry to all work space listeners by firing a suitable event.
cluster
- The cluster entry to be removed from this
data set.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |