|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object be.ac.ua.broker.output.textual.PriceCalculator
public class PriceCalculator
This class is used to generate a tree cost overview from a broker result. It creates a cost tree using a PriceDescriptorNode as root node containing PriceDescriptorNodes as children. The overview levels can be of a given order, the possible divisions are: geographical region, operating system, instance type of the instance or the pricing model being used by the instance.
Field Summary | |
---|---|
static java.lang.String |
INSTANCETYPE
String representing the instance type level option |
static java.lang.String |
OS
String representing the operating system level option |
static java.lang.String |
PRICINGMODEL
String representing the pricing model level option |
static java.lang.String |
REGION
String representing the geographical region level option |
Constructor Summary | |
---|---|
PriceCalculator(SchedulerResultCollection result)
Constructor for PriceCalculator |
Method Summary | |
---|---|
PriceDescriptorNode |
createTree(java.lang.String level1,
java.lang.String level2,
java.lang.String level3,
java.lang.String level4)
Create a cost overview tree according to the given order of level options |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String REGION
public static java.lang.String OS
public static java.lang.String INSTANCETYPE
public static java.lang.String PRICINGMODEL
Constructor Detail |
---|
public PriceCalculator(SchedulerResultCollection result)
result
- the schedulerResultCollection obtained by the broker after the
allocation phase, for which a cost overview tree has to be
generated.Method Detail |
---|
public PriceDescriptorNode createTree(java.lang.String level1, java.lang.String level2, java.lang.String level3, java.lang.String level4)
level1
- level one optionlevel2
- level two optionlevel3
- level three optionlevel4
- level four option
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |