Class SingleLevelOr
Object
SingleLevelBinary
SingleLevelOr
- All Implemented Interfaces:
SingleLevelOutputEnabled
Outputs are enabled if they are contained in either of two
SingleLevelOutputEnabled.- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionSingleLevelOr(SingleLevelOutputEnabled enabled1, SingleLevelOutputEnabled enabled2) Creates using twoSingleLevelOutputEnableds. -
Method Summary
Modifier and TypeMethodDescriptionbooleancombine(boolean first, boolean second) Determines whether an output is enabled via a combination of the twoMultiLevelOutputEnabled.Methods inherited from class org.anchoranalysis.io.output.enabled.single.SingleLevelBinary
isOutputEnabled
-
Constructor Details
-
SingleLevelOr
Creates using twoSingleLevelOutputEnableds.- Parameters:
enabled1- the first source of output-names that are enabledenabled2- the second source of output-names that are enabled
-
-
Method Details
-
combine
public boolean combine(boolean first, boolean second) Description copied from class:SingleLevelBinaryDetermines whether an output is enabled via a combination of the twoMultiLevelOutputEnabled.- Specified by:
combinein classSingleLevelBinary- Parameters:
first- whetherenabled1is enabled.second- whetherenabled2is enabled.- Returns:
- whether the combined output is enabled.
-