Initializing help system before first use

ExecutionMode

An ExecutionMode represents the various ways of executing a model. Two modes, named LOAD and RUN, are defined for all preojects, but others can be specified as part of the model. The name of an execution mode may optionally passed to ScenarioProperties#execute to specify how the execution is to take place.

Method summary

name description
getClearsInputData Whether use of this execution mode will cause input data to be cleared. The LOAD execution mode has this property set.
getDescription Descriptive text about the execution mode (may be blank)
getName Name of the execution mode
getNumberOfThreads Reeturns either a number representing a positive integer (denoting the number of threads this execution mode is limited to), or undefined (denoting no limit at all). This representation means that the result of this method can be used in a conditional expression to test if there is a thread limit; and further, if there is no limit, use of it in an arithmetic expression will treat it as if it were NaN.
constructor

Constructor

new ExecutionMode ( data )

Creates an Execution mode. The constructor should not be invoked directly, instances can be obtained via Project#getExecutionModes.

Parameters:
params
Name Type Description
data Payload data for execution mode
details

Methods

method
getClearsInputData ( ) → {boolean}

Whether use of this execution mode will cause input data to be cleared. The LOAD execution mode has this property set.

details
Returns:
returns table
Type Description
type
boolean
Back to Top
method
getDescription ( ) → {string}

Descriptive text about the execution mode (may be blank)

details
Returns:
returns table
Type Description
type
string
Back to Top
method
getName ( ) → {string}

Name of the execution mode

details
Returns:
returns table
Type Description
type
string
Back to Top
method
getNumberOfThreads ( ) → {number|undefined}

Reeturns either a number representing a positive integer (denoting the number of threads this execution mode is limited to), or undefined (denoting no limit at all). This representation means that the result of this method can be used in a conditional expression to test if there is a thread limit; and further, if there is no limit, use of it in an arithmetic expression will treat it as if it were NaN.

details
Returns:
returns table
Type Description
type
number | undefined
Back to Top