kaos.core.csi.extension.history
Interface EventHistoryComponent

All Known Subinterfaces:
HistoryMonitor, PolicyDecisionHistoryComponent
All Known Implementing Classes:
EventsHistoryManager

public interface EventHistoryComponent

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
 java.util.List<ActionInstanceDescription> findEventsOfType(OntClassDescription eventClass, kaos.time.DurationDescription historyStartDuration, kaos.time.DurationDescription historyEndDuration)
          This method is used to find the list of occurrences of actual events of the type indicated by an event class.
 java.util.List<ActionInstanceDescription> getAllLogs()
           
 java.util.List<ActionInstanceDescription> getLogsforActionType(java.lang.String loginAction)
           
 void logEvent(ActionInstanceDescription event)
          Log an event
 

Method Detail

logEvent

void logEvent(ActionInstanceDescription event)
Log an event

Parameters:
event - The event to be logged.

findEventsOfType

java.util.List<ActionInstanceDescription> findEventsOfType(OntClassDescription eventClass,
                                                           kaos.time.DurationDescription historyStartDuration,
                                                           kaos.time.DurationDescription historyEndDuration)
This method is used to find the list of occurrences of actual events of the type indicated by an event class.

Parameters:
eventClass - ActionInfo specifying the type of event class.
historyStartDuration - DurationDescription specifying the starting time in which event should be counted
historyEndDuration - DurationDescription specifying the ending time in which event should be counted
Returns:
the events in this log that are instances of the specified event class.

getAllLogs

java.util.List<ActionInstanceDescription> getAllLogs()

getLogsforActionType

java.util.List<ActionInstanceDescription> getLogsforActionType(java.lang.String loginAction)


Copyright © 2006 IHMC All Rights Reserved.