- getArg(int) - Method in class CiaoJava.PLStructure
-
Returns the argument number argNumber
, received
as argument.
- getArgs() - Method in class CiaoJava.PLStructure
-
Returns an array of Prolog terms containing the arguments
of this structure.
- getArity() - Method in class CiaoJava.PLStructure
-
Returns the arity of this Prolog structure.
- getBinding() - Method in class CiaoJava.PLVariable
-
Returns the binding of this Prolog variable.
- getConnection() - Method in class CiaoJava.PLGoal
-
Gets connection that this goal uses to communicate to
Prolog.
- getFunctor() - Method in class CiaoJava.PLStructure
-
Returns the functor name of this Prolog structure.
- getHead() - Method in class CiaoJava.PLList
-
Gets the head of a PLList object.
- getInterpreter() - Method in class CiaoJava.PLConnection
-
Gets the Prolog Interpreter object used to interpret
Prolog terms received from the Prolog side of the interface.
- getName() - Method in class CiaoJava.PLAtom
-
Gets the name of this atom as a string.
- getPort() - Method in class CiaoJava.PLServerSocket
-
Returns de port number on which the PLServerSocket
object
is listening.
- getPreviousConnection() - Static method in class CiaoJava.PLConnection
-
Returns the last started connection to a Prolog process.
- getPrologProcess() - Method in class CiaoJava.PLConnection
-
- getReader(Socket) - Static method in class CiaoJava.PLServerSocket
-
Returns the BufferedReader
input stream for this
socket connection.
- getTail() - Method in class CiaoJava.PLList
-
Gets the tail of a PLList object.
- getValue() - Method in class CiaoJava.PLFloat
-
Returns the value of this Prolog float as a Java double
.
- getValue() - Method in class CiaoJava.PLInteger
-
Gets the integer value of the PLInteger
object.
- getValue() - Method in class CiaoJava.PLString
-
Gets the value of a Prolog string object.
- getWriter(Socket) - Static method in class CiaoJava.PLServerSocket
-
Returns the PrintWriter output stream for this
socket connection.
- javaRepr(PLInterpreter) - Method in class CiaoJava.PLAtom
-
Gets the Java representation of the atom as an object.
- javaRepr() - Method in class CiaoJava.PLAtom
-
Gets the Java representation of the atom as an object (a String object).
- javaRepr(PLInterpreter) - Method in class CiaoJava.PLFloat
-
Java representation of a Prolog float.
- javaRepr() - Method in class CiaoJava.PLFloat
-
Java representation of a Prolog float.
- javaRepr(PLInterpreter) - Method in class CiaoJava.PLInteger
-
Gets the Java representation of this Prolog integer as an object.
- javaRepr() - Method in class CiaoJava.PLInteger
-
Gets the Java representation of this Prolog integer as an object.
- javaRepr(PLInterpreter) - Method in class CiaoJava.PLList
-
Java representation of a PLList.
- javaRepr(PLInterpreter) - Method in class CiaoJava.PLString
-
Java representation of a PLString
.
- javaRepr() - Method in class CiaoJava.PLString
-
Java representation of a PLString
.
- javaRepr(PLInterpreter) - Method in class CiaoJava.PLStructure
-
Java representation of a structure.
- javaRepr(PLInterpreter) - Method in class CiaoJava.PLTerm
-
Java representation of the Prolog term.
- javaRepr(PLInterpreter) - Method in class CiaoJava.PLVariable
-
Java representation of a variable: just itself.
- join() - Method in class CiaoJava.PLConnection
-
Waits until all the internal threads terminate.
- joinSocketHandlers() - Method in class CiaoJava.PLConnection
-
Waits until socket handling threads terminate.
- PLAtom - Class in CiaoJava
-
Prolog atom representation.
- PLAtom(String) - Constructor for class CiaoJava.PLAtom
-
Atom constructor.
- PLConnection - Class in CiaoJava
-
Class for managing communication to Prolog.
- PLConnection() - Constructor for class CiaoJava.PLConnection
-
Creates a new PLConnection
object, establishing
a new socket server and listening Prolog connections on a
free port.
- PLConnection(String[]) - Constructor for class CiaoJava.PLConnection
-
Creates a new PLConnection
object that executes the
Prolog server, and starts it.
- PLConnection(String) - Constructor for class CiaoJava.PLConnection
-
Creates a new PLConnection
object that executes the
Prolog server, and starts it.
- PLConnection(ServerSocket) - Constructor for class CiaoJava.PLConnection
-
Creates a new PLConnection object, given an existing socket
server.
- PLConnection(int, String[]) - Constructor for class CiaoJava.PLConnection
-
Creates a new PLConnection
object that executes the
Prolog server, and starts it.
- PLConnection(String, int) - Constructor for class CiaoJava.PLConnection
-
Creates a new PLConnection
object that connects
to a Prolog server at host and port given as argument.
- PLException - Exception in CiaoJava
-
This class implements the exceptions that can be thrown
using the CiaoJava package, and translates the exceptions
received from the Prolog side.
- PLException() - Constructor for exception CiaoJava.PLException
-
Creates a new
PLException
with no description.
- PLException(String) - Constructor for exception CiaoJava.PLException
-
Creates a new
PLException
with the description given as argument.
- PLFloat - Class in CiaoJava
-
This class represents the Prolog floats.
- PLFloat(double) - Constructor for class CiaoJava.PLFloat
-
Creates a new PLFloat
object
with the given float value.
- PLGoal - Class in CiaoJava
-
This class Represents a Prolog goal to be evaluated on a given
PLConnection.
- PLGoal(PLTerm) - Constructor for class CiaoJava.PLGoal
-
Goal constructor.
- PLGoal(PLConnection, PLTerm) - Constructor for class CiaoJava.PLGoal
-
Goal constructor.
- PLGoal(String) - Constructor for class CiaoJava.PLGoal
-
Goal constructor.
- PLGoal(PLConnection, String) - Constructor for class CiaoJava.PLGoal
-
Goal constructor.
- PLGoalException - Exception in CiaoJava
-
This class implements the exceptions that can throw
when a goal is launched to be evaluated by the prolog
process.
- PLGoalException() - Constructor for exception CiaoJava.PLGoalException
-
Creates a new
PLGoalException
with no description.
- PLGoalException(String) - Constructor for exception CiaoJava.PLGoalException
-
Creates a new
PLGoalException
with the description given as argument.
- PLInteger - Class in CiaoJava
-
Prolog integer representation.
- PLInteger(int) - Constructor for class CiaoJava.PLInteger
-
Integer constructor.
- PLJavaServer - Class in CiaoJava
-
This class implements the starting point of the server
of Java objects to Prolog.
- PLJavaServer() - Constructor for class CiaoJava.PLJavaServer
-
- PLList - Class in CiaoJava
-
Java representation of a Prolog list.
- PLList(PLTerm, PLTerm) - Constructor for class CiaoJava.PLList
-
Given a head and a tail, creates a Java PLList object.
- PLList(PLTerm[]) - Constructor for class CiaoJava.PLList
-
Given a Java list, creates a Java PLList object
containing the objects included in the Java list.
- PLList(String) - Constructor for class CiaoJava.PLList
-
Given a Java string, creates a Java PLList object
containing the characters included in the Java string.
- PLServerSocket - Class in CiaoJava
-
This class creates a server socket and keeps it listening at
socket port #5000 (or number given in constructor).
- PLServerSocket() - Constructor for class CiaoJava.PLServerSocket
-
Server socket creation.
- PLString - Class in CiaoJava
-
This class implements the Java representation of a Prolog string.
- PLString(String) - Constructor for class CiaoJava.PLString
-
Given a Java string, creates a Java PLString
object.
- PLStructure - Class in CiaoJava
-
This class is used to represent in Java the
Prolog compound terms.
- PLStructure(String, int, PLTerm[]) - Constructor for class CiaoJava.PLStructure
-
Creates a new PLStructure
object
with the functor, arity and arguments received as parameters.
- PLStructure(String, PLTerm[]) - Constructor for class CiaoJava.PLStructure
-
Creates a new PLStructure
object.
- PLTerm - Class in CiaoJava
-
Java representation of Prolog terms.
- PLTerm() - Constructor for class CiaoJava.PLTerm
-
- PLVariable - Class in CiaoJava
-
Prolog variables representation.
- PLVariable() - Constructor for class CiaoJava.PLVariable
-
Creates a new Prolog variable
and references it to a free variable number.
- PLVariable(int) - Constructor for class CiaoJava.PLVariable
-
Creates a new Prolog variable with a given
variable number.