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 IInternalAccess
agent
The agent.protected java.util.List<SubscriptionIntermediateFuture<RuleEvent>>
resubscribers
The subscriptions.protected RuleSystem
rulesystem
The 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.void
init()
Init method.protected void
publishEvent(RuleEvent event)
void
setRulebaseService(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:
addEvent
in interfaceIRuleEngineService
- Parameters:
event
- The event.
-
subscribeToEngine
public ISubscriptionIntermediateFuture<RuleEvent> subscribeToEngine()
Subscribe to rule executions.- Specified by:
subscribeToEngine
in interfaceIRuleEngineService
-
publishEvent
protected void publishEvent(RuleEvent event)
-
-