public class ProductCollection extends AbstractProductComponent
| Constructor and Description |
|---|
ProductCollection(AbstractProductComponent... products)
Creates a collection of product components paying the sum of their payouts.
|
ProductCollection(Collection<AbstractProductComponent> products)
Creates a collection of product components paying the sum of their payouts.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCurrency()
Returns the currency string of this product.
|
Collection<AbstractProductComponent> |
getProducts()
Returns the collection containing all products as an unmodifiable collection.
|
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.
|
Set<String> |
queryUnderlyings()
Returns a set of underlying names referenced by this product component (i.e., required for valuation) or null if none.
|
String |
toString() |
getExecutor, getValuesgetFactorDrift, getValue, getValueForModifiedDatagetValue, getValue, getValues, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetValue, getValue, getValues, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedDatapublic ProductCollection(AbstractProductComponent... products)
products - Array of AbstractProductComponent objectspublic ProductCollection(Collection<AbstractProductComponent> products)
products - Collection of AbstractProductComponent objectspublic String getCurrency()
MonteCarloProductgetCurrency in interface MonteCarloProductgetCurrency in class AbstractMonteCarloProductpublic Collection<AbstractProductComponent> getProducts()
public Set<String> queryUnderlyings()
AbstractProductComponentqueryUnderlyings in class AbstractProductComponentpublic 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.AbstractMonteCarloProduct.getValue(double, net.finmath.montecarlo.MonteCarloSimulationModel)public String toString()
toString in class AbstractMonteCarloProductCopyright © 2019. All rights reserved.