aminePlatform.engines.prologPlusCG.interpreter
Class InterpreterThread

java.lang.Object
  extended byjava.lang.Thread
      extended byaminePlatform.util.AmineThread
          extended byaminePlatform.engines.prologPlusCG.interpreter.InterpreterThread
All Implemented Interfaces:
java.lang.Runnable

public class InterpreterThread
extends AmineThread

Title : InterpreterThread

Description : Prolog+CG Interpreter in Thread

Copyright : Copyright (c) Adil KABBAJ 2004-2009


Field Summary
 boolean isFirstSolution
           
 boolean isNextSolution
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
InterpreterThread(Interpreter interpreter)
           
 
Method Summary
 boolean getDebug()
           
 Interpreter getInterpreter()
           
 void run()
           
 void setDebug(boolean debug)
          Set the mode of the debugger: if debug is true, then debugger will be actif, otherwise the debugger will not be actif
 void setInterpreter(Interpreter interpreter)
           
 
Methods inherited from class aminePlatform.util.AmineThread
myResume, mySuspend
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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

isFirstSolution

public boolean isFirstSolution

isNextSolution

public boolean isNextSolution
Constructor Detail

InterpreterThread

public InterpreterThread(Interpreter interpreter)
Method Detail

getInterpreter

public Interpreter getInterpreter()

setInterpreter

public void setInterpreter(Interpreter interpreter)

getDebug

public boolean getDebug()

setDebug

public void setDebug(boolean debug)
Set the mode of the debugger: if debug is true, then debugger will be actif, otherwise the debugger will not be actif

Parameters:
debug - A boolean

run

public void run()