edu.isi.pegasus.planner.visualize
Class WorkflowMeasurements

java.lang.Object
  extended by edu.isi.pegasus.planner.visualize.WorkflowMeasurements

public class WorkflowMeasurements
extends Object

A container object that stores the measurements for each site on which the workflow was executed.

Version:
$Revision: 2564 $
Author:
Karan Vahi

Field Summary
private  Map mStore
          The map that stores the list of Measurement indexed by site name.
 
Constructor Summary
WorkflowMeasurements()
          The default constructor.
 
Method Summary
 void addMeasurement(String site, Measurement record)
          Add a Measurement to the store.
 List getMeasurements(String site)
          Returns the list of Measurement objects corresponding to a particular site.
 Iterator siteIterator()
          Returns an iterator to list of String site identifiers for which data is available.
 void sort()
          Sorts the records for each site.
 String toString()
          Returns textual description of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mStore

private Map mStore
The map that stores the list of Measurement indexed by site name.

Constructor Detail

WorkflowMeasurements

public WorkflowMeasurements()
The default constructor.

Method Detail

siteIterator

public Iterator siteIterator()
Returns an iterator to list of String site identifiers for which data is available.

Returns:
Iterator

getMeasurements

public List getMeasurements(String site)
Returns the list of Measurement objects corresponding to a particular site.

Parameters:
site - the site for which Measurements are required.
Returns:
List

addMeasurement

public void addMeasurement(String site,
                           Measurement record)
Add a Measurement to the store.

Parameters:
site - the site for which the record is logged.
record - the Measurement record.

sort

public void sort()
Sorts the records for each site.


toString

public String toString()
Returns textual description of the object.

Overrides:
toString in class Object
Returns:
the textual description


Copyright © 2011 The University of Southern California. All Rights Reserved.