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
-
bound(JIPTerm)
- Bound the variable to the given term
-
getName()
- Returns the name of the variable
-
getNewVariable(String)
- Returns a new Variable
-
getValue()
- Returns the term to which the variable is instantiated
-
isBounded()
- Checks if the variable is bounded (instantiated)
-
toString()
-
Get a string rapresentation of the term
getNewVariable
public static JIPVariable getNewVariable(String strName)
- Returns a new Variable
- Parameters:
- strName - the name of the variable
getValue
public JIPTerm getValue()
- Returns the term to which the variable is instantiated
getName
public String getName()
- Returns the name of the variable
isBounded
public boolean isBounded()
- Checks if the variable is bounded (instantiated)
bound
public void bound(JIPTerm term)
- Bound the variable to the given term
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