ubc.cs.JLog.Foundation
Class iNameArityStub

java.lang.Object
  extended by ubc.cs.JLog.Foundation.iNameArityStub
All Implemented Interfaces:
iName, iNameArity

public class iNameArityStub
extends java.lang.Object
implements iNameArity

This is the interface stub to support the jKnowledgeBase interfaces which require a name and arity, iNameArity in situations where a term is not available.

Author:
Glendon Holst

Field Summary
protected  int arity
           
protected  java.lang.String name
           
 
Constructor Summary
iNameArityStub(java.lang.String n, int a)
           
 
Method Summary
 int getArity()
          Returns the arity of this instance.
 java.lang.String getName()
          Returns the name of this instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

arity

protected int arity
Constructor Detail

iNameArityStub

public iNameArityStub(java.lang.String n,
                      int a)
Method Detail

getName

public java.lang.String getName()
Description copied from interface: iName
Returns the name of this instance.

Specified by:
getName in interface iName
Returns:
String containing name of this instance.

getArity

public int getArity()
Description copied from interface: iNameArity
Returns the arity of this instance.

Specified by:
getArity in interface iNameArity
Returns:
int whose value is the arity of this instance.