public class Bond extends AbstractLIBORMonteCarloProduct
| Constructor and Description |
|---|
Bond(double maturity) |
Bond(LocalDateTime referenceDate,
double maturity) |
| Modifier and Type | Method and Description |
|---|---|
double |
getMaturity() |
RandomVariable |
getValue(double evaluationTime,
LIBORModelMonteCarloSimulationModel 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, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCurrency, getValue, getValue, getValues, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedDatapublic Bond(LocalDateTime referenceDate, double maturity)
referenceDate - The date corresponding to \( t = 0 \).maturity - The maturity given as double.public Bond(double maturity)
maturity - The maturity given as double.public RandomVariable getValue(double evaluationTime, LIBORModelMonteCarloSimulationModel model) throws CalculationException
getValue in interface TermStructureMonteCarloProductgetValue 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 © 2019. All rights reserved.