|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.soton.itinnovation.grid.service.types.PricingTerm
public class PricingTerm
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).
| Field Summary | |
|---|---|
PricingTermType |
type
|
| Constructor Summary | |
|---|---|
PricingTerm()
|
|
PricingTerm(Metric metric,
BigDecimal price,
String currency,
double lower,
double upper,
String d,
PricingTermType type)
|
|
PricingTerm(PricingTerm p)
Deprecated. |
|
| Method Summary | |
|---|---|
int |
compareTo(PricingTerm other)
|
PricingTerm |
copyWithNullId()
Copy the pricing term without the hibernate id |
boolean |
equalsByValue(Object obj,
boolean includeDatabaseIdentity)
|
String |
getCurrency()
|
String |
getDescription()
|
Long |
getId()
|
double |
getLowerBound()
|
Metric |
getMetric()
|
BigDecimal |
getPrice()
|
String |
getType()
|
static TypeDesc |
getTypeDesc()
Return type metadata object. |
double |
getUpperBound()
|
int |
hashCodeByValue(boolean includeDatabaseIdentity)
|
String |
prettyPrint()
|
String |
prettyPrint(boolean html)
|
void |
setCurrency(String argCurrency)
|
void |
setDescription(String d)
|
void |
setId(Long argId)
|
void |
setLowerBound(double argLowerBound)
|
void |
setMetric(Metric argMetric)
|
void |
setPrice(BigDecimal argPrice)
|
void |
setType(String argType)
|
void |
setUpperBound(double argUpperBound)
If this is set to -1 then it is taken as +infinity |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public PricingTermType type
| Constructor Detail |
|---|
public PricingTerm()
public PricingTerm(Metric metric,
BigDecimal price,
String currency,
double lower,
double upper,
String d,
PricingTermType type)
@Deprecated public PricingTerm(PricingTerm p)
| Method Detail |
|---|
public PricingTerm copyWithNullId()
public Long getId()
public void setId(Long argId)
public Metric getMetric()
public void setMetric(Metric argMetric)
public BigDecimal getPrice()
public void setPrice(BigDecimal argPrice)
public String getCurrency()
public void setCurrency(String argCurrency)
public double getLowerBound()
public void setLowerBound(double argLowerBound)
public double getUpperBound()
public void setUpperBound(double argUpperBound)
public String getDescription()
public void setDescription(String d)
public String getType()
public void setType(String argType)
public String prettyPrint(boolean html)
public String prettyPrint()
public String toString()
toString in class Objectpublic int compareTo(PricingTerm other)
compareTo in interface Comparable<PricingTerm>
public boolean equalsByValue(Object obj,
boolean includeDatabaseIdentity)
public int hashCodeByValue(boolean includeDatabaseIdentity)
public static TypeDesc getTypeDesc()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||