public abstract class AbstractMonteCarloProduct extends Object implements MonteCarloProduct
| Constructor and Description |
|---|
AbstractMonteCarloProduct() |
AbstractMonteCarloProduct(String currency) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCurrency()
Returns the currency string of this product.
|
Object |
getValue(double evaluationTime,
Model model)
Return the valuation of the product using the given model.
|
abstract RandomVariable |
getValue(double evaluationTime,
MonteCarloSimulationModel model)
This method returns the value random variable of the product within the specified model, evaluated at a given evalutationTime.
|
double |
getValue(MonteCarloSimulationModel model)
This method returns the value of the product under the specified model.
|
Map<String,Object> |
getValues(double evaluationTime,
Model model)
Return the valuation of the product using the given model.
|
Map<String,Object> |
getValues(double evaluationTime,
MonteCarloSimulationModel 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(MonteCarloSimulationModel 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,
MonteCarloSimulationModel model,
Map<String,Object> dataModified)
This method returns the value under shifted market data (or model parameters).
|
Map<String,Object> |
getValuesForModifiedData(double evaluationTime,
MonteCarloSimulationModel model,
String entityKey,
Object dataModified)
This method returns the value under shifted market data (or model parameters).
|
Map<String,Object> |
getValuesForModifiedData(MonteCarloSimulationModel model,
Map<String,Object> dataModified)
This method returns the value under shifted market data (or model parameters).
|
Map<String,Object> |
getValuesForModifiedData(MonteCarloSimulationModel 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, Model model)
ProductgetValue in interface ProductgetValue in interface MonteCarloProductevaluationTime - 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 Map<String,Object> getValues(double evaluationTime, Model model)
ProductgetValues in interface ProductgetValues in interface MonteCarloProductevaluationTime - 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 RandomVariable getValue(double evaluationTime, MonteCarloSimulationModel model) throws CalculationException
MonteCarloProductgetValue in interface MonteCarloProductevaluationTime - 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(MonteCarloSimulationModel model) throws CalculationException
MonteCarloProductgetValue in interface MonteCarloProductmodel - 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, MonteCarloSimulationModel model) throws CalculationException
MonteCarloProductgetValues in interface MonteCarloProductevaluationTime - 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, MonteCarloSimulationModel model, Map<String,Object> dataModified) throws CalculationException
MonteCarloProductgetValuesForModifiedData in interface MonteCarloProductevaluationTime - 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, MonteCarloSimulationModel model, String entityKey, Object dataModified) throws CalculationException
MonteCarloProductgetValuesForModifiedData in interface MonteCarloProductevaluationTime - 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(MonteCarloSimulationModel model) throws CalculationException
MonteCarloProductgetValues in interface MonteCarloProductmodel - 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(MonteCarloSimulationModel model, Map<String,Object> dataModified) throws CalculationException
MonteCarloProductgetValuesForModifiedData in interface MonteCarloProductmodel - 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(MonteCarloSimulationModel model, String entityKey, Object dataModified) throws CalculationException
MonteCarloProductgetValuesForModifiedData in interface MonteCarloProductmodel - 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()
MonteCarloProductgetCurrency in interface MonteCarloProductCopyright © 2019. All rights reserved.