Class MultiLevelAnd
Object
MultiLevelBinary
MultiLevelAnd
- All Implemented Interfaces:
MultiLevelOutputEnabled
,SingleLevelOutputEnabled
Outputs are enabled if they are contained in both of two
MultiLevelOutputEnabled
s.- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionMultiLevelAnd
(MultiLevelOutputEnabled enabled1, MultiLevelOutputEnabled enabled2) Creates using twoMultiLevelOutputEnabled
s. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
combine
(boolean first, boolean second) Determines whether an output is enabled via a combination of the twoMultiLevelOutputEnabled
.protected SingleLevelOutputEnabled
combineSecond
(SingleLevelOutputEnabled first, SingleLevelOutputEnabled second) Builds a second-level output by combiningenabled1
andenabled2
.Methods inherited from class org.anchoranalysis.io.output.enabled.multi.MultiLevelBinary
isOutputEnabled, second
-
Constructor Details
-
MultiLevelAnd
Creates using twoMultiLevelOutputEnabled
s.- Parameters:
enabled1
- the first source of output-names that are enabled.enabled2
- the second source of output-names that are enabled.
-
-
Method Details
-
combine
protected boolean combine(boolean first, boolean second) Description copied from class:MultiLevelBinary
Determines whether an output is enabled via a combination of the twoMultiLevelOutputEnabled
.- Specified by:
combine
in classMultiLevelBinary
- Parameters:
first
- whetherenabled1
is enabled.second
- whetherenabled2
is enabled.- Returns:
- whether the combined output is enabled.
-
combineSecond
protected SingleLevelOutputEnabled combineSecond(SingleLevelOutputEnabled first, SingleLevelOutputEnabled second) Description copied from class:MultiLevelBinary
Builds a second-level output by combiningenabled1
andenabled2
.- Specified by:
combineSecond
in classMultiLevelBinary
- Parameters:
first
- theMultiLevelOutputEnabled
corresponding toenabled1
.second
- theMultiLevelOutputEnabled
corresponding toenabled2
.- Returns:
- the combined output.
-