kaos.policy.history
Interface KAoSEventHistoryComponent

All Superinterfaces:
KAoSExtensionComponent
All Known Subinterfaces:
HistoryMonitor
All Known Implementing Classes:
HistoryMonitorImpl, KAoSEventHistoryComponentImpl

public interface KAoSEventHistoryComponent
extends KAoSExtensionComponent

This interface extends KAoSExtensionComponent interface. It adds a method signature that takes in an event class and returns the # events matching that event class from its set of logged events.


Method Summary
 int countEventsOfType(BasicActionDescription eventClass)
          This method is used to find out the # occurrences of actual events of the type indicated by an event class.
 
Methods inherited from interface kaos.policy.guard.KAoSExtensionComponent
changeKAoSExtensionComponentEnabledStatus, getAssociatedOntologyType, getKAoSExtensionComponentEnabledStatus, getKAoSExtensionComponentName
 

Method Detail

countEventsOfType

int countEventsOfType(BasicActionDescription eventClass)
This method is used to find out the # occurrences of actual events of the type indicated by an event class.

Parameters:
eventClass - A BasicActionDescription object specifying the type of event class.
Returns:
the # events in this log that are instances of the specified event class.