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
ConstructorsModifierConstructorDescriptionprotected
SingleLevelBinary
(SingleLevelOutputEnabled enabled1, SingleLevelOutputEnabled enabled2) Creates a newSingleLevelBinary
instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract boolean
combine
(boolean first, boolean second) Determines whether an output is enabled via a combination of the twoMultiLevelOutputEnabled
.boolean
isOutputEnabled
(String outputName) Is a particular a particular output-enabled?
-
Constructor Details
-
SingleLevelBinary
Creates a newSingleLevelBinary
instance.- 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:SingleLevelOutputEnabled
Is a particular a particular output-enabled?- Specified by:
isOutputEnabled
in 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
- whetherenabled1
is enabled.second
- whetherenabled2
is enabled.- Returns:
- whether the combined output is enabled.
-