trms-methods: Generic method to return existing terms or parameters of an...

termsR Documentation

Generic method to return existing terms or parameters of an ACTUS object

Description

Implemented e.g. for ACTUS contract models where terms returns all available contract terms or for valuation engine models where the method returns the valuation model parameters.

Usage

terms(object)

## S4 method for signature 'ContractModel'
terms(object)

## S4 method for signature 'ValuationEngine'
terms(object)

## S4 method for signature 'ContractType'
terms(object)

Arguments

object

The object for which to return terms

Value

character A character vector of the names of available terms

See Also

get,set

Examples

pam = Pam()
terms(pam) # returns all Principal At Maturity terms

dc = DcModel()
terms(dc) # returns all parameters of the discounting model


wbreymann/FEMS documentation built on Dec. 8, 2022, 9:43 a.m.