edu.ufl.hcs.ppw.pdm.highlevel.ExperimentSet Class Reference

Class to represent a set of loaded experiments, to be used by all cross-experiment analyses. More...

Inheritance diagram for edu.ufl.hcs.ppw.pdm.highlevel.ExperimentSet:

edu.ufl.hcs.ppw.gui.SetTreeModel

List of all members.

Public Member Functions

 ExperimentSet (int defaultAggregationMethod)
 Creates a new instance of ExperimentSet, using the specified aggregation method as the default when calling addDataFile().
void setAggregationMethod (int newAggregationMethod)
 Sets a new aggregation method, updating all loaded PDMs.
boolean isFileLoaded (String fileOrURL, String revision)
 Determines whether the given file is currently loaded in the experiment set.
boolean isPDMinRevision (HighLevelPDM pdm, String revision)
 Determines whether or not the given high-level PDM is in the specified revision.
void renameRevision (String oldRev, String newRev)
 Renames a revision.
boolean hasRevision (String revision)
 Returns true if a revision exists.
void moveDataFile (int oldRow, String oldRevision, int newRow, String newRevision)
 >>>>>>> .r743 Move a data file between two revisions or change its order within a revision.
int addDataFile (PARFile par, String revision)
 Adds a data file to the current set, with the specified revision string attached to it.
void addEmptyRevision (String revision)
 Creates an empty revision.
int getDataSetSize ()
 Returns # of data files in entire set, including all revisions.
PARFile getExperiment (int index)
 Gets a particular experiment instance, where the index is in the range [0, getDataSetSize()].
String[] getAllRevisions ()
 Returns a String array of the names of all revisions in this set.
int getRevisionCount ()
 Returns number of revisions.
int getDataSetSize (String revision)
 Returns # of data files in set of specified revision.
PARFile getExperiment (String revision, int index)
 Gets a particular experiment instance, where the index is in the range [0, getDataSetSize(revision)].
void remove (String revision, PARFile file)
 Removes a given file from a particular revision.
void removeAll (String revision)
 Removes all files from a particular revision.
void removeAll ()
 Clears out any loaded data files.
int getAggregationMethod ()
 Returns the aggregation method currently being used.

Package Functions

void addDataFile (PARFile par, String revision, int index)

Package Attributes

ArrayList allExperiments
ArrayList revisions
HashMap map
int defaultAggregationMethod


Detailed Description

Class to represent a set of loaded experiments, to be used by all cross-experiment analyses.

Right now this class is really simple, but it will be a good place to stuff any code that operates on multiple data files that might be useful across visualizations & analyses.

The "revision" nonsense is a way for users to specify multiple versions of their code so they can see how any code changes resulted in better performance.

Some notes on thread safety and sharing safety: it is be the responsibility of the visualization manager to notify each visualization about any changes to the result set, and to do this in a thread-safe way. Specifically, if the vis manager changes the experiment set while another analysis is running that does cross-experiment analyses, the vis manager should either wait until that analysis is done, or kill off that analysis.

Author:
Adam Leko

Member Function Documentation

int edu.ufl.hcs.ppw.pdm.highlevel.ExperimentSet.addDataFile ( PARFile  par,
String  revision 
)

Adds a data file to the current set, with the specified revision string attached to it.

Returns the index of the data file in the list of all experiments.

Reimplemented in edu.ufl.hcs.ppw.gui.SetTreeModel.

void edu.ufl.hcs.ppw.pdm.highlevel.ExperimentSet.renameRevision ( String  oldRev,
String  newRev 
)

Renames a revision.

Reimplemented in edu.ufl.hcs.ppw.gui.SetTreeModel.


The documentation for this class was generated from the following file:

Generated on Sat Sep 29 08:46:42 2012 for PPW by  doxygen 1.5.8