Package jadex.platform.service.ecarules
Class ClientRuleSystemAgent
- java.lang.Object
- 
- jadex.platform.service.ecarules.ClientRuleSystemAgent
 
- 
- All Implemented Interfaces:
- IRuleEngineService
 
 public class ClientRuleSystemAgent extends java.lang.Object implements IRuleEngineService Agent that registers with an IRulebaseService and follows the master rule base.
- 
- 
Field SummaryFields Modifier and Type Field Description protected IInternalAccessagentThe agent.protected java.util.List<SubscriptionIntermediateFuture<RuleEvent>>resubscribersThe subscriptions.protected RuleSystemrulesystemThe rule system.
 - 
Constructor SummaryConstructors Constructor Description ClientRuleSystemAgent()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IIntermediateFuture<RuleEvent>addEvent(IEvent event)Add an external event to the rule engine.voidinit()Init method.protected voidpublishEvent(RuleEvent event)voidsetRulebaseService(IRulebaseService rbser)ISubscriptionIntermediateFuture<RuleEvent>subscribeToEngine()Subscribe to rule executions.
 
- 
- 
- 
Field Detail- 
agentprotected IInternalAccess agent The agent.
 - 
rulesystemprotected RuleSystem rulesystem The rule system.
 - 
resubscribersprotected java.util.List<SubscriptionIntermediateFuture<RuleEvent>> resubscribers The subscriptions.
 
- 
 - 
Method Detail- 
initpublic void init() Init method.
 - 
setRulebaseServicepublic void setRulebaseService(IRulebaseService rbser) 
 - 
addEventpublic IIntermediateFuture<RuleEvent> addEvent(IEvent event) Add an external event to the rule engine. It will process the event and fire rules accordingly.- Specified by:
- addEventin interface- IRuleEngineService
- Parameters:
- event- The event.
 
 - 
subscribeToEnginepublic ISubscriptionIntermediateFuture<RuleEvent> subscribeToEngine() Subscribe to rule executions.- Specified by:
- subscribeToEnginein interface- IRuleEngineService
 
 - 
publishEventprotected void publishEvent(RuleEvent event) 
 
- 
 
-