public class NumJobsMeasurement extends Object implements Measurement
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
NumJobsMeasurement(Date d,
Integer num,
String name)
The overloaded constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
private Date mDate
private Integer mNum
private String mAssociatedJob
public String getJobName()
getJobName in interface Measurementpublic Date getTime()
getTime in interface Measurementpublic Object getValue()
getValue in interface Measurementpublic void setJobName(String name)
setJobName in interface Measurementname - sets the name of the job.public void setTime(Date time)
setTime in interface Measurementtime - the Date object representing the time.public void setValue(Object value)
setValue in interface Measurementvalue - the value to be associated with measurement.Copyright © 2011 The University of Southern California. All Rights Reserved.