edu.isi.pegasus.planner.visualize.spaceusage
Class SpaceUsage

java.lang.Object
  extended by edu.isi.pegasus.planner.visualize.spaceusage.SpaceUsage

public class SpaceUsage
extends Object

A container object that stores the space usage for each site.

Version:
$Revision: 2564 $
Author:
Karan Vahi

Field Summary
private  Map mStore
          The map that stores the list of space objects indexed by site name.
 
Constructor Summary
SpaceUsage()
          The default store.
 
Method Summary
 void addRecord(String site, Space record)
          Add a Space record to the store.
 List getSizes(String site)
          Returns the list of Space 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 space objects indexed by site name.

Constructor Detail

SpaceUsage

public SpaceUsage()
The default store.

Method Detail

siteIterator

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

Returns:
Iterator

getSizes

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

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

addRecord

public void addRecord(String site,
                      Space record)
Add a Space record to the store.

Parameters:
site - the site for which the record is logged.
record - the SpaceUsage 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.