Package net.sf.tweety.preferences.events
Class UpdateEvent<T>
- java.lang.Object
-
- java.util.EventObject
-
- net.sf.tweety.preferences.events.UpdateEvent<T>
-
- Type Parameters:
T
- generic preference order type
- All Implemented Interfaces:
java.io.Serializable
public class UpdateEvent<T> extends java.util.EventObject
The class for event objects used in dynamic preference aggregation- Author:
- Bastian Wolf
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UpdateEvent(java.lang.Object source, PreferenceOrder<T> result)
constructor for an update containing the aggregation result
-
Method Summary
Modifier and Type Method Description PreferenceOrder<T>
getResult()
returns the result for this update eventboolean
setResult(PreferenceOrder<T> result)
Sets the result in for this update event
-
-
-
Constructor Detail
-
UpdateEvent
public UpdateEvent(java.lang.Object source, PreferenceOrder<T> result)
constructor for an update containing the aggregation result- Parameters:
source
- where the event occurredresult
- of the occurring event
-
-
Method Detail
-
setResult
public boolean setResult(PreferenceOrder<T> result)
Sets the result in for this update event- Parameters:
result
- of this update event- Returns:
- true iff the operation was successful
-
getResult
public PreferenceOrder<T> getResult()
returns the result for this update event- Returns:
- the result for this update event
-
-