Jalog 1.3
java.lang.Object io.github.JalogTeam.jalog.Jalog.Term
public class Jalog.Term
Data of class Jalog.Term
are used by the Jalog inference engine.
The methods of Jalog.Term
are used to extract the values of
terms for normal use in Java programs.
Functions to create data items of type Jalog.Term
are found in
Jalog class.
Method Summary | |
---|---|
char
|
getCharacterValue()
Gets the char out of the Jalog.Term, if present. |
Jalog.Term[]
|
getElements()
Converts a Jalog list to a Jalog.Term array, if present. |
String
|
getFunctor()
Gets the functor name of a compound Jalog.Term, if present. |
long
|
getIntegerValue()
Gets the long integer value out of the Jalog.Term, if present. |
double
|
getRealValue()
Gets the double value out of the Jalog.Term, if present. |
String
|
getStringValue()
Gets the String value of the Jalog.Term, if present. |
Jalog.Term[]
|
getSubTerms()
Gets the subterms out of the Jalog.Term of compound type, if present. |
String
|
getSymbolValue()
Gets the symbol value of the Jalog.Term of symbol, if present. |
String
|
getType()
Gets the type code of the Jalog.Term. |
Method Detail |
---|
public char getCharacterValue()
public Jalog.Term[] getElements()
public String getFunctor()
public long getIntegerValue()
public double getRealValue()
public String getStringValue()
public Jalog.Term[] getSubTerms()
public String getSymbolValue()
public String getType()
Jalog.OPEN
,
Jalog.INTEGER
, Jalog.SYMBOL
,
Jalog.REAL
, Jalog.CHARACTER
,
Jalog.STRING
, Jalog.LIST
, or
Jalog.COMPOUND
.
See
Jalog Field Summary.