ubc.cs.JLog.Foundation
Class jPrologServiceThread
java.lang.Object
java.lang.Thread
ubc.cs.JLog.Foundation.jPrologServiceThread
- All Implemented Interfaces:
- Runnable
- Direct Known Subclasses:
- jAPIConsultThread, jConsultSourceThread, jResetDatabaseThread, jRetryQueryThread
public class jPrologServiceThread
- extends Thread
This class provides an independant thread of execution for services using
a jPrologService Prolog proof engine.
- 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, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
prolog
protected jPrologServices prolog
stopped
protected jPrologServiceBroadcaster stopped
allow_release
protected boolean allow_release
jPrologServiceThread
public jPrologServiceThread(jPrologServices ps)
getPrologServices
public jPrologServices getPrologServices()
setStoppedListeners
public void setStoppedListeners(jPrologServiceBroadcaster s)
broadcasted_stop
public void broadcasted_stop()
isCurrentlyConsulting
public boolean isCurrentlyConsulting()
setAllowRelease
public void setAllowRelease(boolean a)
- Set the thread release state upon completion. By default the thread may
release itself from
jPrologServices when it no longer needs to
use its services. If this thread is being used in sequence (i.e., is
being invoked by another worker thread) then it should not initiate release,
because the next thread may need Prolog Services.
- Parameters:
a - true to allow thread release, false to disallow it.
printOutput
public void printOutput(String s)
Copyright © 2011. All Rights Reserved.