kaos.policy.history
Class EventsHistoryManager

java.lang.Object
  extended by kaos.policy.guard.GuardRepositoryManagerImpl
      extended by kaos.policy.history.EventsHistoryManager
All Implemented Interfaces:
java.io.Serializable, GuardRepositoryManager

public class EventsHistoryManager
extends GuardRepositoryManagerImpl
implements java.io.Serializable

This class extends guard repository manager implementation. It has a new method that finds the # events belongig to a specified event class. This finding is performed across all the components in this manager.

See Also:
Serialized Form

Constructor Summary
EventsHistoryManager(java.lang.String type)
           
 
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.
 void setKAoSExtensionComponent(java.lang.String associatedOntType, KAoSExtensionComponent extComp)
          Set KAoSExtensionComponent for the given ontology type.
 
Methods inherited from class kaos.policy.guard.GuardRepositoryManagerImpl
changeComponentEnabledStatus, getAllKAoSExtensionComponents, getComponentEnabledStatus, getKAoSExtensionComponents, getRepositoryManagerType, getRepositoryTableInformation, removeAllKAoSExtensionComponents, removeKAoSExtensionComponent, setDirProxy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventsHistoryManager

public EventsHistoryManager(java.lang.String type)
Method Detail

setKAoSExtensionComponent

public void setKAoSExtensionComponent(java.lang.String associatedOntType,
                                      KAoSExtensionComponent extComp)
                               throws ComponentAlreadyPresentException
Set KAoSExtensionComponent for the given ontology type. This method stores only those components which implement 'KAoSEventHistoryComponent' interface. For other components, it throws an exception.

Specified by:
setKAoSExtensionComponent in interface GuardRepositoryManager
Overrides:
setKAoSExtensionComponent in class GuardRepositoryManagerImpl
Parameters:
associatedOntType - A String indicating the ontology type associated with that component.
extComp - The KAoSExtensionComponent to be set for the given type.
Throws:
ComponentAlreadyPresentException

countEventsOfType

public 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 all the components of this manager which are instances of the specified event class.