| |
com.declarativa.interprolog.util
Class ResultFromProlog
java.lang.Object
com.declarativa.interprolog.util.ResultFromProlog
- All Implemented Interfaces:
- Serializable
- public class ResultFromProlog
- extends Object
- implements Serializable
Used to serialize results for deterministicGoal
- See Also:
- Serialized Form
Field Summary |
Object |
error
Error message, null if none; used to be a String, now can be anything to cater for Prolog exceptions |
Object[] |
rVars
Object array corresponding to the result variable list |
boolean |
succeeded
Goal has succeeded |
int |
timestamp
Same as passed in GoalFromJava |
timestamp
public int timestamp
- Same as passed in GoalFromJava
succeeded
public boolean succeeded
- Goal has succeeded
rVars
public Object[] rVars
- Object array corresponding to the result variable list
error
public Object error
- Error message, null if none; used to be a String, now can be anything to cater for Prolog exceptions
ResultFromProlog
public ResultFromProlog(int t,
boolean s,
int size,
Object e)
toString
public String toString()
wasInterrupted
public boolean wasInterrupted(AbstractPrologEngine engine)
- Prolog complaining about being interrupted.
The engine parameter is necessary as the interrupt detection may depend on Prolog implementation or version
|