Parameter class

Parameter class

Details

Definition for the Parameter class.

See also

Public fields

id

character value.

name

character value.

status

logical value.

value

numeric initial value value.

min_value

numeric minimum value.

max_value

numeric maximum value.

step_value

numeric step value.

hide

logical value.

units

character value.

Methods

Public methods


Method new()

Create a new Parameter object.

Usage

Parameter$new(
  id,
  name,
  status,
  value,
  min_value,
  max_value,
  step_value,
  hide,
  units
)

Arguments

id

character value.

name

character value.

status

logical value.

value

numeric initial value.

min_value

numeric minimum value.

max_value

numeric maximum value.

step_value

numeric step value.

hide

logical value.

units

character value.

Returns

A new Parameter object.

Method new()

Create a new Parameter object.

Usage

Parameter$new(
  id,
  name,
  status,
  value,
  min_value,
  max_value,
  step_value,
  hide,
  units
)

Arguments

id

character value.

name

character value.

status

logical value.

value

numeric initial value.

min_value

numeric minimum value.

max_value

numeric maximum value.

step_value

numeric step value.

hide

logical value.

units

character value.

Returns

A new Parameter object.


Method print()

Print the object.

Usage

Parameter$print(...)

Arguments

...

not used.

Method print()

Print the object.

Usage

Parameter$print(...)

Arguments

...

not used.


Method repr()

Generate a character summarizing the representation of the object.

Usage

Parameter$repr(start = "[", end = "]")

Arguments

start

character symbol used to start the setting list. Defaults to "[".

end

character symbol used to start the setting list. Defaults to "]".

Returns

character value.

Method repr()

Generate a character summarizing the representation of the object.

Usage

Parameter$repr(start = "[", end = "]")

Arguments

start

character symbol used to start the setting list. Defaults to "[".

end

character symbol used to start the setting list. Defaults to "]".

Returns

character value.


Method get_status()

Get status.

Usage

Parameter$get_status()

Returns

logical value.

Method get_status()

Get status.

Usage

Parameter$get_status()

Returns

logical value.


Method get_value()

Get value.

Usage

Parameter$get_value()

Returns

numeric value.

Method get_value()

Get value.

Usage

Parameter$get_value()

Returns

numeric value.


Method get_setting()

Get setting.

Usage

Parameter$get_setting(name)

Arguments

name

character setting name. Available options are "status", or "value".

Returns

Value.

Method get_setting()

Get setting.

Usage

Parameter$get_setting(name)

Arguments

name

character setting name. Available options are "status", or "value".

Returns

Value.


Method set_status()

Set status.

Usage

Parameter$set_status(value)

Arguments

value

logical new value.

Method set_status()

Set status.

Usage

Parameter$set_status(value)

Arguments

value

logical new value.


Method set_value()

Set value.

Usage

Parameter$set_value(value)

Arguments

value

numeric new value.

Method set_value()

Set value.

Usage

Parameter$set_value(value)

Arguments

value

numeric new value.


Method set_setting()

Set setting.

Usage

Parameter$set_setting(name, value)

Arguments

name

character setting name. Available options are "status", or "value".

value

ANY new value.

Method set_setting()

Set setting.

Usage

Parameter$set_setting(name, value)

Arguments

name

character setting name. Available options are "status", or "value".

value

ANY new value.


Method get_widget_data()

Get data for displaying the parameter in a widget.

Usage

Parameter$get_widget_data()

Method get_widget_data()

Get data for displaying the parameter in a widget.

Usage

Parameter$get_widget_data()


Method export()

Export settings.

Usage

Parameter$export()

Returns

list object.

Method export()

Export settings.

Usage

Parameter$export()

Returns

list object.


Method get_results_data()

Get results data.

Usage

Parameter$get_results_data()

Returns

data.frame object.

Method get_results_data()

Get results data.

Usage

Parameter$get_results_data()

Returns

data.frame object.


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.

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.