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

java.lang.Object
  extended by be.ac.ua.broker.input.pricing.Price
      extended by be.ac.ua.broker.input.pricing.ReservedPrice

public class ReservedPrice
extends Price

This class represents a reserved price in the broker. It consist of a fixed price together with a hourly price.

Author:
Vermeersch Kurt

Constructor Summary
ReservedPrice(double hourly, double fixed)
          Constructor for ReservedPrice
 
Method Summary
 double getFixedPrice()
           
 java.lang.String getPricingModel()
           
 void print()
          Print the price information
 
Methods inherited from class be.ac.ua.broker.input.pricing.Price
getHourlyPrice
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReservedPrice

public ReservedPrice(double hourly,
                     double fixed)
Constructor for ReservedPrice

Parameters:
hourly - the hourly price in US dollars
fixed - the fixed price per one-year period in US dollars
Method Detail

getFixedPrice

public double getFixedPrice()
Returns:
the fixed price per one-year period in US dollars

print

public void print()
Description copied from class: Price
Print the price information

Overrides:
print in class Price

getPricingModel

public java.lang.String getPricingModel()
Specified by:
getPricingModel in class Price
Returns:
the price model this price object is a part of