Constructor
new SimulationStanza(scenarios, isCompatible)
Create a new SimulationStanza.
Parameters:
| Name | Type | Description |
|---|---|---|
scenarios |
Array.<SimulationScenario> | Array of simulation scenarios. |
isCompatible |
boolean | Whether stanza is compatible with UI editing. |
- Source:
Methods
getIsCompatible() → {boolean}
Check if this stanza is compatible with UI editing.
- Source:
Returns:
True if stanza can be edited in UI, false otherwise.
- Type
- boolean
getName() → {string}
Get the name of this stanza.
- Source:
Returns:
The string "simulations".
- Type
- string
getScenarios() → {Array.<SimulationScenario>}
Get the simulation scenarios in this stanza.
- Source:
Returns:
Array of simulation scenarios.
- Type
- Array.<SimulationScenario>
toCode(spaces) → {string}
Generate the code representation of this stanza.
Generates the QubecTalk code representation of this simulations stanza,
including all its scenarios and appropriate indentation.
Parameters:
| Name | Type | Description |
|---|---|---|
spaces |
number | Number of spaces to use for indentation. |
- Source:
Returns:
The code representation of the stanza.
- Type
- string