Class AllDifferent

java.lang.Object
ca.uqac.lif.cep.functions.Function
ca.uqac.lif.cep.functions.UnaryFunction<Object,Boolean>
netp.AllDifferent
All Implemented Interfaces:
ca.uqac.lif.cep.Duplicable, ca.uqac.lif.cep.functions.DuplicableFunction

public class AllDifferent extends ca.uqac.lif.cep.functions.UnaryFunction<Object,Boolean>
Compares every previous entries on a one-to-one basis. This function takes width as an argument which specifies the number of entries to compare. Complexity O(n)
  • Field Summary

    Fields inherited from class ca.uqac.lif.cep.functions.Function

    s_maxInputArity
  • Constructor Summary

    Constructors
    Constructor
    Description
    Instantiate this function with an infinite width.
    AllDifferent(int width)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    int
     

    Methods inherited from class ca.uqac.lif.cep.functions.UnaryFunction

    duplicate, evaluate, getInputArity, getInputTypesFor, getOutputArity, getOutputTypeFor, reset

    Methods inherited from class ca.uqac.lif.cep.functions.Function

    duplicate, evaluate, evaluate, evaluateLazy, evaluatePartial, printState, readState

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AllDifferent

      public AllDifferent()
      Instantiate this function with an infinite width.
    • AllDifferent

      public AllDifferent(int width)
      Parameters:
      width - The number of entries to compare one-to-one. 0 or less means infinite width.
  • Method Details

    • getValue

      public Boolean getValue(Object x)
      Specified by:
      getValue in class ca.uqac.lif.cep.functions.UnaryFunction<Object,Boolean>
    • getWidth

      public int getWidth()