Class MultiLevelAnd
Object
org.anchoranalysis.io.output.enabled.multi.MultiLevelBinary
org.anchoranalysis.io.output.enabled.multi.MultiLevelAnd
- All Implemented Interfaces:
MultiLevelOutputEnabled,SingleLevelOutputEnabled
public class MultiLevelAnd extends MultiLevelBinary
Outputs are enabled if they are contained in both of two
MultiLevelOutputEnableds.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description MultiLevelAnd(MultiLevelOutputEnabled enabled1, MultiLevelOutputEnabled enabled2)Creates using twoMultiLevelOutputEnableds. -
Method Summary
Modifier and Type Method Description protected booleancombine(boolean first, boolean second)Determines whether an output is enabled via a combination of the twoMultiLevelOutputEnabled.protected SingleLevelOutputEnabledcombineSecond(SingleLevelOutputEnabled first, SingleLevelOutputEnabled second)Builds a second-level output by combiningenabled1andenabled2.Methods inherited from class org.anchoranalysis.io.output.enabled.multi.MultiLevelBinary
isOutputEnabled, second
-
Constructor Details
-
MultiLevelAnd
Creates using twoMultiLevelOutputEnableds.- 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:MultiLevelBinaryDetermines whether an output is enabled via a combination of the twoMultiLevelOutputEnabled.- Specified by:
combinein classMultiLevelBinary- Parameters:
first- whetherenabled1is enabled.second- whetherenabled2is enabled.- Returns:
- whether the combined output is enabled.
-
combineSecond
protected SingleLevelOutputEnabled combineSecond(SingleLevelOutputEnabled first, SingleLevelOutputEnabled second)Description copied from class:MultiLevelBinaryBuilds a second-level output by combiningenabled1andenabled2.- Specified by:
combineSecondin classMultiLevelBinary- Parameters:
first- theMultiLevelOutputEnabledcorresponding toenabled1.second- theMultiLevelOutputEnabledcorresponding toenabled2.- Returns:
- the combined output.
-