Class SingleLevelBinary
Object
org.anchoranalysis.io.output.enabled.single.SingleLevelBinary
- All Implemented Interfaces:
SingleLevelOutputEnabled
- Direct Known Subclasses:
SingleLevelAnd,SingleLevelOr
public abstract class SingleLevelBinary extends Object implements SingleLevelOutputEnabled
Base class for a
SingleLevelOutputEnabled that combines two existing such classes.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Modifier Constructor Description protectedSingleLevelBinary(SingleLevelOutputEnabled enabled1, SingleLevelOutputEnabled enabled2) -
Method Summary
Modifier and Type Method Description protected abstract booleancombine(boolean first, boolean second)Determines whether an output is enabled via a combination of the twoMultiLevelOutputEnabled.booleanisOutputEnabled(String outputName)Is a particular a particular output-enabled?
-
Constructor Details
-
Method Details
-
isOutputEnabled
Description copied from interface:SingleLevelOutputEnabledIs a particular a particular output-enabled?- Specified by:
isOutputEnabledin interfaceSingleLevelOutputEnabled- Parameters:
outputName- the name of the output- Returns:
- true iff the output is allowed
-
combine
protected abstract boolean combine(boolean first, boolean second)Determines whether an output is enabled via a combination of the twoMultiLevelOutputEnabled.- Parameters:
first- whetherenabled1is enabled.second- whetherenabled2is enabled.- Returns:
- whether the combined output is enabled.
-