EDK
Create, manage, build and deploy ELARA project's programmatically using the @elaraai/edk typescript libraries.
example
import * as edk from '@elaraai/edk' // create a simple application to create a project, add a datasource, build and deploy const project_dir = 'path_to_workspace' async function run() { // create a project let project_config = await edk.init({ name: 'A project', dir: project_dir }) // add a deployment project_config = edk.addDeployment({ dir: project_dir, server: 'https://server_url', name: 'test', config: project_config }) // add a datasource to the project project_config = edk.addRangeDataSource({ name: "Datasource", dir: project_dir, def_dir: 'src/sources', config: project_config, start: 1.5, stop: 1000, step: 2.3 }); // build the schema let build = edk.buildSchema({ dir: project_dir, config: project_config }); if(build === false) { //... } // deploy the schema let deploy = await edk.deploySchema({ dir: project_dir, config: project_config, deployment: 'test' }); if(deploy === false) { //... }}
run()
#
Admin#
EnvironmentArgumentsƬ EnvironmentArguments: Object
Defines the arguments for addEnvironment command.
#
Type declarationName | Type | Description |
---|---|---|
config | ELARAConfig | the current {@link ELARAConfig} |
def_dir | string | the relative dir path for the definition file |
dir | string | the ELARA solution directory absolute or relative path |
gen_dir | string | the relative dir path for the generated file |
name | string | the environment variable name |
overwrite | boolean | true if the environment should be overwritten on deployment |
#
UserArgumentsƬ UserArguments: Object
Defines the arguments for addUser command.
#
Type declarationName | Type | Description |
---|---|---|
config | ELARAConfig | the current {@link ELARAConfig} |
def_dir | string | the relative dir path for the definition file |
dir | string | the ELARA solution directory absolute or relative path |
email | string | the user's email |
gen_dir | string | the relative dir path for the generated file |
name | string | the user's name |
#
addEnvironmentâ–¸ addEnvironment(args
): ELARAConfig
| null
Create a new {@link EnvironmentDefinition}.
remarks
This command will edit the entity if it exists already, otherwise will fail if a matching datasource doesnt exist.
#
ParametersName | Type |
---|---|
args | EnvironmentArguments |
#
ReturnsELARAConfig
| null
the updated project {@link ELARAConfig}.
#
addUserâ–¸ addUser(args
): ELARAConfig
| null
Create a new {@link UserDefinition}.
remarks
This command will edit the entity if it exists already, otherwise will fail if a matching datasource doesnt exist.
#
ParametersName | Type |
---|---|
args | UserArguments |
#
ReturnsELARAConfig
| null
the updated project {@link ELARAConfig}.
#
Analytics#
ViewArgumentsƬ ViewArguments: Object
Defines the arguments for addView command.
#
Type declarationName | Type | Description |
---|---|---|
config | ELARAConfig | the current {@link ELARAConfig} |
def_dir | string | the relative dir path for the definition file |
dir | string | the ELARA solution directory absolute or relative path |
gen_dir | string | the relative dir path for the generated file |
name | string | the entity name |
#
addViewâ–¸ addView(args
): ELARAConfig
| null
Create a new {@link ViewDefinition}.
remarks
This command will edit the entity if it exists already, otherwise will fail if a matching datasource doesnt exist.
#
ParametersName | Type |
---|---|
args | ViewArguments |
#
ReturnsELARAConfig
| null
the updated project {@link ELARAConfig}.
#
Application#
ApplicationArgumentsƬ ApplicationArguments: Object
Defines the arguments for addApplication command.
#
Type declarationName | Type | Description |
---|---|---|
config | ELARAConfig | the current {@link ELARAConfig} |
def_dir | string | the relative dir path for the definition file |
dir | string | the ELARA solution directory absolute or relative path |
gen_dir | string | the relative dir path for the generated file |
name | string | the application name |
#
PageArgumentsƬ PageArguments: Object
Defines the arguments for the addPanelPage and addUserPage commands.
#
Type declarationName | Type | Description |
---|---|---|
config | ELARAConfig | the current {@link ELARAConfig} |
def_dir | string | the relative dir path for the definition file |
dir | string | the ELARA solution directory absolute or relative path |
gen_dir | string | the relative dir path for the generated file |
name | string | the entity name |
#
VisualArgumentsƬ VisualArguments: Object
Defines the arguments for the addVisual and {@link addUserVisual} commands.
#
Type declarationName | Type | Description |
---|---|---|
config | ELARAConfig | the current {@link ELARAConfig} |
def_dir | string | the relative dir path for the definition file |
dir | string | the ELARA solution directory absolute or relative path |
gen_dir | string | the relative dir path for the generated file |
name | string | the entity name |
type | VisualType | the visual type to create |
#
addApplicationâ–¸ addApplication(args
): ELARAConfig
| null
Create a new {@link ApplicationDefinition}.
remarks
This command will edit the entity if it exists already, otherwise will fail if a matching datasource doesnt exist.
#
ParametersName | Type |
---|---|
args | ApplicationArguments |
#
ReturnsELARAConfig
| null
the updated project {@link ELARAConfig}.
#
addPanelPageâ–¸ addPanelPage(args
): ELARAConfig
| null
Create a new {@link PanelPageDefinition}.
remarks
This command will create the entity if it doesnt exist already, otherwise will fail if a matching directory already exists.
#
ParametersName | Type |
---|---|
args | PageArguments |
#
ReturnsELARAConfig
| null
the updated project {@link ELARAConfig}.
#
addUserPageâ–¸ addUserPage(args
): ELARAConfig
| null
Create a new {@link UserPageDefinition}.
remarks
This command will create the entity if it doesnt exist already, otherwise will fail if a matching directory already exists.
#
ParametersName | Type |
---|---|
args | PageArguments |
#
ReturnsELARAConfig
| null
the updated project {@link ELARAConfig}.
#
addVisualâ–¸ addVisual(args
): ELARAConfig
| null
Create a new {@link VisualDefinition}.
remarks
This command will create the entity if it doesnt exist already, otherwise will fail if a matching directory already exists.
#
ParametersName | Type |
---|---|
args | VisualArguments |
#
ReturnsELARAConfig
| null
the updated project {@link ELARAConfig}.
#
DataSource#
ArrayDataSourceArgumentsƬ ArrayDataSourceArguments: Object
Defines the arguments for addArrayDataSource command.
#
Type declarationName | Type | Description |
---|---|---|
config | ELARAConfig | the current {@link ELARAConfig} |
def_dir | string | the relative dir path for the definition file |
dir | string | the ELARA solution directory absolute or relative path |
gen_dir | string | the relative dir path for the generated file |
name | string | the entity name |
#
ClockDataSourceArgumentsƬ ClockDataSourceArguments: Object
Defines the arguments for addClockDataSource command.
#
Type declarationName | Type | Description |
---|---|---|
config | ELARAConfig | the current {@link ELARAConfig} |
def_dir | string | the relative dir path for the definition file |
dir | string | the ELARA solution directory absolute or relative path |
future_cycles | number | the number of cycles in the future to include in the output |
gen_dir | string | the relative dir path for the generated file |
name | string | the entity name |
past_cycles | number | the number of cycles in the past to include in the output |
period | number | the time period in units between rows |
unit | TimeUnit | the unit of time for each row |
#
CsvDataSourceArgumentsƬ CsvDataSourceArguments: Object
Defines the arguments for addCsvDataSource command.
#
Type declarationName | Type | Description |
---|---|---|
config | ELARAConfig | the current {@link ELARAConfig} |
def_dir | string | the relative dir path for the definition file |
dir | string | the ELARA solution directory absolute or relative path |
gen_dir | string | the relative dir path for the generated file |
name | string | the entity name |
uri | URIString <"file://" | "ftp://" | "sftp://" > | the ftp, sftp or file uri |
#
ExcelDataSourceArgumentsƬ ExcelDataSourceArguments: Object
Defines the arguments for addExcelDataSource command.
#
Type declarationName | Type | Description |
---|---|---|
config | ELARAConfig | the current {@link ELARAConfig} |
def_dir | string | the relative dir path for the definition file |
dir | string | the ELARA solution directory absolute or relative path |
gen_dir | string | the relative dir path for the generated file |
name | string | the entity name |
uri | URIString <"file://" | "ftp://" | "sftp://" > | the ftp, sftp or file uri |
#
JsonDataSourceArgumentsƬ JsonDataSourceArguments: Object
Defines the arguments for addJsonDataSource command.
#
Type declarationName | Type | Description |
---|---|---|
config | ELARAConfig | the current {@link ELARAConfig} |
def_dir | string | the relative dir path for the definition file |
dir | string | the ELARA solution directory absolute or relative path |
gen_dir | string | the relative dir path for the generated file |
name | string | the entity name |
uri | URIString <"file://" | "ftp://" | "sftp://" > | the ftp, sftp or file uri |
#
RangeDataSourceArgumentsƬ RangeDataSourceArguments: Object
Defines the arguments for addRangeDataSource command.
#
Type declarationName | Type | Description |
---|---|---|
config | ELARAConfig | the current {@link ELARAConfig} |
def_dir | string | the relative dir path for the definition file |
dir | string | the ELARA solution directory absolute or relative path |
gen_dir | string | the relative dir path for the generated file |
name | string | the entity name |
start | number | the first number in the range |
step | number | the step size for each {@link Row} |
stop | number | the last number in the range |
#
RestApiDataSourceArgumentsƬ RestApiDataSourceArguments: Object
Defines the arguments for addRestApiDataSource command.
#
Type declarationName | Type | Description |
---|---|---|
config | ELARAConfig | the current {@link ELARAConfig} |
def_dir | string | the relative dir path for the definition file |
dir | string | the ELARA solution directory absolute or relative path |
gen_dir | string | the relative dir path for the generated file |
name | string | the entity name |
#
SqlChangeTrackingDataSourceArgumentsƬ SqlChangeTrackingDataSourceArguments: Object
Defines the arguments for addSqlChangeTrackingDataSource command.
#
Type declarationName | Type | Description |
---|---|---|
config | ELARAConfig | the current {@link ELARAConfig} |
def_dir | string | the relative dir path for the definition file |
dir | string | the ELARA solution directory absolute or relative path |
gen_dir | string | the relative dir path for the generated file |
initialize | string | the string for initialize stored procedure name |
name | string | the entity name |
password | string | the string for the password |
tables | string [] | the strings for table names |
update | string | the string for update stored procedure name |
uri | URIString ``"mssql://"``\ | the mssql uri |
username | string | the string for the username |
#
SqlDataSourceArgumentsƬ SqlDataSourceArguments: Object
Defines the arguments for addSqlDataSource command.
#
Type declarationName | Type | Description |
---|---|---|
config | ELARAConfig | the current {@link ELARAConfig} |
def_dir | string | the relative dir path for the definition file |
dir | string | the ELARA solution directory absolute or relative path |
gen_dir | string | the relative dir path for the generated file |
name | string | the entity name |
password | string | the string for the password |
uri | URIString ``"mssql://"``\ | the mssql uri |
username | string | the string for the username |
#
addArrayDataSourceâ–¸ addArrayDataSource(args
): ELARAConfig
| null
Create a new {@link ArrayDataSourceDefinition}.
remarks
This command will create the entity if it doesnt exist already, otherwise will fail if a matching directory already exists.
#
ParametersName | Type |
---|---|
args | ArrayDataSourceArguments |
#
ReturnsELARAConfig
| null
the updated project {@link ELARAConfig}.
#
addClockDataSourceâ–¸ addClockDataSource(args
): ELARAConfig
| null
Create a new {@link ClockDataSourceDefinition}.
remarks
This command will create the entity if it doesnt exist already, otherwise will fail if a matching directory already exists.
#
ParametersName | Type |
---|---|
args | ClockDataSourceArguments |
#
ReturnsELARAConfig
| null
the updated project {@link ELARAConfig}.
#
addCsvDataSourceâ–¸ addCsvDataSource(args
): ELARAConfig
| null
Create a new {@link CsvDataSourceDefinition}.
remarks
This command will create the entity if it doesnt exist already, otherwise will fail if a matching directory already exists.
#
ParametersName | Type |
---|---|
args | CsvDataSourceArguments |
#
ReturnsELARAConfig
| null
the updated project {@link ELARAConfig}.
#
addExcelDataSourceâ–¸ addExcelDataSource(args
): ELARAConfig
| null
Create a new {@link ExcelDataSourceDefinition}.
remarks
This command will create the entity if it doesnt exist already, otherwise will fail if a matching directory already exists.
#
ParametersName | Type |
---|---|
args | ExcelDataSourceArguments |
#
ReturnsELARAConfig
| null
the updated project {@link ELARAConfig}.
#
addJsonDataSourceâ–¸ addJsonDataSource(args
): ELARAConfig
| null
Create a new {@link JsonDataSourceDefinition}.
remarks
This command will create the entity if it doesnt exist already, otherwise will fail if a matching directory already exists.
#
ParametersName | Type |
---|---|
args | JsonDataSourceArguments |
#
ReturnsELARAConfig
| null
the updated project {@link ELARAConfig}.
#
addRangeDataSourceâ–¸ addRangeDataSource(args
): ELARAConfig
| null
Create a new {@link RangeDataSourceDefinition}.
remarks
This command will create the entity if it doesnt exist already, otherwise will fail if a matching directory already exists.
#
ParametersName | Type |
---|---|
args | RangeDataSourceArguments |
#
ReturnsELARAConfig
| null
the updated project {@link ELARAConfig}.
#
addRestApiDataSourceâ–¸ addRestApiDataSource(args
): ELARAConfig
| null
Create a new {@link RestApiDataSourceDefinition}.
remarks
This command will create the entity if it doesnt exist already, otherwise will fail if a matching directory already exists.
#
ParametersName | Type |
---|---|
args | RestApiDataSourceArguments |
#
ReturnsELARAConfig
| null
the updated project {@link ELARAConfig}.
#
addSqlChangeTrackingDataSourceâ–¸ addSqlChangeTrackingDataSource(args
): Promise
<ELARAConfig
| null
>
Create a new {@link SqlChangeTrackingDataSourceDefinition}.
remarks
This command will create the entity if it doesnt exist already, otherwise will fail if a matching directory already exists.
#
ParametersName | Type |
---|---|
args | SqlChangeTrackingDataSourceArguments |
#
ReturnsPromise
<ELARAConfig
| null
>
the updated project {@link ELARAConfig}.
#
addSqlDataSourceâ–¸ addSqlDataSource(args
): ELARAConfig
| null
Create a new {@link SqlDataSourceDefinition}.
remarks
This command will create the entity if it doesnt exist already, otherwise will fail if a matching directory already exists.
#
ParametersName | Type |
---|---|
args | SqlDataSourceArguments |
#
ReturnsELARAConfig
| null
the updated project {@link ELARAConfig}.
#
Pipeline#
PipelineArgumentsƬ PipelineArguments: Object
Defines the arguments for addPipeline command.
#
Type declarationName | Type | Description |
---|---|---|
config | ELARAConfig | the current {@link ELARAConfig} |
def_dir | string | the relative dir path for the definition file |
dir | string | the ELARA solution directory absolute or relative path |
gen_dir | string | the relative dir path for the generated file |
name | string | the entity name |
#
addPipelineâ–¸ addPipeline(args
): ELARAConfig
| null
Create a new {@link PipelineDefinition}.
remarks
This command will edit the entity if it exists already, otherwise will fail if a matching datasource doesnt exist.
#
ParametersName | Type |
---|---|
args | PipelineArguments |
#
ReturnsELARAConfig
| null
the updated project {@link ELARAConfig}.
#
Plugin#
PluginArgumentsƬ PluginArguments: Object
Defines the arguments for addPlugin command.
#
Type declarationName | Type | Description |
---|---|---|
config | ELARAConfig | the current {@link ELARAConfig} |
def_dir | string | the relative dir path for the definition file |
dir | string | the ELARA solution directory absolute or relative path |
gen_dir | string | the relative dir path for the generated file |
name | string | the plugin name |
#
addPluginâ–¸ addPlugin(args
): ELARAConfig
| null
Create a new {@link ELARASchema}.
remarks
This command will edit the entity if it exists already, otherwise will fail if a matching datasource doesnt exist.
#
ParametersName | Type |
---|---|
args | PluginArguments |
#
ReturnsELARAConfig
| null
the updated project {@link ELARAConfig}.
#
Solution#
AssetSchemaArgumentsƬ AssetSchemaArguments: Object
Defines the arguments for {@link getAssetSchema} command.
#
Type declarationName | Type | Description |
---|---|---|
asset | string | null | the asset to remove |
config | ELARAConfig | the current {@link ELARAConfig} |
dir | string | the ELARA solution directory absolute or relative path |
#
BuildArgumentsƬ BuildArguments: Object
Defines the arguments for buildSchema command.
#
Type declarationName | Type | Description |
---|---|---|
clean | boolean | null | set to true if the build should commence with a clean |
config | ELARAConfig | the current {@link ELARAConfig} |
dir | string | the ELARA solution directory absolute or relative path |
#
DeployArgumentsƬ DeployArguments: Object
Defines the arguments for deploySchema command.
#
Type declarationName | Type | Description |
---|---|---|
config | ELARAConfig | the current {@link ELARAConfig} |
deployment | string | the deployment asset name to deploy |
dir | string | the ELARA solution directory absolute or relative path |
flush? | FlushType [] | flush the specified services |
overwrite? | boolean | set to true if all environments should be overwritten |
restart? | boolean | set to true if a reset of all service should occur |
verbose? | boolean | set to true if the deployment should show verbose logging |
#
DeploymentArgumentsƬ DeploymentArguments: Object
Defines the arguments for addDeployment command.
#
Type declarationName | Type | Description |
---|---|---|
application? | string | the application to include in the solution |
config | ELARAConfig | the current {@link ELARAConfig} |
dir | string | the ELARA solution directory absolute or relative path |
iterations_gp | bigint | undefined | the number iterations when training a Guassian Process |
iterations_utility_est | bigint | undefined | the number iterations to train the utility rate estimator |
iterations_xgb_opt | bigint | undefined | the number of iterations when training with XGBoost |
loglevel? | LogLevel | the log level to apply to the deployment |
name | string | the deployment name |
optimization_iterations | bigint | undefined | the number of iterations optimization should use |
optimization_randomness | number | undefined | the scale of randomness optimization should allow when exploring the cost surface (in units of the total objective function) |
optimization_serial_iterations | bigint | undefined | the number of serial mini-iterations optimization should use per iteration |
optimization_trajectories? | bigint | the number of simulation trajectories for optimizations for the deployment |
samples? | bigint | the number of training samples for the deployment |
sensitivity_trajectories? | bigint | the number of simulation trajectories for sensitivity calculations for the deployment |
server | string | the ELARA server url |
trajectories? | bigint | the number of simulation trajectories for the deployment |
warn? | boolean | set to true if the cli should prompt before deployment |
#
FlushTypeƬ FlushType: "all"
| "datasource"
| "training"
| "admin"
| "envs"
| "optimization"
| "data"
A deployment FlushType.
param
the desired {@link }.
remarks
Deploying a {@link ELARASchema} requires that a deployment existing in the configuration, and the EDK_CLIENT_ID
and EDK_CLIENT_SECRET
system environment variables have been set with a valid ELARA server key value pair.
#
InitArgumentsƬ InitArguments: Object
Defines the arguments for the init command.
#
Type declarationName | Type | Description |
---|---|---|
dir | string | the ELARA solution directory absolute or relative path |
name | string | the ELARA solution name |
version | string | the EDK version |
#
LinkedArgumentsƬ LinkedArguments: Object
Defines the arguments for linkedAssets command.
#
Type declarationName | Type | Description |
---|---|---|
asset | string | the asset to find the dependancies/dependants for |
config | ELARAConfig | the current {@link ELARAConfig} |
dir | string | the ELARA solution directory absolute or relative path |
#
RemoveArgumentsƬ RemoveArguments: Object
Defines the arguments for removeAsset command.
#
Type declarationName | Type | Description |
---|---|---|
all | boolean | null | set to true if a all assets should be removed |
asset | string | null | the asset to remove |
config | ELARAConfig | the current {@link ELARAConfig} |
dir | string | the ELARA solution directory absolute or relative path |
#
TokenArgumentsƬ TokenArguments: Object
Defines the arguments for getToken command.
#
Type declarationName | Type | Description |
---|---|---|
config | ELARAConfig | the current {@link ELARAConfig} |
deployment | string | the deployment asset name to deploy |
dir | string | the ELARA solution directory absolute or relative path |
#
UpdateArgumentsƬ UpdateArguments: Object
Defines the arguments for updateAssets command.
#
Type declarationName | Type | Description |
---|---|---|
asset? | string | null | the name of an asset to update |
clean | boolean | null | set to true if a clean should occur |
config | ELARAConfig | the current {@link ELARAConfig} |
dir | string | the ELARA solution directory absolute or relative path |
type? | string | null | the type of assets to update |
#
addDeploymentâ–¸ addDeployment(args
): ELARAConfig
| null
Create a deployment asset in the {@link ELARAConfig}.
#
ParametersName | Type |
---|---|
args | DeploymentArguments |
#
ReturnsELARAConfig
| null
the updated project {@link ELARAConfig}.
#
assetSchemaâ–¸ assetSchema(args
): ELARASchema
| null
Get an asset schema from a solution.
#
ParametersName | Type |
---|---|
args | AssetSchemaArguments |
#
ReturnsELARASchema
| null
the related asset {@link ELARASchema}.
#
buildSchemaâ–¸ buildSchema(args
): boolean
Build the solution {@link ELARASchema}.
#
ParametersName | Type |
---|---|
args | BuildArguments |
#
Returnsboolean
true if the update was successful.
#
configâ–¸ config(dir
): Promise
<ELARAConfig
| null
>
Load the config for an ELARA solution.
#
ParametersName | Type |
---|---|
dir | string |
#
ReturnsPromise
<ELARAConfig
| null
>
the {@link ELARAConfig} for the project.
#
deploySchemaâ–¸ deploySchema(args
): Promise
<boolean
>
Deploy the solution {@link ELARASchema}.
truen
remarks
Deploying a {@link ELARASchema} requires that a deployment existing in the configuration, and the EDK_CLIENT_ID
and EDK_CLIENT_SECRET
system environment variables have been set with a valid ELARA server key value pair.
#
ParametersName | Type |
---|---|
args | DeployArguments |
#
ReturnsPromise
<boolean
>
#
getTokenâ–¸ getToken(args
): Promise
<string
| null
>
Get an authentication token {@link ELARASchema}.
truen
remarks
Getting a token requires that a deployment existing in the configuration, and the EDK_CLIENT_ID
and EDK_CLIENT_SECRET
system environment variables have been set with a valid ELARA server key value pair.
#
ParametersName | Type |
---|---|
args | TokenArguments |
#
ReturnsPromise
<string
| null
>
#
initâ–¸ init(args
): Promise
<ELARAConfig
| null
>
Initialise a new ELARA solution and generate base artefacts.
remarks
This command will create the solution directory if it doesnt exist already, otherwise will fail if an existing solution exists in the directory.
#
ParametersName | Type |
---|---|
args | InitArguments |
#
ReturnsPromise
<ELARAConfig
| null
>
the {@link ELARAConfig} for the new project.
#
linkedAssetsâ–¸ linkedAssets(args
): ELARAConfig
| null
Find the linked assets in a solution.
#
ParametersName | Type |
---|---|
args | LinkedArguments |
#
ReturnsELARAConfig
| null
the project {@link ELARAConfig}.
#
removeAssetâ–¸ removeAsset(args
): ELARAConfig
| null
Remove an asset from a solution.
#
ParametersName | Type |
---|---|
args | RemoveArguments |
#
ReturnsELARAConfig
| null
the updated project {@link ELARAConfig}.
#
updateAssetsâ–¸ updateAssets(args
): Promise
<boolean
>
Update the generated assets in a solution.
#
ParametersName | Type |
---|---|
args | UpdateArguments |
#
ReturnsPromise
<boolean
>
true if the update was successful.
#
Structure#
AgentArgumentsƬ AgentArguments: Object
Defines the arguments for addAgentStructure command.
#
Type declarationName | Type | Description |
---|---|---|
concept | string | the agent concept |
config | ELARAConfig | the current {@link ELARAConfig} |
def_dir | string | the relative dir path for the definition file |
dir | string | the ELARA solution directory absolute or relative path |
gen_dir | string | the relative dir path for the generated file |
#
ProcessArgumentsƬ ProcessArguments: Object
Defines the arguments for addProcessStructure command.
#
Type declarationName | Type | Description |
---|---|---|
concept | string | the process concept |
config | ELARAConfig | the current {@link ELARAConfig} |
def_dir | string | the relative dir path for the definition file |
dir | string | the ELARA solution directory absolute or relative path |
gen_dir | string | the relative dir path for the generated file |
#
ResourceArgumentsƬ ResourceArguments: Object
Defines the arguments for addResourceStructure command.
#
Type declarationName | Type | Description |
---|---|---|
concept | string | the resource concept |
config | ELARAConfig | the current {@link ELARAConfig} |
def_dir | string | the relative dir path for the definition file |
dir | string | the ELARA solution directory absolute or relative path |
gen_dir | string | the relative dir path for the generated file |
#
ScenarioArgumentsƬ ScenarioArguments: Object
Defines the arguments for addScenario command.
#
Type declarationName | Type | Description |
---|---|---|
config | ELARAConfig | the current {@link ELARAConfig} |
def_dir | string | the relative dir path for the definition file |
dir | string | the ELARA solution directory absolute or relative path |
gen_dir | string | the relative dir path for the generated file |
name | string | the scneario name |
#
addAgentStructureâ–¸ addAgentStructure(args
): ELARAConfig
| null
Create a new {@link AgentDefinition}.
remarks
This command will edit the entity if it exists already, otherwise will fail if a matching datasource doesnt exist.
#
ParametersName | Type |
---|---|
args | AgentArguments |
#
ReturnsELARAConfig
| null
the updated project {@link ELARAConfig}.
#
addProcessStructureâ–¸ addProcessStructure(args
): ELARAConfig
| null
Create a new {@link ProcessDefinition}.
remarks
This command will edit the entity if it exists already, otherwise will fail if a matching datasource doesnt exist.
#
ParametersName | Type |
---|---|
args | ProcessArguments |
#
ReturnsELARAConfig
| null
the updated project {@link ELARAConfig}.
#
addResourceStructureâ–¸ addResourceStructure(args
): ELARAConfig
| null
Create a new {@link ResourceDefinition}.
remarks
This command will edit the entity if it exists already, otherwise will fail if a matching datasource doesnt exist.
#
ParametersName | Type |
---|---|
args | ResourceArguments |
#
ReturnsELARAConfig
| null
the updated project {@link ELARAConfig}.
#
addScenarioâ–¸ addScenario(args
): ELARAConfig
| null
Create a new {@link ScenarionDefinition}.
remarks
This command will edit the entity if it exists already, otherwise will fail if a matching datasource doesnt exist.
#
ParametersName | Type |
---|---|
args | ScenarioArguments |
#
ReturnsELARAConfig
| null
the updated project {@link ELARAConfig}.