Skip navigation links
B C D E F G H I L M N P Q S T 

B

bigIntegerValue() - Method in class se.sics.prologbeans.PBTerm
Returns the BigInteger value of this PBTerm.
bind(String, int) - Method in class se.sics.prologbeans.Bindings
Adds the specified variable binding.
bind(String, long) - Method in class se.sics.prologbeans.Bindings
Adds the specified variable binding.
bind(String, float) - Method in class se.sics.prologbeans.Bindings
Adds the specified variable binding.
bind(String, double) - Method in class se.sics.prologbeans.Bindings
Adds the specified variable binding.
bind(String, String) - Method in class se.sics.prologbeans.Bindings
Adds the specified variable binding.
bind(String, PBTerm) - Method in class se.sics.prologbeans.Bindings
Adds the specified variable binding.
bindAtom(String, String) - Method in class se.sics.prologbeans.Bindings
Adds the specified variable binding.
Bindings - Class in se.sics.prologbeans
Bindings handles the variable bindings in the communication with the prolog server.
Bindings() - Constructor for class se.sics.prologbeans.Bindings
Creates a new Bindings instance with no variable bindings.
Bindings(Bindings) - Constructor for class se.sics.prologbeans.Bindings
Creates a new Bindings instance and copies all existing variable bindings from the specified bindings.

C

cancelQuery() - Method in class se.sics.prologbeans.PrologSession
Called by the timeout monitor when a query takes too long.
connect() - Method in class se.sics.prologbeans.PrologSession
Connects to the Prolog server.

D

debugging() - Static method in class se.sics.prologbeans.PrologSession
 
disconnect() - Method in class se.sics.prologbeans.PrologSession
Closes the connection with the Prolog server.

E

executeQuery(String) - Method in class se.sics.prologbeans.PrologSession
Sends a query to the Prolog server and waits for the answer before returning the QueryAnswer.
executeQuery(String, Bindings) - Method in class se.sics.prologbeans.PrologSession
Sends a query to the Prolog server and waits for the answer before returning the QueryAnswer.
executeQuery(String, Bindings, String) - Method in class se.sics.prologbeans.PrologSession
Sends a query to the Prolog server and waits for the answer before returning the QueryAnswer.

F

floatValue() - Method in class se.sics.prologbeans.PBTerm
Returns the floating-point value of this PBTerm.

G

getArgument(int) - Method in class se.sics.prologbeans.PBTerm
Returns the argument at the specified index.
getArity() - Method in class se.sics.prologbeans.PBTerm
Returns the number of arguments of this compound term or 0 if this PBTerm is not a compound term.
getError() - Method in class se.sics.prologbeans.QueryAnswer
Returns the error reason or null if an error has not occurred or if no error reason is known.
getHost() - Method in class se.sics.prologbeans.PrologSession
Returns the host of the Prolog server (exactly as registered in setHost()).
getName() - Method in class se.sics.prologbeans.PBTerm
Returns the name of this constant or compound term.
getPort() - Method in class se.sics.prologbeans.PrologSession
Returns the port of the Prolog server.
getPrologSession(String) - Static method in class se.sics.prologbeans.PrologSession
Returns the PrologSession registered in JNDI with the given name.
getPrologSession(String, HttpSession) - Static method in class se.sics.prologbeans.PrologSession
Returns the PrologSession registered in JNDI with the given name.
getString() - Method in class se.sics.prologbeans.PBTerm
If this PBTerm is a proper list and all its elements are Unicode character codes, either as integers or as one-character atoms, returns a String with the list elements as the character codes of the String.
getTimeout() - Method in class se.sics.prologbeans.PrologSession
Returns the timeout in milliseconds before the connection to the Prolog server is reset (when a query is not answered).
getValue(String) - Method in class se.sics.prologbeans.Bindings
Returns the value for the specified variable or null if the variable is not bound.
getValue(String) - Method in class se.sics.prologbeans.QueryAnswer
Returns the value of the specified variable or null if the variable is not bound.

H

head() - Method in class se.sics.prologbeans.PBTerm
Returns the head of this PBTerm if it is a list cell, i.e. a compound term with the functor ./2.

I

IllegalCharacterSetException - Exception in se.sics.prologbeans
A string contained unsupported characters
intValue() - Method in class se.sics.prologbeans.PBTerm
Returns the integer value of this PBTerm.
isAlwaysClosing() - Method in class se.sics.prologbeans.PrologSession
 
