Class OutputEnabledDelta
Object
OutputEnabledDelta
Additional output-names to enable or disable from an existing set of output-enabled rules.
There is an order of application:
- First, any
outputsToEnable
are applied. - Second, any
outputsToDisable
are disabled.
This means that outputsToDisable
has precedence over any enabling.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyDelta
(MultiLevelOutputEnabled source) Applies the changes to enable or disable additional outputs, if they are defined.void
Assigns additional outputs to disable.void
Assigns additional outputs to enable.
-
Constructor Details
-
OutputEnabledDelta
public OutputEnabledDelta()
-
-
Method Details
-
applyDelta
Applies the changes to enable or disable additional outputs, if they are defined.- Parameters:
source
- the output-enabled rules before any changes are applied- Returns:
- output-enabled rules after applying changes
-
enableAdditionalOutputs
Assigns additional outputs to enable.Note that this can be specific outputs, or it can be rules that permit everything.
- Parameters:
outputs
- the outputs to add
-
disableAdditionalOutputs
Assigns additional outputs to disable.- Parameters:
outputs
- the outputs to add
-