org.openmi.standard
Interface IListener


public interface IListener

Listener interface


Method Summary
 IEvent.EventType getAcceptedEventType(int acceptedEventTypeIndex)
          Get accepted event type with index acceptedEventTypeIndex.
 int getAcceptedEventTypeCount()
          Get number of accepted event types
 void onEvent(IEvent event)
          Method called when event is raised
 

Method Detail

onEvent

void onEvent(IEvent event)
Method called when event is raised

Parameters:
event - Event that has been raised.

getAcceptedEventTypeCount

int getAcceptedEventTypeCount()
Get number of accepted event types

Returns:
Number of accepted event types.

getAcceptedEventType

IEvent.EventType getAcceptedEventType(int acceptedEventTypeIndex)
Get accepted event type with index acceptedEventTypeIndex.

If this method is invoked with an argument that is outside the interval [0, numberOfAcceptedEventsTypes], where numberOfAcceptedEventsTypes is the values obtained through the method GetAcceptedEventTypeCount(), an exception must be thrown.

Parameters:
acceptedEventTypeIndex - index in accepted event types.
Returns:
Accepted event type.