uk.ac.soton.itinnovation.grid.service.sla.upgrade.v5_1_x.model
Class UsageSummaryElement5_1alpha

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.service.sla.upgrade.v5_1_x.model.UsageSummaryElement5_1alpha

public class UsageSummaryElement5_1alpha
extends Object

This represents the usage and rate at an instant in time.


Constructor Summary
UsageSummaryElement5_1alpha()
           
UsageSummaryElement5_1alpha(Calendar time, double usage, double rate)
           
 
Method Summary
 boolean equals(Object obj)
          Check if this object is equal to another object.
 Long getId()
           
 double getRate()
           
 Calendar getTime()
           
 Date getTimeDate()
           
 double getUsage()
           
 double getUsge()
           
 int hashCode()
          Calculate the hash code for this object.
 void setId(Long id)
           
 void setRate(double argRate)
           
 void setTime(Calendar argTime)
           
 void setTimeDate(Date timeDate)
           
 void setUsage(double argUsage)
           
 void setUsge(double argUsage)
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UsageSummaryElement5_1alpha

public UsageSummaryElement5_1alpha()

UsageSummaryElement5_1alpha

public UsageSummaryElement5_1alpha(Calendar time,
                                   double usage,
                                   double rate)
Method Detail

setId

public void setId(Long id)

getId

public Long getId()

getTimeDate

public Date getTimeDate()

setTimeDate

public void setTimeDate(Date timeDate)

getTime

public Calendar getTime()

setTime

public void setTime(Calendar argTime)

getUsge

public double getUsge()

setUsge

public void setUsge(double argUsage)

getUsage

public double getUsage()

setUsage

public void setUsage(double argUsage)

getRate

public double getRate()

setRate

public void setRate(double argRate)

toString

public String toString()

Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Check if this object is equal to another object.

For the definition of the object equivalence relation see Object.equals(Object).

Overrides:
equals in class Object
Parameters:
obj - another, possibly equal object.
Returns:
true if the objects are equal, false otherwise.
See Also:
Object.equals(Object)

hashCode

public int hashCode()
Calculate the hash code for this object.

The rules laid out in J. Blosh's Effective Java are used for the hash code calculation.

Overrides:
hashCode in class Object
Returns:
the hash code.
See Also:
Object.hashCode()


Copyright © 2001-2007 University of Southampton IT Innovation Centre. All Rights Reserved.