public class Bond extends AbstractLIBORMonteCarloProduct
| Constructor and Description |
|---|
Bond(double maturity) |
| Modifier and Type | Method and Description |
|---|---|
double |
getMaturity() |
RandomVariableInterface |
getValue(double evaluationTime,
LIBORModelMonteCarloSimulationInterface model)
This method returns the value random variable of the product within the specified model, evaluated at a given evalutationTime.
|
void |
setMaturity(double maturity) |
String |
toString() |
getFactorDrift, getValue, getValueForModifiedData, getValuesgetCurrency, getValue, getValue, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedDatapublic Bond(double maturity)
maturity - The maturity given as double.public RandomVariableInterface getValue(double evaluationTime, LIBORModelMonteCarloSimulationInterface model) throws CalculationException
getValue in class AbstractLIBORMonteCarloProductevaluationTime - The time on which this products value should be observed.model - The model used to price the product.CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.public double getMaturity()
public void setMaturity(double maturity)
maturity - The maturity to set.public String toString()
toString in class AbstractMonteCarloProductCopyright © 2017. All rights reserved.