Class Update<T>

java.lang.Object
org.tweetyproject.preferences.update.Update<T>
Type Parameters:
T - the generic element type

public class Update<T> extends Object
This Update-class provides update-elements used within dynamic preference aggregations
Author:
Bastian Wolf
  • Constructor Details

    • Update

      public Update(int index, Operation op, Integer amount, T element)
      The constructor for update-elements
      Parameters:
      index - the preference operation index in the input set
      op - the operation that is going to be used (WEAKEN or STRENGTHEN)
      amount - the amount of operations to be used
      element - the element within the preference order to be affected
  • Method Details

    • getPreferenceOrderIndex

      public int getPreferenceOrderIndex()
      returns the first element of this quadruple
      Returns:
      the first element of this quadruple
    • setPreferenceOrderIndex

      public void setPreferenceOrderIndex(int index)
      sets the first element of this triple
      Parameters:
      index - the index of the preference order in the input set
    • getOperation

      public Operation getOperation()
      returns the second element of this quadruple
      Returns:
      the second element of this quadruple
    • setOperation

      public void setOperation(Operation op)
      sets the second element of this triple
      Parameters:
      op - an object of type E
    • getAmount

      public Integer getAmount()
      returns the third element of this quadruple
      Returns:
      the third element of this quadruple
    • setAmount

      public void setAmount(Integer amount)
      sets the third element of this triple
      Parameters:
      amount - an object of type F
    • getElement

      public T getElement()
      returns the fourth element of this quadruple
      Returns:
      the fourth element of this quadruple
    • setElement

      public void setElement(T element)
      sets the fourth element of this triple
      Parameters:
      element - an object of type H
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object