com.hammurapi.reasoning.spi
Interface Rule


public interface Rule

Stateful rules shall implement this interface.

Author:
Pavel

Method Summary
 void init()
          This method is invoked after rule is created and configured.
 void release()
          Releases resource held by the rule.
 void reset()
          Rule container invokes this method when session reset() method is invoked.
 

Method Detail

reset

void reset()
           throws ReasoningException
Rule container invokes this method when session reset() method is invoked. Rule shall reset its internal state upon invocation of this method.

Throws:
ReasoningException

init

void init()
          throws ReasoningException
This method is invoked after rule is created and configured.

Throws:
ReasoningException

release

void release()
             throws ReasoningException
Releases resource held by the rule.

Throws:
ReasoningException