Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Constructor Summary
`ResultFromProlog(int t, boolean s, int size, Object e)`

Method Summary
`String` | `toString()`
`boolean` | `wasInterrupted(AbstractPrologEngine engine)` Prolog complaining about being interrupted.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### 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

Constructor Detail

### ResultFromProlog

    public ResultFromProlog(int t,
                            boolean s,
                            int size,
                            Object e)

Method Detail

### 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

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD