All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JIP.engine.JIPVariable

java.lang.Object
   |
   +----JIP.engine.JIPTerm
           |
           +----JIP.engine.JIPVariable

public class JIPVariable
extends JIPTerm
JIPVariable is a wrapper to prolog variable

Version:
4.x.x Home Page : http:\\www.geocities.com\jiprolog
Author:
Ugo Chirico 2000


Method Index

 o bound(JIPTerm)
Bound the variable to the given term
 o getName()
Returns the name of the variable
 o getNewVariable(String)
Returns a new Variable
 o getValue()
Returns the term to which the variable is instantiated
 o isBounded()
Checks if the variable is bounded (instantiated)
 o toString()
Get a string rapresentation of the term

Methods

 o getNewVariable
 public static JIPVariable getNewVariable(String strName)
Returns a new Variable

Parameters:
strName - the name of the variable
 o getValue
 public JIPTerm getValue()
Returns the term to which the variable is instantiated

 o getName
 public String getName()
Returns the name of the variable

 o isBounded
 public boolean isBounded()
Checks if the variable is bounded (instantiated)

 o bound
 public void bound(JIPTerm term)
Bound the variable to the given term

 o toString
 public String toString()
Get a string rapresentation of the term

Overrides:
toString in class JIPTerm

All Packages  Class Hierarchy  This Package  Previous  Next  Index