distcomp (version 1.0-1)

createInstanceObject: Given the definition identifier of an object, instantiate and store object in workspace

Description

The function createInstanceObject uses a definition identified by defnId to create the appropriate object instance. The instantiated object is assigned the instanceId and saved under the dataFileName if the latter is specified. This instantiated object may change state between iterations when a computation executes

Usage

createInstanceObject(defnId, instanceId, dataFileName = NULL)

Arguments

defnId

the identifier of an already defined computation

instanceId

an indentifier to use for the created instance

dataFileName

a file name to use for saving the data. Typically NULL, this is only needed when one is using a single opencpu server to behave like multiple sites in which case the data file name serves to distinguish the site-specific data files. When it is NULL, the data file name is taken from the configuration settings

Value

TRUE if everything goes well

See Also

availableComputations