Package net.sf.tweety.preferences.events
Class UpdatePrinter<T>
- java.lang.Object
-
- net.sf.tweety.preferences.events.UpdatePrinter<T>
-
- Type Parameters:
T
- the generic type
- All Implemented Interfaces:
java.util.EventListener
,UpdateListener<T>
public class UpdatePrinter<T> extends java.lang.Object implements UpdateListener<T>
This exemplary class implements a simple printer for update events writing its result into the console- Author:
- Bastian Wolf
-
-
Constructor Summary
Constructors Constructor Description UpdatePrinter()
-
Method Summary
Modifier and Type Method Description void
eventOccurred(UpdateEvent<T> e)
This method is called every time an update occurs
-
-
-
Method Detail
-
eventOccurred
public void eventOccurred(UpdateEvent<T> e)
This method is called every time an update occurs- Specified by:
eventOccurred
in interfaceUpdateListener<T>
- Parameters:
e
- the update event observed by the listener
-
-