|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
code.space.Space
public class Space
This class abstracts the narrowing space of a term. The class is structured as a thread with an input queue and an output queue. This thread takes a term (its computation, actually) from the input queue and places the result (its computation, actually) in an output queue.
This thread waits when the input queue is empty and/or when the output queue is full. This thread should be notified when a term is placed in the input queue and when a term is removed from the output queue.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
private boolean |
abort
|
Term |
current
Term register lent to instructions. |
static int |
freeVar
Maximum number of free variables in a rewrite rule. |
private boolean |
halt
|
protected boolean |
halted
|
private Queue |
inputQueue
Set of computations. |
static Space |
instance
|
static int |
lastSourceEndPos
|
static java.lang.String |
lastSourceFile
|
static int |
lastSourceStartPos
|
private IOQueue |
outputQueue
|
java.util.Stack |
preTerm
Term stack register lent to computations. |
Term[] |
varRegister
Uninstantiated variables registers. |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
protected |
Space()
|
| Method Summary | |
|---|---|
void |
abort()
|
void |
register(Computation computation)
|
void |
run()
|
void |
setOutputQueue(IOQueue outputQueue)
|
private void |
unregister()
|
void |
unregister(Computation c)
|
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int freeVar
public static int lastSourceStartPos
public static int lastSourceEndPos
public static java.lang.String lastSourceFile
public java.util.Stack preTerm
public Term current
public Term[] varRegister
private Queue inputQueue
private boolean halt
protected boolean halted
public static Space instance
private IOQueue outputQueue
private boolean abort
| Constructor Detail |
|---|
protected Space()
| Method Detail |
|---|
public void setOutputQueue(IOQueue outputQueue)
public void abort()
public void register(Computation computation)
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadprivate void unregister()
public void unregister(Computation c)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||