Class SingleLevelOr

Object
SingleLevelBinary
SingleLevelOr
All Implemented Interfaces:
SingleLevelOutputEnabled

public class SingleLevelOr extends SingleLevelBinary
Outputs are enabled if they are contained in either of two SingleLevelOutputEnabled.
Author:
Owen Feehan
  • Constructor Details

  • Method Details

    • combine

      public boolean combine(boolean first, boolean second)
      Description copied from class: SingleLevelBinary
      Determines whether an output is enabled via a combination of the two MultiLevelOutputEnabled.
      Specified by:
      combine in class SingleLevelBinary
      Parameters:
      first - whether enabled1 is enabled.
      second - whether enabled2 is enabled.
      Returns:
      whether the combined output is enabled.