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.EventObjectThe class for event objects used in dynamic preference aggregation- Author:
- Bastian Wolf
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description UpdateEvent(java.lang.Object source, PreferenceOrder<T> result)constructor for an update containing the aggregation result
 - 
Method SummaryModifier and Type Method Description PreferenceOrder<T>getResult()returns the result for this update eventbooleansetResult(PreferenceOrder<T> result)Sets the result in for this update event
 
- 
- 
- 
Constructor Detail- 
UpdateEventpublic UpdateEvent(java.lang.Object source, PreferenceOrder<T> result)constructor for an update containing the aggregation result- Parameters:
- source- where the event occurred
- result- of the occurring event
 
 
- 
 - 
Method Detail- 
setResultpublic 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
 
 - 
getResultpublic PreferenceOrder<T> getResult() returns the result for this update event- Returns:
- the result for this update event
 
 
- 
 
-