be.ac.ua.broker.input.pricing
Class Price

java.lang.Object
  extended by be.ac.ua.broker.input.pricing.Price
Direct Known Subclasses:
OnDemandPrice, ReservedPrice, SpotPrice

public abstract class Price
extends java.lang.Object

This class represents an abstract price, which already consists of an amount in US dollars that is an hourly price.

Author:
Vermeersch Kurt

Constructor Summary
Price(double hourly)
          Constructor fort Price
 
Method Summary
 double getHourlyPrice()
           
abstract  java.lang.String getPricingModel()
           
 void print()
          Print the price information
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Price

public Price(double hourly)
Constructor fort Price

Parameters:
hourly - the price in US dollars per hour
Method Detail

getHourlyPrice

public double getHourlyPrice()
Returns:
the price in US dollars per hour

print

public void print()
Print the price information


getPricingModel

public abstract java.lang.String getPricingModel()
Returns:
the price model this price object is a part of