com.haley.haleyrules
Interface Relation

All Superinterfaces:
KnowledgeBaseObject, Representation

public interface Relation
extends Representation

The Relation interface publishes the API a relational representation defined by the Eclipse "defrelation" construct. A relation is returned by KnowledgeBase.findRelation(String).

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

Method Summary
 int arity()
          Gets the arity of the relation.
 RelationAssertion beginAssertion(WorkingMemory workingMemory)
           
 boolean isVariadic()
          Determine whether this relation accepts a variable number of parameters.
 
Methods inherited from interface com.haley.haleyrules.Representation
getName
 
Methods inherited from interface com.haley.haleyrules.KnowledgeBaseObject
getKnowledgeBase, release
 

Method Detail

isVariadic

public boolean isVariadic()
                   throws EclipseException
Determine whether this relation accepts a variable number of parameters.

Returns:
true if and only if this relation takes a variable number of parameters.
Throws:
EclipseException - if the knowledge base has been deleted
EclipseException - if the relation has been deleted
EclipseException - if the working memory is null or has been deleted

arity

public int arity()
          throws EclipseException
Gets the arity of the relation.

Returns:
the arity of the relation or -1 if the relation is variadic
Throws:
EclipseException

beginAssertion

public RelationAssertion beginAssertion(WorkingMemory workingMemory)
                                 throws EclipseException
Throws:
EclipseException


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