ubc.cs.JLog.Foundation
Class jAPIConsultThread
java.lang.Object
java.lang.Thread
ubc.cs.JLog.Foundation.jPrologServiceThread
ubc.cs.JLog.Foundation.jAPIConsultThread
- All Implemented Interfaces:
- Runnable
public class jAPIConsultThread
- extends jPrologServiceThread
This class implements consulting of a prolog source text, throwing exceptions for
encountered errors.
- Version:
- %I%, %G%
- Author:
- Glendon Holst
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
source
protected String source
begin
protected jPrologServiceBroadcaster begin
end
protected jPrologServiceBroadcaster end
result_exception
protected RuntimeException result_exception
jAPIConsultThread
public jAPIConsultThread(jPrologServices ps,
String src)
setListeners
public void setListeners(jPrologServiceBroadcaster b,
jPrologServiceBroadcaster e,
jPrologServiceBroadcaster s)
run
public void run()
- Performs and controls the entire consultation phase.
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
isCurrentlyConsulting
public boolean isCurrentlyConsulting()
- Overrides:
isCurrentlyConsulting in class jPrologServiceThread
getResultException
public RuntimeException getResultException()
- Returns the RuntimeException thrown by an unsucessful query / retry
(e.g., UnknownPredicateException).
- Returns:
- Returns a RuntimeException if the query failed.
Returns null if the query did not throw an exception.
Copyright © 2011. All Rights Reserved.