edu.isi.pegasus.planner.visualize.nodeusage
Class NumJobsMeasurement

java.lang.Object
  extended by edu.isi.pegasus.planner.visualize.nodeusage.NumJobsMeasurement
All Implemented Interfaces:
Measurement

public class NumJobsMeasurement
extends Object
implements Measurement

Stores the number of jobs as an integer.

Version:
$Revision: 2563 $
Author:
Karan Vahi vahi@isi.edu

Field Summary
private  String mAssociatedJob
          The jobname for which the reading was taken.
private  Date mDate
          Holds the timestamp when usage was taken.
private  Integer mNum
          The number of jobs.
 
Constructor Summary
NumJobsMeasurement(Date d, Integer num, String name)
          The overloaded constructor.
 
Method Summary
 String getJobName()
          Returns the job for which the measurement was taken.
 Date getTime()
          Returns the time at which the measurement was taken.
 Object getValue()
          Returns the value of the measurement.
 void setJobName(String name)
          Sets the job for which the measurement was taken.
 void setTime(Date time)
          Sets the time at which the measurement was taken.
 void setValue(Object value)
          Sets the value of the measurement.
 String toString()
          Returns textual description.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mDate

private Date mDate
Holds the timestamp when usage was taken.


mNum

private Integer mNum
The number of jobs.


mAssociatedJob

private String mAssociatedJob
The jobname for which the reading was taken.

Constructor Detail

NumJobsMeasurement

public NumJobsMeasurement(Date d,
                          Integer num,
                          String name)
The overloaded constructor.

Parameters:
d - the date.
num - the number
name - the jobname.
Method Detail

getJobName

public String getJobName()
Returns the job for which the measurement was taken.

Specified by:
getJobName in interface Measurement
Returns:
the name of the job.

getTime

public Date getTime()
Returns the time at which the measurement was taken.

Specified by:
getTime in interface Measurement
Returns:
the Date object representing the time.

getValue

public Object getValue()
Returns the value of the measurement.

Specified by:
getValue in interface Measurement
Returns:
the value.

setJobName

public void setJobName(String name)
Sets the job for which the measurement was taken.

Specified by:
setJobName in interface Measurement
Parameters:
name - sets the name of the job.

setTime

public void setTime(Date time)
Sets the time at which the measurement was taken.

Specified by:
setTime in interface Measurement
Parameters:
time - the Date object representing the time.

setValue

public void setValue(Object value)
Sets the value of the measurement.

Specified by:
setValue in interface Measurement
Parameters:
value - the value to be associated with measurement.

toString

public String toString()
Returns textual description.

Overrides:
toString in class Object
Returns:
String


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