Class Update<T>
java.lang.Object
org.tweetyproject.preferences.update.Update<T>
- Type Parameters:
T
- the generic element type
This Update-class provides update-elements used within dynamic preference aggregations
- Author:
- Bastian Wolf
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionreturns the third element of this quadruplereturns the fourth element of this quadruplereturns the second element of this quadrupleint
returns the first element of this quadrupleint
hashCode()
void
sets the third element of this triplevoid
setElement
(T element) sets the fourth element of this triplevoid
sets the second element of this triplevoid
setPreferenceOrderIndex
(int index) sets the first element of this triple
-
Constructor Details
-
Update
The constructor for update-elements- Parameters:
index
- the preference operation index in the input setop
- the operation that is going to be used (WEAKEN or STRENGTHEN)amount
- the amount of operations to be usedelement
- 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
returns the second element of this quadruple- Returns:
- the second element of this quadruple
-
setOperation
sets the second element of this triple- Parameters:
op
- an object of type E
-
getAmount
returns the third element of this quadruple- Returns:
- the third element of this quadruple
-
setAmount
sets the third element of this triple- Parameters:
amount
- an object of type F
-
getElement
returns the fourth element of this quadruple- Returns:
- the fourth element of this quadruple
-
setElement
sets the fourth element of this triple- Parameters:
element
- an object of type H
-
hashCode
public int hashCode()
-