public class PrologImpl extends UnicastRemoteObject implements Prolog, Serializable
ref
Constructor and Description |
---|
PrologImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addTheory(Theory theory) |
void |
clearTheory() |
Theory |
getTheory() |
boolean |
hasOpenAlternatives() |
void |
loadLibrary(String className) |
void |
setTheory(Theory theory) |
SolveInfo |
solve(String g) |
SolveInfo |
solve(Term g) |
void |
solveEnd() |
void |
solveHalt() |
SolveInfo |
solveNext() |
void |
unloadLibrary(String className) |
clone, exportObject, exportObject, exportObject, unexportObject
getClientHost, getLog, setLog
public PrologImpl() throws RemoteException
RemoteException
public void clearTheory() throws RemoteException
clearTheory
in interface Prolog
RemoteException
public Theory getTheory() throws RemoteException
getTheory
in interface Prolog
RemoteException
public void setTheory(Theory theory) throws InvalidTheoryException, RemoteException
setTheory
in interface Prolog
InvalidTheoryException
RemoteException
public void addTheory(Theory theory) throws InvalidTheoryException, RemoteException
addTheory
in interface Prolog
InvalidTheoryException
RemoteException
public SolveInfo solve(Term g) throws RemoteException
solve
in interface Prolog
RemoteException
public SolveInfo solve(String g) throws MalformedGoalException, RemoteException
solve
in interface Prolog
MalformedGoalException
RemoteException
public boolean hasOpenAlternatives() throws RemoteException
hasOpenAlternatives
in interface Prolog
RemoteException
public SolveInfo solveNext() throws NoMoreSolutionException, RemoteException
solveNext
in interface Prolog
NoMoreSolutionException
RemoteException
public void solveHalt() throws RemoteException
solveHalt
in interface Prolog
RemoteException
public void solveEnd() throws RemoteException
solveEnd
in interface Prolog
RemoteException
public void loadLibrary(String className) throws InvalidLibraryException, RemoteException
loadLibrary
in interface Prolog
InvalidLibraryException
RemoteException
public void unloadLibrary(String className) throws InvalidLibraryException, RemoteException
unloadLibrary
in interface Prolog
InvalidLibraryException
RemoteException
Copyright © 2015. All rights reserved.