public class GoalToExecute extends Object
Constructor and Description |
---|
GoalToExecute(GoalFromJava goal) |
GoalToExecute(GoalFromJava goal,
Thread t) |
Modifier and Type | Method and Description |
---|---|
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() |
public GoalToExecute(GoalFromJava goal)
public GoalToExecute(GoalFromJava goal, Thread t)
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()