Class MultiScopeRestriction

  • All Implemented Interfaces:
    Destroyable, GlobalInfoSupporter, LoggingLevelHandler, LoggingSupporter, OptionHandler, SizeOfHandler, Serializable

    public class MultiScopeRestriction
    extends AbstractScopeRestriction
    Combines multiple scope restrictions.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
     
    -restriction <adams.flow.execution.debug.AbstractScopeRestriction> [-restriction ...] (property: restrictions)
        The array of scope restrictions to use.
        default: 
     
    -combination <AND|OR|XOR> (property: combination)
        How to combine the results of the specified scope restrictions; AND: all 
        must be true, OR: at least one must be true, XOR: exactly one must be true.
        default: AND
     
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • MultiScopeRestriction

        public MultiScopeRestriction()
    • Method Detail

      • setRestrictions

        public void setRestrictions​(AbstractScopeRestriction[] value)
        Sets the scope restrictions to use.
        Parameters:
        value - the restrictions to use
      • getRestrictions

        public AbstractScopeRestriction[] getRestrictions()
        Returns the restrictions in use.
        Returns:
        the restrictions
      • restrictionsTipText

        public String restrictionsTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • combinationTipText

        public String combinationTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • checkScope

        public boolean checkScope​(Actor actor,
                                  ExecutionStage stage)
        Checks whether the specified actor falls within the scope.
        Specified by:
        checkScope in class AbstractScopeRestriction
        Parameters:
        actor - the actor to check
        stage - the execution stage
        Returns:
        true if within scope