uk.ac.soton.itinnovation.grid.service.sla.upgrade.v5_1_x.model
Class PricingTerm5_1alpha
java.lang.Object
uk.ac.soton.itinnovation.grid.service.sla.upgrade.v5_1_x.model.PricingTerm5_1alpha
- All Implemented Interfaces:
- Comparable<PricingTerm5_1alpha>
public class PricingTerm5_1alpha
- extends Object
- implements Comparable<PricingTerm5_1alpha>
PricingTerm
A basic resource pricing system where a set of pricing terms are
applied to the usage on an SLA. Several pricing terms may apply to
the same metric, allowing for banded pricing structures (e.g. first
10MB free, $1/MB for 10-100MB, $2/MB for 100MB upwards).
The interval charged for is [lowerBound, upperBound).
type
public PricingTermType type
PricingTerm5_1alpha
public PricingTerm5_1alpha()
PricingTerm5_1alpha
public PricingTerm5_1alpha(Metric metric,
BigDecimal price,
String currency,
double lower,
double upper,
String d,
PricingTermType type)
PricingTerm5_1alpha
public PricingTerm5_1alpha(PricingTerm5_1alpha p)
getId
public Long getId()
setId
public void setId(Long argId)
getMetric
public Metric getMetric()
setMetric
public void setMetric(Metric argMetric)
getPrice
public BigDecimal getPrice()
setPrice
public void setPrice(BigDecimal argPrice)
getCurrency
public String getCurrency()
setCurrency
public void setCurrency(String argCurrency)
getLowerBound
public double getLowerBound()
setLowerBound
public void setLowerBound(double argLowerBound)
getUpperBound
public double getUpperBound()
setUpperBound
public void setUpperBound(double argUpperBound)
- If this is set to -1 then it is taken as +infinity
getDescription
public String getDescription()
setDescription
public void setDescription(String d)
getType
public String getType()
setType
public void setType(String argType)
prettyPrint
public String prettyPrint(boolean html)
prettyPrint
public String prettyPrint()
toString
public String toString()
- Overrides:
toString in class Object
compareTo
public int compareTo(PricingTerm5_1alpha other)
- Specified by:
compareTo in interface Comparable<PricingTerm5_1alpha>
Copyright © 2001-2007 University of Southampton IT Innovation Centre. All Rights Reserved.