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 Summary
Fields Modifier and Type Field Description protected IInternalAccessagentThe agent.protected java.util.List<SubscriptionIntermediateFuture<RuleEvent>>resubscribersThe subscriptions.protected RuleSystemrulesystemThe rule system.
-
Constructor Summary
Constructors Constructor Description ClientRuleSystemAgent()
-
Method Summary
All 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
-
agent
protected IInternalAccess agent
The agent.
-
rulesystem
protected RuleSystem rulesystem
The rule system.
-
resubscribers
protected java.util.List<SubscriptionIntermediateFuture<RuleEvent>> resubscribers
The subscriptions.
-
-
Method Detail
-
init
public void init()
Init method.
-
setRulebaseService
public void setRulebaseService(IRulebaseService rbser)
-
addEvent
public 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 interfaceIRuleEngineService- Parameters:
event- The event.
-
subscribeToEngine
public ISubscriptionIntermediateFuture<RuleEvent> subscribeToEngine()
Subscribe to rule executions.- Specified by:
subscribeToEnginein interfaceIRuleEngineService
-
publishEvent
protected void publishEvent(RuleEvent event)
-
-