com.declarativa.interprolog.util
Class GoalToExecute
java.lang.Object
|
+--com.declarativa.interprolog.util.GoalToExecute
- public class GoalToExecute
- extends Object
A goal scheduled to execute in Prolog whenever possible
GoalToExecute
public GoalToExecute(GoalFromJava goal)
waitForResult
public ResultFromProlog waitForResult()
- Obtain result for a Prolog goal, blocking until it is available
setResult
public void setResult(ResultFromProlog result)
wasInterrupted
public boolean wasInterrupted()
wasAborted
public boolean wasAborted()
interrupt
public void interrupt()
abort
public void abort()
getGoal
public GoalFromJava getGoal()
prologWasCalled
public void prologWasCalled()
hasStarted
public boolean hasStarted()
hasEnded
public boolean hasEnded()
getTimestamp
public int getTimestamp()
setFirstGoalStatus
public void setFirstGoalStatus()
isFirstGoal
public boolean isFirstGoal()
toString
public String toString()
- Overrides:
toString
in class Object