ReferenceTable
ReferenceTable.Rd
Class representing a PetroVisor ReferenceTable object.
Public fields
name
The name of the reference table.
description
The description of the item.
labels
A list of strings holding the labels of the reference table.
key
The key column definition. Object of type ReferenceTableColumn.
values
List of value column definitions. I.e. a list of objects of type ReferenceTableColumn.
Methods
Method new()
Create a new ReferenceTable instance.
Usage
ReferenceTable$new(
name = NULL,
description = NULL,
labels = list(),
key = NULL,
values = list()
)
Arguments
name
The name of the reference table.
description
The description of the item.
labels
A list of strings holding the labels of the reference table.
key
The key column definition. Object of type ReferenceTableColumn.
values
List of value column definitions. I.e. a list of objects of type ReferenceTableColumn.
Examples
if (FALSE) { # \dontrun{
referenceTable <- ReferenceTable$new(
name = "Test R ReferenceTable",
description = "Test Description",
labels = list("A", "B"),
key = ReferenceTableColumn$new(name = "TestKey",
column_type = "Numeric",
unit_name = "m3"),
values = list(
ReferenceTableColumn$new(name = "Value One",
column_type = "Numeric",
unit_name = "m3"),
ReferenceTableColumn$new(name = "Value Two",
column_type = "Bool",
unit_name = " ")
))
} # }