ScenarioCollection

ScenarioCollection class

Represents the list of scenarios.

class ScenarioCollection;

Properties

PropertyTypeDescription
activeIndexnumberGets and sets which scenario is selected.
lastSelectednumberIndicates which scenario was last selected by the user to be run/shown.

Methods

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

activeIndex

Gets and sets which scenario is selected.

activeIndex : number;

lastSelected

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

lastSelected : number;

get(number)

Gets the Scenario object by the index.

get(index: number) : Scenario;

Parameters:

ParameterTypeDescription
indexnumberThe specific index in the list.

Returns

Scenario

getActiveIndex()

@deprecated. Please use the ‘activeIndex’ property instead. Gets and sets which scenario is selected.

getActiveIndex() : number;

setActiveIndex(number)

@deprecated. Please use the ‘activeIndex’ property instead. Gets and sets which scenario is selected.

setActiveIndex(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getLastSelected()

@deprecated. Please use the ’lastSelected’ property instead. Indicates which scenario was last selected by the user to be run/shown.

getLastSelected() : number;

setLastSelected(number)

@deprecated. Please use the ’lastSelected’ property instead. 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()

@deprecated. Please use the ‘count’ property instead. Gets the number of elements contained in.

getCount() : number;

isNull()

Checks whether the implementation object is null.

isNull() : boolean;