org.mars_sim.msp.core.events
Interface HistoricalEventListener


public interface HistoricalEventListener

This interface is implemented by any object that is to receive notification of the registration or removal of an HistoricalEvent.


Method Summary
 void eventAdded(int index, HistoricalEvent event)
          A new event has been added at the specified manager.
 void eventsRemoved(int startIndex, int endIndex)
          A consecutive sequence of events have been removed from the manager.
 

Method Detail

eventAdded

void eventAdded(int index,
                HistoricalEvent event)
A new event has been added at the specified manager.

Parameters:
index - Index of new event in the manager.
event - The new event added.

eventsRemoved

void eventsRemoved(int startIndex,
                   int endIndex)
A consecutive sequence of events have been removed from the manager.

Parameters:
startIndex - First exclusive index of the event to be removed.
endIndex - Last exclusive index of the event to be removed..


Copyright © 2009-2013. All Rights Reserved.