org.universAAL.samples.context.reasoner.client.uaalinterface
Class ContextEventRecorder
java.lang.Object
org.universAAL.middleware.bus.member.BusMember
org.universAAL.middleware.bus.member.Subscriber
org.universAAL.middleware.context.ContextSubscriber
org.universAAL.samples.context.reasoner.client.uaalinterface.ContextEventRecorder
public class ContextEventRecorder
- extends ContextSubscriber
This class records all events at the context-bus by registering itself with a
generic pattern (subject need to be a resource, what is true anyway). Since
URI's are heavily need to be used for creation of Situations and Queries it
can be helpful to show a user a selection of all URI's that up to now has
passed the system. All results will be saved and therefore are available
again after restarting the system.
- Author:
- amarinc
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
configHome
public static final String configHome
communicationChannelBroken
public void communicationChannelBroken()
- Description copied from class:
ContextSubscriber
- Method to be called when the communication of the Subsccriber with the
Context Bus is lost.
- Specified by:
communicationChannelBroken
in class ContextSubscriber
handleContextEvent
public void handleContextEvent(ContextEvent event)
- Description copied from class:
ContextSubscriber
- Method to be called when an Event forwarded in the Context Bus matches
one of the Patterns registered by this Subscriber.
- Specified by:
handleContextEvent
in class ContextSubscriber
- Parameters:
event
- The Context Event that matched the registered Patterns
getRecordedEvents
public ArrayList<ContextEvent> getRecordedEvents()
getRecordedURIs
public ArrayList<String> getRecordedURIs()
getRecordedTypeURIs
public ArrayList<String> getRecordedTypeURIs()
getRecordedPredicates
public ArrayList<String> getRecordedPredicates()
getAllTypeAndInstanceURIs
public ArrayList<String> getAllTypeAndInstanceURIs()
getAllURIs
public ArrayList<String> getAllURIs()
saveData
public boolean saveData()
loadData
public void loadData()
Copyright © 2014 universAAL Consortium. All Rights Reserved.