Module net.finmath.lib
Interface Notional
- All Known Implementing Classes:
AccruingNotional
,NotionalFromComponent
,NotionalFromConstant
public interface Notional
Base class for notional classes.
- Version:
- 1.0
- Author:
- Christian Fries
-
Method Summary
Modifier and TypeMethodDescriptionReturns the currency string of this notional.Calculates the notional at the end of a period, given a period.Calculates the notional at the start of a period, given a period.
-
Method Details
-
getCurrency
String getCurrency()Returns the currency string of this notional.- Returns:
- the currency
-
getNotionalAtPeriodStart
RandomVariable getNotionalAtPeriodStart(AbstractPeriod period, TermStructureMonteCarloSimulationModel model) throws CalculationExceptionCalculates 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).- Parameters:
period
- Period.model
- The model against we are evaluation.- Returns:
- The notional for the given period as of period start.
- Throws:
CalculationException
- Thrown if the valuation fails, specific cause may be available via thecause()
method.
-
getNotionalAtPeriodEnd
RandomVariable getNotionalAtPeriodEnd(AbstractPeriod period, TermStructureMonteCarloSimulationModel model) throws CalculationExceptionCalculates 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).- Parameters:
period
- Period.model
- The model against we are evaluation.- Returns:
- The notional for the given period as of period end.
- Throws:
CalculationException
- Thrown if the valuation fails, specific cause may be available via thecause()
method.
-