de.cau.cs.kieler.kvid.datadistributor
Interface IProviderListener

All Known Implementing Classes:
DataDistributor

public interface IProviderListener

Classes who listen on a data source, e.g. classes which implement the IDataProvider interface, must implement this interface and register as listeners.

Rating red

Method Summary
 void triggerInitialization()
          Will be triggered when the current IDataProvider starts giving data.
 void triggerWrapup()
          Will be triggered when the current IDataProvider stops giving data.
 void update(JSONObject data, boolean isHistoryStep)
          Call this every time the data to visualize has changed to trigger the visualization of the new data.
 

Method Detail

triggerInitialization

void triggerInitialization()
Will be triggered when the current IDataProvider starts giving data.


triggerWrapup

void triggerWrapup()
Will be triggered when the current IDataProvider stops giving data.


update

void update(JSONObject data,
            boolean isHistoryStep)
Call this every time the data to visualize has changed to trigger the visualization of the new data.

Parameters:
data - The new data for the next visualization step in JSON
isHistoryStep - Does the data need special handling because it is history data?