net.sourceforge.agora.simulator.control
Class YieldCalculator

java.lang.Object
  extended by net.sourceforge.agora.simulator.control.YieldCalculator

public class YieldCalculator
extends java.lang.Object

The Class YieldCalculator.


Method Summary
static YieldCalculator getInstance()
          Gets the single instance of YieldCalculator.
 java.lang.Double getPrice(Security fSecurity, double yield, java.util.Date settlementDate, int basis)
          Gets the price.
 java.lang.Double getYield(Security fSecurity, double price, java.util.Date settlementDate, int basis)
          Gets the yield.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getYield

public java.lang.Double getYield(Security fSecurity,
                                 double price,
                                 java.util.Date settlementDate,
                                 int basis)
Gets the yield.

Parameters:
fSecurity - the f security
price - the price
settlementDate - the settlement date
basis - the basis
Returns:
the yield

getPrice

public java.lang.Double getPrice(Security fSecurity,
                                 double yield,
                                 java.util.Date settlementDate,
                                 int basis)
Gets the price.

Parameters:
fSecurity - the f security
yield - the yield
settlementDate - the settlement date
basis - the basis
Returns:
the price

getInstance

public static YieldCalculator getInstance()
Gets the single instance of YieldCalculator.

Returns:
single instance of YieldCalculator