Constructor
new AssumeCommand(mode, stream, duration)
Create a new AssumeCommand.
Parameters:
| Name | Type | Description |
|---|---|---|
mode |
string | The assumption mode: "no", "only recharge", or "continued". |
stream |
string | The target stream (e.g., "sales"). |
duration |
YearMatcher | null | Duration specification or null for all years. |
- Source:
Methods
getDuration() → {YearMatcher|null}
Get the duration for which this command applies.
- Source:
Returns:
The duration specification, or null for all years.
- Type
- YearMatcher | null
getIsCompatible() → {boolean}
Check if this command is compatible with UI editing.
- Source:
Returns:
Always returns true as assume commands are UI-compatible.
- Type
- boolean
getMode() → {string}
Get the assumption mode.
- Source:
Returns:
The mode: "no", "only recharge", or "continued".
- Type
- string
getStream() → {string}
Get the target stream.
- Source:
Returns:
The target stream name (e.g., "sales").
- Type
- string
getTypeName() → {string}
Get the type name of this command.
- Source:
Returns:
Always returns "assume".
- Type
- string