isAtom() - Method in class se.sics.prologbeans.PBTerm
Returns true if this PBTerm is an atom and false otherwise.
isAtomic() - Method in class se.sics.prologbeans.PBTerm
Returns true if this PBTerm is a constant (e.g. integer, floating-point number, or atom) and false if this PBTerm is a compound term or variable.
isAutoConnecting() - Method in class se.sics.prologbeans.PrologSession
Returns the state of the auto connect mode.
isBignum() - Method in class se.sics.prologbeans.PBTerm
Returns true if this PBTerm is an bignum integer and false otherwise.
isCompound() - Method in class se.sics.prologbeans.PBTerm
Returns true if this PBTerm is a compund term and false otherwise.
isConnected() - Method in class se.sics.prologbeans.PrologSession
Returns true if a connection with the Prolog server is open and false otherwise.
isEmptyList() - Method in class se.sics.prologbeans.PBTerm
Returns true if this PBTerm is the empty list and false otherwise.
isError() - Method in class se.sics.prologbeans.QueryAnswer
Returns true if an error occurred while processing the query and false otherwise.
isFloat() - Method in class se.sics.prologbeans.PBTerm
Returns true if this PBTerm is a floating-point number and false otherwise.
isInteger() - Method in class se.sics.prologbeans.PBTerm
Returns true if this PBTerm is an integer and false otherwise.
isListCell() - Method in class se.sics.prologbeans.PBTerm
Returns true if this PBTerm is a list cell, i.e. a compound term with the functor ./2, and false otherwise.
isNumber() - Method in class se.sics.prologbeans.PBTerm
Returns true if this PBTerm is a number and false otherwise.
isProperList() - Method in class se.sics.prologbeans.PBTerm
Returns true if this PBTerm is a proper list and false otherwise.
isString() - Method in class se.sics.prologbeans.PBTerm
Returns true if this PBTerm is a proper list and all of its elements are character codes or one character atoms.
isVariable() - Method in class se.sics.prologbeans.PBTerm
Returns true if this PBTerm is a variable and false otherwise.

L

length() - Method in class se.sics.prologbeans.PBTerm
If this PBTerm is a proper list, returns its length.

M

makeAtom(String) - Static method in class se.sics.prologbeans.PBTerm
Creates a new PBTerm instance representing an atom.
makeTerm(float) - Static method in class se.sics.prologbeans.PBTerm
Creates a new PBTerm instance representing a float value.
makeTerm(double) - Static method in class se.sics.prologbeans.PBTerm
Creates a new PBTerm instance representing a double value.
makeTerm(int) - Static method in class se.sics.prologbeans.PBTerm
Creates a new PBTerm instance representing an int value.
makeTerm(long) - Static method in class se.sics.prologbeans.PBTerm
Creates a new PBTerm instance representing a long value.
makeTerm(BigInteger) - Static method in class se.sics.prologbeans.PBTerm
Creates a new PBTerm instance representing a BigInteger value.
makeTerm(String) - Static method in class se.sics.prologbeans.PBTerm
Creates a new PBTerm instance representing a list with the characters, as integer values, in the string argument as its elements.
makeTerm(String, PBTerm[]) - Static method in class se.sics.prologbeans.PBTerm
Creates a new PBTerm instance representing a compound term.
makeTerm(PBTerm, PBTerm) - Static method in class se.sics.prologbeans.PBTerm
Creates a new PBTerm instance representing a list cell.

N

name - Variable in class se.sics.prologbeans.PBTerm
 
NIL - Static variable in class se.sics.prologbeans.PBTerm
The PBTerm NIL, with the print name "[]", represents the empty list.

P

PBTerm - Class in se.sics.prologbeans
Representations of a Prolog term.
PrologSession - Class in se.sics.prologbeans
PrologSession handles the connection with the Prolog Server.
PrologSession() - Constructor for class se.sics.prologbeans.PrologSession
Creates a new PrologSession instance with default Prolog server settings.

Q

QueryAnswer - Class in se.sics.prologbeans
The representation of an answer from the Prolog server.
QueryAnswer(PBTerm, Bindings) - Constructor for class se.sics.prologbeans.QueryAnswer
Creates a new QueryAnswer instance with the specified information.
queryFailed() - Method in class se.sics.prologbeans.QueryAnswer
Returns true if the query failed (i.e. the Prolog responded with 'no') and false otherwise.

S

se.sics.prologbeans - package se.sics.prologbeans
PrologBeans is a package for integrating Prolog with applications in other languages.
SESSION_ATTRIBUTE_NAME - Static variable in class se.sics.prologbeans.PrologSession
The HttpSession session attribute name.
setAlwaysClose(boolean) - Method in class se.sics.prologbeans.PrologSession
Set whether to close connections after each send.
setAutoConnect(boolean) - Method in class se.sics.prologbeans.PrologSession
Sets the connection mode of this PrologSession.
setHost(String) - Method in class se.sics.prologbeans.PrologSession
Sets the host of the Prolog server (default is localhost).
setPort(int) - Method in class se.sics.prologbeans.PrologSession
Sets the port of the Prolog server (default 8066).
setTimeout(int) - Method in class se.sics.prologbeans.PrologSession
Sets the timeout in milliseconds before the connection to the Prolog server is reset (when a query is not answered).
stuffAtom(String) - Method in class se.sics.prologbeans.PBTerm
 

T

tail() - Method in class se.sics.prologbeans.PBTerm
Returns the tail of this PBTerm if it is a list cell, i.e. a compound term with the functor ./2.
toString() - Method in class se.sics.prologbeans.Bindings
 
toString() - Method in class se.sics.prologbeans.PBTerm
Returns a string description of this term.
toString() - Method in class se.sics.prologbeans.QueryAnswer
Returns a string description of this answer.
B C D E F G H I L M N P Q S T 
Skip navigation links