Skip to contents

An R6 class that represents a parameter in an OSP snapshot. This class provides methods to access different properties of a parameter and display a summary of its information.

Public fields

data

The raw data of the parameter

Active bindings

path

The path of the parameter

name

The name of the parameter (same as path)

value

The value of the parameter

unit

The unit of the parameter (if any)

value_origin

The origin information for the parameter value

table_formula

The table formula data for table parameters

Methods


Method new()

Create a new Parameter object

Usage

Parameter$new(data)

Arguments

data

Raw parameter data from a snapshot

Returns

A new Parameter object


Method print()

Print a summary of the parameter

Usage

Parameter$print(...)

Arguments

...

Additional arguments passed to print methods

Returns

Invisibly returns the object


Method to_df()

Convert parameter data to a tibble row

Usage

Parameter$to_df()

Returns

A tibble with one row containing the parameter data


Method clone()

The objects of this class are cloneable with this method.

Usage

Parameter$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.