jess
Interface WorkingMemoryMarker


public interface WorkingMemoryMarker

A WorkingMemoryMarker is a "memento" that records the state of working memory. Calling Rete.mark() returns an object that implements this interface, which you must save. By calling Rete.resetToMark(jess.WorkingMemoryMarker) and passing back the same object, you can retract all facts asserted since the marker was created.

(C) 2013 Sandia Corporation

See Also:
Rete.mark(), Rete.resetToMark(jess.WorkingMemoryMarker)

Method Summary
 void restore(Rete engine)
          This method is responsible for restoring working memory state.
 

Method Detail

restore

void restore(Rete engine)
             throws JessException
This method is responsible for restoring working memory state. This method is public only as an implementation detail -- there is no expectation that users will call this method or implement this interface themselves

Parameters:
engine - the rule engine
Throws:
JessException - if anything goes wrong

© 2013 Sandia Corporation