|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--JFril
Java class which contains a native library implementation of Fril. This can be called via
| Field Summary | |
static int |
JFRILATOM
Value returned by jFrilGetItemType indicating the argument is a Fril constant |
static int |
JFRILFAILED
Value returned by jFrilExecuteFril, jFrilExecuteGoal, jFrilFindSolution indicating that the query failed |
static int |
JFRILFLOAT
Value returned by jFrilGetItemType indicating that the argument is a Fril float |
static int |
JFRILFSET
Value returned by jFrilGetItemType indicating that the argument is a Fril fuzzy set |
static int |
JFRILFSITEM
Constant used to reference the bound answer variable when calling jFrilGetItemType or jFrilGetXXX after jFrilFindSolution |
static int |
JFRILFSLIST
Constant used to reference the bound answer variable when calling jFrilGetItemType or jFrilGetXXX after jFrilFindSolution |
static int |
JFRILINT
Value returned by jFrilGetItemType indicating that the argument is a Fril integer |
static int |
JFRILINTERRUPT
Value returned by jFrilExecuteFril, jFrilExecuteGoal, jFrilFindSolution indicating that the query was interrupted |
static int |
JFRILLIST
Value returned by jFrilGetItemType indicating that the argument is a Fril list |
static int |
JFRILREQUESTINPUT
Value returned by jFrilExecuteFril, jFrilExecuteGoal, jFrilFindSolution indicating that the query has requested input |
static int |
JFRILSUCCEEDED
Value returned by jFrilExecuteFril, jFrilExecuteGoal, jFrilFindSolution indicating that the query succeeded |
static int |
JFRILTERMINATED
Value returned by jFrilExecuteFril, jFrilExecuteGoal, jFrilFindSolution indicating that the query cannot be executed because Fril has terminated |
static int |
JFRILVBLE
Value returned by jFrilGetItemType indicating that the argument is a Fril variable |
static boolean |
resultFrilCall
resultFrilCall is used internally for communication with the embedded Fril library code |
| Constructor Summary | |
JFril()
Creates a JFril object. |
|
JFril(java.io.Writer stdOut)
Creates a JFril object which directs all its output to the Writer stdOut. |
|
JFril(java.io.Writer stdOut,
java.lang.String initialCommand)
Creates a JFril object which directs all its output to the Writer stdOut. |
|
| Method Summary | |
static java.lang.Integer |
jFrilCreateList(int len)
|
static void |
jFrilDisplayOutput(java.lang.String buf)
method used internally for communication with the embedded Fril library code |
static int |
jFrilExecuteFril(java.io.BufferedReader stdIn)
Calls Fril to execute the input supplied by the BufferedReader stdIn. |
static int |
jFrilExecuteFril(java.lang.String frilInput)
Calls Fril to execute the input supplied in the String frilInput. |
static int |
jFrilExecuteGoal(java.lang.String inbuf)
Calls Fril to execute a goal created using the low level interface functions and passed to Fril by putgoal. |
static int |
jFrilFindSolution(java.io.BufferedReader stdIn)
Calls Fril to execute the input supplied by the BufferedReader stdIn and finds a binding for a target variable or pattern. |
static int |
jFrilFindSolution(java.lang.String frilInput)
Calls Fril to execute the input contained in the String frilInput and finds a binding for a target variable or pattern. |
static java.lang.Integer |
jFrilGetArgs()
Low level interface function which returns an Integer identifying the Fril argument list. |
static java.lang.String |
jFrilGetAtom(int listID,
int item)
Low level interface function used to extract a Fril constant (string) from a Fril list. |
static java.lang.Float |
jFrilGetFloat(int listID,
int item)
Low level interface function used to extract a Fril float from a Fril list. |
static java.lang.Integer |
jFrilGetInt(int listID,
int item)
Low level interface function used to extract an integer from a Fril list. |
static java.lang.Integer |
jFrilGetItemType(int listID,
int item)
|
static java.lang.Integer |
jFrilGetList(int listID,
int item)
Low level interface function used to extract an identifier for a Fril list contained within a Fril list. |
static java.lang.Integer |
jFrilGetListLen(int listID)
Low level interface function used to determine the length of the list referenced by the identifier listid. |
static boolean |
jFrilGetStatus()
|
static java.lang.String |
jFrilGetVersion()
|
static void |
jFrilInitialiseInterface()
jFrilInitialiseInterface initialises the low level Fril-java interface, by clearing structures created during previous transfer of information across the interface. |
static boolean |
jFrilPutArg(int listID1,
int item1,
int listID2,
int item2)
Low level interface function normally used to bind two variables. |
static boolean |
jFrilPutAtom(int listID,
int item,
java.lang.String val)
Low level interface function used to set the itemth element in the list identified by listID to the constant (String) value val. |
static boolean |
jFrilPutFloat(int listID,
int item,
float val)
Low level interface function used to set the itemth element in the list identified by listID to the float value val. |
static boolean |
jFrilPutGoal(int listID)
|
static boolean |
jFrilPutInt(int listID,
int item,
int val)
Low level interface function used to set the itemth element in the list identified by listID to the integer value val. |
static boolean |
jFrilPutList(int listID,
int item,
int putListID)
Low level interface function used to set the itemth element in the list identified by listID to the list identified by putListID. |
static boolean |
jFrilPutListLen(int listID,
int len)
Low level interface function normally used to bind two variables. |
static int |
jFrilResume(java.lang.String buffer)
Calls Fril to continue execution of a goal which has suspended because it requires input. |
static void |
jFrilSetOutWriter(java.io.Writer stdOut)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int JFRILATOM
public static final int JFRILINT
public static final int JFRILFLOAT
jFrilGetItemTypepublic static final int JFRILLIST
public static final int JFRILVBLE
public static final int JFRILFSET
public static final int JFRILFSLIST
public static final int JFRILFSITEM
public static final int JFRILSUCCEEDED
public static final int JFRILFAILED
public static final int JFRILINTERRUPT
public static final int JFRILTERMINATED
public static final int JFRILREQUESTINPUT
public static boolean resultFrilCall
| Constructor Detail |
public JFril()
NONE - NONE - public JFril(java.io.Writer stdOut)
stdOut - a Writer.NONE - java.io#Writer()
public JFril(java.io.Writer stdOut,
java.lang.String initialCommand)
stdOut - a WriterString - initialCommand.NONE - java.io#Writer()| Method Detail |
public static int jFrilExecuteFril(java.io.BufferedReader stdIn)
throws java.io.IOException
public static int jFrilExecuteFril(java.lang.String frilInput)
public static int jFrilFindSolution(java.io.BufferedReader stdIn)
throws java.io.IOException
public static int jFrilFindSolution(java.lang.String frilInput)
public static int jFrilExecuteGoal(java.lang.String inbuf)
String - inbuf : used to pass input to any Fril built-in predicates that read from stdin.public static void jFrilInitialiseInterface()
public static int jFrilResume(java.lang.String buffer)
String - inbuf : used to pass input to any Fril built-in predicates that read from stdin.public static java.lang.Integer jFrilGetArgs()
public static java.lang.Integer jFrilGetInt(int listID,
int item)
public static java.lang.String jFrilGetAtom(int listID,
int item)
public static java.lang.Float jFrilGetFloat(int listID,
int item)
public static java.lang.Integer jFrilGetList(int listID,
int item)
public static java.lang.Integer jFrilGetListLen(int listID)
public static boolean jFrilPutInt(int listID,
int item,
int val)
public static boolean jFrilPutFloat(int listID,
int item,
float val)
public static boolean jFrilPutAtom(int listID,
int item,
java.lang.String val)
public static boolean jFrilPutList(int listID,
int item,
int putListID)
public static boolean jFrilPutListLen(int listID,
int len)
public static boolean jFrilPutArg(int listID1,
int item1,
int listID2,
int item2)
public static boolean jFrilPutGoal(int listID)
public static java.lang.Integer jFrilGetItemType(int listID,
int item)
public static java.lang.Integer jFrilCreateList(int len)
public static boolean jFrilGetStatus()
public static java.lang.String jFrilGetVersion()
public static void jFrilSetOutWriter(java.io.Writer stdOut)
public static void jFrilDisplayOutput(java.lang.String buf)
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||