org.universAAL.context.reasoner
Class RuleModel

Package class diagram package RuleModel
java.lang.Object
  extended by org.universAAL.ontology.reasoner.util.ElementModel<Rule>
      extended by org.universAAL.context.reasoner.RuleModel

public class RuleModel
extends ElementModel<Rule>

In opposite the Situations and Queries Rules need some special handling. This is only when adding a new rule and following the according method is overwritten here. Every rule that is added need to register a ContextSubscriber that matches the Situation given by the rule. This subscriber is created in "registerRule".

Author:
amarinc

Constructor Summary
RuleModel(String confFolder)
           
 
Method Summary
 Rule add(Rule rule)
           
 void deleteContextSubscriptions()
           
 
Methods inherited from class org.universAAL.ontology.reasoner.util.ElementModel
getElement, getElement, getElements, getPersistentElementIndex, load, loadElements, remove, save, saveElements
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleModel

public RuleModel(String confFolder)
Parameters:
confFolder - Folder where elements of this type should saved.
Method Detail

add

public Rule add(Rule rule)
Overrides:
add in class ElementModel<Rule>

deleteContextSubscriptions

public void deleteContextSubscriptions()


Copyright © 2014 universAAL Consortium. All Rights Reserved.