com.haley.haleyrules
Interface Assertion

All Superinterfaces:
KnowledgeBaseObject, WorkingMemoryObject
All Known Subinterfaces:
RelationAssertion, TemplateAssertion

public interface Assertion
extends WorkingMemoryObject

The Assertion interface is used to assert facts into a WorkingMemory.

Author:
The Haley Enterprise Copyright © 1998-2004, all rights reserved. Questions, comments or to report a problem contact support@haley.com

Method Summary
 void assertFact()
          Asserts a fact corresponding to the contents of the assertion and the assertion is left in the same state as after a reset() even if an exception is thrown.
 void reset()
          This method resets the assertion to its initial state.
 
Methods inherited from interface com.haley.haleyrules.WorkingMemoryObject
getWorkingMemory
 
Methods inherited from interface com.haley.haleyrules.KnowledgeBaseObject
getKnowledgeBase, release
 

Method Detail

assertFact

public void assertFact()
                throws EclipseException
Asserts a fact corresponding to the contents of the assertion and the assertion is left in the same state as after a reset() even if an exception is thrown.

Throws:
EclipseException - if the assertion has been released
EclipseException - if the knowledge base has been deleted
See Also:
Relation.beginAssertion(WorkingMemory), Template.beginAssertion(WorkingMemory)

reset

public void reset()
           throws EclipseException
This method resets the assertion to its initial state.

Throws:
EclipseException - if the assertion has been released
EclipseException - if the knowledge base has been deleted
See Also:
Relation.beginAssertion(WorkingMemory), Template.beginAssertion(WorkingMemory)


Copyright © 1998-2006 Haley Systems, Inc. All Rights Reserved.