ScenarioCollection

ScenarioCollection class

Represents the list of scenarios.

class ScenarioCollection;

Methods

MethodDescription
get(number)Gets the Scenario object by the index.
getActiveIndex()Gets and sets which scenario is selected.
setActiveIndex(number)Gets and sets which scenario is selected.
getLastSelected()Indicates which scenario was last selected by the user to be run/shown.
setLastSelected(number)Indicates which scenario was last selected by the user to be run/shown.
add(string)Adds a scenario.
getCount()Gets the number of elements contained in.
isNull()Checks whether the implementation object is null.

get(number)

Gets the Scenario object by the index.

get(index: number) : Scenario;

Parameters:

ParameterTypeDescription
indexnumberThe specific index in the list.

Returns

Scenario

getActiveIndex()

Gets and sets which scenario is selected.

getActiveIndex() : number;

setActiveIndex(number)

Gets and sets which scenario is selected.

setActiveIndex(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getLastSelected()

Indicates which scenario was last selected by the user to be run/shown.

getLastSelected() : number;

setLastSelected(number)

Indicates which scenario was last selected by the user to be run/shown.

setLastSelected(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

add(string)

Adds a scenario.

add(name: string) : number;

Parameters:

ParameterTypeDescription
namestringThe name of scenario.

Returns

The index in the list of scenarios.

getCount()

Gets the number of elements contained in.

getCount() : number;

isNull()

Checks whether the implementation object is null.

isNull() : boolean;