Constructor
new RecycleCommand(target, value, duration, stage, induction)
Create a new RecycleCommand.
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
target |
EngineNumber | Recovery amount and units. | |
value |
EngineNumber | Reuse amount and units. | |
duration |
YearMatcher | Duration of recovery. | |
stage |
string | Recycling stage ("eol" or "recharge"). | |
induction |
EngineNumber | string | null | null | Induction amount, "default", or null for backward compatibility. |
- Source:
Methods
getDuration() → {YearMatcher}
Get the duration for which this recycle applies.
- Source:
Returns:
The duration specification, or null for all years.
- Type
- YearMatcher
getInduction() → {EngineNumber|string|null}
Get the induction rate for this recycle command.
- Source:
Returns:
The induction amount, "default", or null if not specified.
- Type
- EngineNumber | string | null
getIsCompatible() → {boolean}
Check if this recycle command is compatible with UI editing.
- Source:
Returns:
Always returns true as recycle commands are UI-compatible.
- Type
- boolean
getStage() → {string}
Get the recycling stage for this recycle command.
- Source:
Returns:
The recycling stage ("eol" or "recharge").
- Type
- string
getTarget() → {EngineNumber}
Get the target (recovery amount) of this recycle command.
- Source:
Returns:
The recovery amount with units.
- Type
- EngineNumber
getTypeName() → {string}
Get the type name of this recycle command.
- Source:
Returns:
Always returns "recycle".
- Type
- string
getValue() → {EngineNumber}
Get the value (reuse amount) associated with this recycle.
- Source:
Returns:
The reuse amount with units.
- Type
- EngineNumber