new_method_extension: Create an object that can be used to make an extended version...

View source: R/method-extension-class.R

new_method_extensionR Documentation

Create an object that can be used to make an extended version of a method

Description

Creates an object of class MethodExtension, which when added to a Method creates an ExtendedMethod.

Usage

new_method_extension(name, label, method_extension)

Arguments

name

a short name identifier. Must be alphanumeric.

label

a longer, human readable label that can have other characters such as spaces, hyphens, etc.

method_extension

a function with arguments "model", "draw", "out", and "base_method". This will become the function extended_method in the ExtendedMethod object that is created.

Details

This class inherits from the Component class.


simulator documentation built on Feb. 16, 2023, 9:34 p.m.