|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.declarativa.interprolog.util.GoalToExecute
A goal scheduled to execute in Prolog whenever possible
Constructor Summary | |
GoalToExecute(GoalFromJava goal)
|
|
GoalToExecute(GoalFromJava goal,
Thread t)
|
Method Summary | |
void |
abort()
Used on the InterProlog Java side to "cascade" an abort over pending goals to execute |
void |
executeInThread(Runnable r)
|
Thread |
getCallerThread()
|
GoalFromJava |
getGoal()
|
int |
getTimestamp()
|
boolean |
hasEnded()
|
boolean |
hasStarted()
|
void |
interrupt()
Used on the InterProlog Java side to "cascade" an interrupt over pending goals to execute |
boolean |
isFirstGoal()
|
void |
prologWasCalled()
|
void |
setFirstGoalStatus()
|
void |
setResult(ResultFromProlog result)
|
String |
toString()
|
ResultFromProlog |
waitForResult()
Obtain result for a Prolog goal, blocking until it is available; meanwhile it will execute Runnables if so requested |
boolean |
wasAborted()
|
boolean |
wasInterrupted()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public GoalToExecute(GoalFromJava goal)
public GoalToExecute(GoalFromJava goal, Thread t)
Method Detail |
public Thread getCallerThread()
public void executeInThread(Runnable r)
public ResultFromProlog waitForResult()
public void setResult(ResultFromProlog result)
public boolean wasInterrupted()
public boolean wasAborted()
public void interrupt()
public void abort()
public GoalFromJava getGoal()
public void prologWasCalled()
public boolean hasStarted()
public boolean hasEnded()
public int getTimestamp()
public void setFirstGoalStatus()
public boolean isFirstGoal()
public String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |