new Operation(operation_name, operation_config)
The Operation specified by the user to be run.
Parameters:
Name | Type | Description |
---|---|---|
operation_name |
string | |
operation_config |
Object |
- Copyright:
-
- Crown Copyright 2016
- License:
-
- Apache-2.0
- Source:
Methods
-
<private> _parse_config(operation_config)
-
Reads and parses the given config.
Parameters:
Name Type Description operation_config
Object - Source:
-
get_config()
-
Returns the value of the Operation as it should be displayed in a recipe config.
- Source:
Returns:
- Type
- Object
-
add_ingredient(ingredient)
-
Adds a new Ingredient to this Operation.
Parameters:
Name Type Description ingredient
Ingredient - Source:
-
set_ing_values(ing_values)
-
Set the Ingredient values for this Operation.
Parameters:
Name Type Description ing_values
Array.<Object> - Source:
-
get_ing_values()
-
Get the Ingredient values for this Operation.
- Source:
Returns:
- Type
- Array.<Object>
-
set_breakpoint(value)
-
Set whether this Operation has a breakpoint.
Parameters:
Name Type Description value
boolean - Source:
-
is_breakpoint()
-
Returns true if this Operation has a breakpoint set.
- Source:
Returns:
- Type
- boolean
-
set_disabled(value)
-
Set whether this Operation is disabled.
Parameters:
Name Type Description value
boolean - Source:
-
is_disabled()
-
Returns true if this Operation is disabled.
- Source:
Returns:
- Type
- boolean
-
is_flow_control()
-
Returns true if this Operation is a flow control.
- Source:
Returns:
- Type
- boolean