com.ftlabs.fisa.calc
Class PriceQuote

java.lang.Object
  extended by com.ftlabs.fisa.calc.PriceQuote
All Implemented Interfaces:
Quote, java.io.Serializable

public class PriceQuote
extends java.lang.Object
implements Quote

A price based implementation of Quote.

See Also:
Serialized Form

Constructor Summary
PriceQuote(double price)
          Constructs a new instance of PriceQuote using the given price without a concession.
PriceQuote(double price, double concession)
          Constructs a new instance of PriceQuote using the given price and concession.
 
Method Summary
 double getConcession()
          Get the concession.
 double getPrice()
          Get the quote price.
 double getPrice(Calculator maturityCalculator, Calculator[] otherRedemptionCalculators)
          Returns a price.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PriceQuote

public PriceQuote(double price)
Constructs a new instance of PriceQuote using the given price without a concession.

Parameters:
price - the price.

PriceQuote

public PriceQuote(double price,
                  double concession)
Constructs a new instance of PriceQuote using the given price and concession.

Parameters:
price - the price.
concession - the concession.
Method Detail

getPrice

public double getPrice()
Get the quote price.

Returns:
the price.

getConcession

public double getConcession()
Get the concession.

Returns:
the concession.

getPrice

public double getPrice(Calculator maturityCalculator,
                       Calculator[] otherRedemptionCalculators)
                throws CalculationException
Description copied from interface: Quote
Returns a price. This method would not normally be called directly by a user.

Specified by:
getPrice in interface Quote
Parameters:
maturityCalculator - A calculator bound to maturity.
otherRedemptionCalculators - An array of calculators bound to each of the calls.
Returns:
the price
Throws:
CalculationException