org.universAAL.context.reasoner
Class ReasoningProvider

Package class diagram package ReasoningProvider
java.lang.Object
  extended by org.universAAL.middleware.bus.member.BusMember
      extended by org.universAAL.middleware.bus.member.Callee
          extended by org.universAAL.middleware.service.ServiceCallee
              extended by org.universAAL.context.reasoner.ReasoningProvider

public class ReasoningProvider
extends ServiceCallee

The main task of the ReasoningProvider is the handle Situations, Queries and Rules (please have a look also at the description in the Activator). The according objects are handled in a class called "ElementModel" that is able the manage objects of the kind like given by the generic attribute. To manage does mean to add/remove/get objects and also save/load them at the file-system.

Author:
amarinc

Field Summary
 
Fields inherited from class org.universAAL.middleware.bus.member.BusMember
busResourceURI, owner, theBus
 
Constructor Summary
ReasoningProvider(ModuleContext context)
           
 
Method Summary
 void communicationChannelBroken()
          This abstract method is called for each member of the bus when the bus is being stopped.
 void deleteContextSubscriptions()
           
 ServiceResponse handleCall(ServiceCall call)
          This methods seems to be some kind of strange because of the usage from the handleRequest method.
 void saveAllData()
           
 
Methods inherited from class org.universAAL.middleware.service.ServiceCallee
addNewServiceProfiles, busDyingOut, getMyID, handleRequest, removeMatchingProfiles
 
Methods inherited from class org.universAAL.middleware.bus.member.BusMember
close, getType, getURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReasoningProvider

public ReasoningProvider(ModuleContext context)
Method Detail

communicationChannelBroken

public void communicationChannelBroken()
Description copied from class: ServiceCallee
This abstract method is called for each member of the bus when the bus is being stopped.

Specified by:
communicationChannelBroken in class ServiceCallee

saveAllData

public void saveAllData()

deleteContextSubscriptions

public void deleteContextSubscriptions()

handleCall

public ServiceResponse handleCall(ServiceCall call)
This methods seems to be some kind of strange because of the usage from the handleRequest method. This is a result of the simple fact the all services managed by this class are only used to add/remove/get objects of the ontology. Since the differences here are only in the used URI's I saved a lot of code by modularize this part.

Specified by:
handleCall in class ServiceCallee
Parameters:
call - the call that needs to be serviced.
Returns:
the result of the call execution.


Copyright © 2014 universAAL Consortium. All Rights Reserved.