Class SingleLevelBinary
Object
SingleLevelBinary
- All Implemented Interfaces:
SingleLevelOutputEnabled
- Direct Known Subclasses:
SingleLevelAnd,SingleLevelOr
Base class for a
SingleLevelOutputEnabled that combines two existing such classes.- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSingleLevelBinary(SingleLevelOutputEnabled enabled1, SingleLevelOutputEnabled enabled2) Creates a newSingleLevelBinaryinstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
SingleLevelBinary
Creates a newSingleLevelBinaryinstance.- Parameters:
enabled1- The first source of output-names that are enabled.enabled2- The second source of output-names that are enabled.
-
-
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.
-