Class RuleSetProperty.Local

java.lang.Object
fr.lirmm.graphik.integraal.rulesetanalyser.property.RuleSetProperty.Default
fr.lirmm.graphik.integraal.rulesetanalyser.property.RuleSetProperty.Local
All Implemented Interfaces:
RuleSetProperty
Direct Known Subclasses:
DisconnectedProperty, DomainRestrictedProperty, FrontierGuardedProperty, FrontierOneProperty, GuardedProperty, LinearProperty, RangeRestrictedProperty
Enclosing interface:
RuleSetProperty

public abstract static class RuleSetProperty.Local extends RuleSetProperty.Default
Abstract class usefull for implementing local rule set properties.
  • Constructor Details

    • Local

      protected Local()
      Creates a local property implementation.
  • Method Details

    • check

      public int check(AnalyserRuleSet ruleset)
      Description copied from interface: RuleSetProperty
      Check whether the given rule set satisfies the property or does not.
      Specified by:
      check in interface RuleSetProperty
      Overrides:
      check in class RuleSetProperty.Default
      Parameters:
      ruleset - the rule set to evaluate
      Returns:
      A negative value if the ruleset does not satisfy the property, a positive value if it does, and 0 if unknown.
    • check

      public abstract int check(Rule r)
      Evaluates the property on a single rule.
      Parameters:
      r - the rule to evaluate
      Returns:
      the property result for the rule