Module net.finmath.lib
Class NotionalFromComponent
- java.lang.Object
-
- net.finmath.montecarlo.interestrate.products.components.NotionalFromComponent
-
-
Constructor Summary
Constructors Constructor Description NotionalFromComponent(AbstractProductComponent notional)Creates a notional which is derived by calling the getValue method on the period start of a given component.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCurrency()Returns the currency string of this notional.RandomVariablegetNotionalAtPeriodEnd(AbstractPeriod period, LIBORModelMonteCarloSimulationModel model)Calculates the notional at the end of a period, given a period.RandomVariablegetNotionalAtPeriodStart(AbstractPeriod period, LIBORModelMonteCarloSimulationModel model)Calculates the notional at the start of a period, given a period.
-
-
-
Constructor Detail
-
NotionalFromComponent
public NotionalFromComponent(AbstractProductComponent notional)
Creates a notional which is derived by calling the getValue method on the period start of a given component. Note: The class performs a check of the measurability of the notional. If the notional is not \( F_{t} \)-measurable (for t = period start), an exception is thrown.- Parameters:
notional- The component providing the notation.
-
-
Method Detail
-
getCurrency
public String getCurrency()
Description copied from interface:NotionalReturns the currency string of this notional.- Specified by:
getCurrencyin interfaceNotional- Returns:
- the currency
-
getNotionalAtPeriodEnd
public RandomVariable getNotionalAtPeriodEnd(AbstractPeriod period, LIBORModelMonteCarloSimulationModel model)
Description copied from interface:NotionalCalculates the notional at the end of a period, given a period. Example: The notional can be independent of the period (constant running notional) or depending on the period (accruing notional).- Specified by:
getNotionalAtPeriodEndin interfaceNotional- Parameters:
period- Period.model- The model against we are evaluation.- Returns:
- The notional for the given period as of period end.
-
getNotionalAtPeriodStart
public RandomVariable getNotionalAtPeriodStart(AbstractPeriod period, LIBORModelMonteCarloSimulationModel model)
Description copied from interface:NotionalCalculates the notional at the start of a period, given a period. Example: The notional can be independent of the period (constant running notional) or depending on the period (accruing notional).- Specified by:
getNotionalAtPeriodStartin interfaceNotional- Parameters:
period- Period.model- The model against we are evaluation.- Returns:
- The notional for the given period as of period start.
-
-