View source: R/variable_generation.R
createCodeStubsForSimVariables | R Documentation |
The function creates Java code stubs for defining the fields, adding variables and initialising values. It creates XML subs for parameter file, as well as resource definition for parameter and input data, inputs for simcomponent and outputs.
createCodeStubsForSimVariables(
variables,
component = "MyComponent",
outfolder = NULL,
...
)
variables |
dataframe or path to csv file with variables |
component |
name of SimComonent |
outfolder |
optional, if given code is written the folder's files |
... |
parameters passed to read.table (e.g. sep, dec etc.) |
The dataframe / CSV file should have columns
contenttype (one of: constant, input, state, rate, out)
id
description
datatype (Simplace Datatype or corresponding Java Datatype)
unit
min
max
default
list of code snippets
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.