public abstract class AbstractMonteCarloProduct extends Object implements ProductInterface
| Constructor and Description |
|---|
AbstractMonteCarloProduct() |
AbstractMonteCarloProduct(String currency) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCurrency()
Returns the currency string of this notional.
|
Object |
getValue(double evaluationTime,
ModelInterface model)
Return the valuation of the product using the given model.
|
abstract RandomVariableInterface |
getValue(double evaluationTime,
MonteCarloSimulationInterface model)
This method returns the value random variable of the product within the specified model, evaluated at a given evalutationTime.
|
double |
getValue(MonteCarloSimulationInterface model)
This method returns the value of the product under the specified model.
|
Map<String,Object> |
getValues(double evaluationTime,
MonteCarloSimulationInterface model)
This method returns the value of the product under the specified model and other information in a key-value map.
|
Map<String,Object> |
getValues(MonteCarloSimulationInterface model)
This method returns the value of the product under the specified model and other information in a key-value map.
|
Map<String,Object> |
getValuesForModifiedData(double evaluationTime,
MonteCarloSimulationInterface model,
Map<String,Object> dataModified)
This method returns the value under shifted market data (or model parameters).
|
Map<String,Object> |
getValuesForModifiedData(double evaluationTime,
MonteCarloSimulationInterface model,
String entityKey,
Object dataModified)
This method returns the value under shifted market data (or model parameters).
|
Map<String,Object> |
getValuesForModifiedData(MonteCarloSimulationInterface model,
Map<String,Object> dataModified)
This method returns the value under shifted market data (or model parameters).
|
Map<String,Object> |
getValuesForModifiedData(MonteCarloSimulationInterface model,
String entityKey,
Object dataModified)
This method returns the value under shifted market data (or model parameters).
|
String |
toString() |
public AbstractMonteCarloProduct(String currency)
public AbstractMonteCarloProduct()
public Object getValue(double evaluationTime, ModelInterface model)
ProductInterfacegetValue in interface ProductInterfaceevaluationTime - The evaluation time as double. Cash flows prior and including this time are not considered.model - The model under which the product is valued.public abstract RandomVariableInterface getValue(double evaluationTime, MonteCarloSimulationInterface model) throws CalculationException
evaluationTime - 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 getValue(MonteCarloSimulationInterface model) throws CalculationException
model - A model used to evaluate the product.CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.public Map<String,Object> getValues(double evaluationTime, MonteCarloSimulationInterface model) throws CalculationException
evaluationTime - The time on which this products value should be observed.model - A model used to evaluate the product.CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.public Map<String,Object> getValuesForModifiedData(double evaluationTime, MonteCarloSimulationInterface model, Map<String,Object> dataModified) throws CalculationException
evaluationTime - The time on which this products value should be observed.model - The model used to price the product, except for the market data to modifydataModified - The new market data object to use (could be of different types)CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.public Map<String,Object> getValuesForModifiedData(double evaluationTime, MonteCarloSimulationInterface model, String entityKey, Object dataModified) throws CalculationException
evaluationTime - The time on which this products value should be observed.model - The model used to price the product, except for the market data to modifyentityKey - The entity to change, it depends on the model if the model reacts to this key.dataModified - The new market data object to use (could be of different types)CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.public Map<String,Object> getValues(MonteCarloSimulationInterface model) throws CalculationException
model - A model used to evaluate the product.CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.public Map<String,Object> getValuesForModifiedData(MonteCarloSimulationInterface model, Map<String,Object> dataModified) throws CalculationException
model - The model used to price the product, except for the market data to modifydataModified - The new market data object to use (could be of different types)CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.public Map<String,Object> getValuesForModifiedData(MonteCarloSimulationInterface model, String entityKey, Object dataModified) throws CalculationException
model - The model used to price the product, except for the market data to modifyentityKey - The entity to change, it depends on the model if the model reacts to this key.dataModified - The new market data object to use (could be of different types)CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.public String getCurrency()
Copyright © 2017. All rights reserved.