org.mars_sim.msp.simulation.events
Interface HistoricalEventListener

All Known Implementing Classes:
EventTableModel

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 consequective 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 consequective 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..