Class providing an interface for guarantee payoff objects. This class shouldn't be instantiated but used as base class for more specialized implementations such as a roll-up or ratchet payoff classes.
payoff_guarantee
Object of R6Class
R6Class
object.
new
(public
)Initialize method. The argument is a non negative scalar with the premium.
set_premium
(public
)Stores the premium in a private field. The argument is a non negative scalar
get_premium
(public
)Returns the premium as non negative scalar
get_payoff
(public
)Gets a zero payoff in this
base class.The arguments are a numeric
vector with
the amounts and a vector of timeDate
objects to calculate the payoff