KnowledgeBase
Class ConstraintNode

java.lang.Object
  |
  +--KnowledgeBase.ConstraintNode

public class ConstraintNode
extends java.lang.Object

Defines a constraint node in the knowledge base.

See the dissertation document and KnowledgeBaseParser.jj for complete details.

Version:
Created 18 July 2003
Author:
Dan Tappan
See Also:
KnowledgeBase

Field Summary
 int function_code
           
 java.lang.String function_name
           
 java.util.ArrayList parameters
           
 java.lang.String relation_name
           
 
Constructor Summary
ConstraintNode(int function_code, java.util.ArrayList parameters, java.lang.String relation_name)
          Creates a new Constraint as specified by the knowledge-base parser.
 
Method Summary
 java.lang.String toString()
          Returns a string representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

function_code

public int function_code

function_name

public java.lang.String function_name

parameters

public java.util.ArrayList parameters

relation_name

public java.lang.String relation_name
Constructor Detail

ConstraintNode

public ConstraintNode(int function_code,
                      java.util.ArrayList parameters,
                      java.lang.String relation_name)
Creates a new Constraint as specified by the knowledge-base parser.

See the dissertation document for details on how these parameters are defined and used.

Parameters:
function_code - - the constraint-function code
parameters - - the parameters
relation_name - - the name of the relation binding this constraint, or null if there is none
See Also:
KnowledgeBaseParserConstants
Method Detail

toString

public java.lang.String toString()
Returns a string representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
the String representation
See Also:
Support.toPrettyString(java.lang.String)