ubc.cs.JLog.Foundation
Class jConsultAndQueryThread
java.lang.Object
java.lang.Thread
ubc.cs.JLog.Foundation.jPrologServiceThread
ubc.cs.JLog.Foundation.jRetryQueryThread
ubc.cs.JLog.Foundation.jConsultAndQueryThread
- All Implemented Interfaces:
- Runnable
public class jConsultAndQueryThread
- extends jRetryQueryThread
This class implements a prolog consult, followed by a query.
The source is a TextArea, as is the error output.
- 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 |
in_consult_phase
protected boolean in_consult_phase
jConsultAndQueryThread
public jConsultAndQueryThread(jPrologServices ps,
iPrologServiceText s,
PrintWriter e,
iPrologServiceText qin,
PrintWriter o)
setListeners
public void setListeners(jPrologServiceBroadcaster c_b,
jPrologServiceBroadcaster c_e,
jPrologServiceBroadcaster q_b,
jPrologServiceBroadcaster q_r,
jPrologServiceBroadcaster q_e,
jPrologServiceBroadcaster q_d,
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
retry
public void retry()
- Specified by:
retry in class jRetryQueryThread
printOutput
public void printOutput(String s)
- Displays errors and other output that results from consulting the source.
- Overrides:
printOutput in class jPrologServiceThread
- Parameters:
s - the input string to append to errors.
Copyright © 2011. All Rights Reserved.