All Packages Class Hierarchy This Package Previous Next Index
Interface Jaja.EvaluationAble
- public interface EvaluationAble
- extends Remote
This interface characterizes an Evaluation performed by a World on
behalf of a Listener. The interface looks a little like a Thread:
one may start an evaluation or stop it. One may also inspect the
Evaluation to discover in which world it is run.
-
EVALUATED
-
-
EVALUATING
-
-
EXITED
-
-
EXITING
-
-
EXPANDED
-
-
EXPANDING
-
-
STARTING
-
-
statusName
-
-
UNCAUGHT
-
-
UNEVALUATED
-
-
UNEXPANDED
-
-
UNSTARTED
-
-
getDynamicEnvironment()
- Discover in which dynamic environment the evaluation takes place.
-
getStatus()
- An EvaluationAble always maintains an uptodate status which may be
one of the codes below.
-
getStatusName()
- This method converts the current status into a
String.
-
getWorld()
- Discover in which world the evaluation takes place.
-
obtain()
- The obtain method allows to get the final Value computed by an
EvalutationAble evaluation or to raise the Exception yielded by
this EvaluationAble evaluation.
-
resume()
-
-
start()
-
-
stop()
-
-
suspend()
-
EVALUATED
public static final int EVALUATED
UNSTARTED
public static final int UNSTARTED
STARTING
public static final int STARTING
EVALUATING
public static final int EVALUATING
UNEVALUATED
public static final int UNEVALUATED
EXPANDING
public static final int EXPANDING
UNEXPANDED
public static final int UNEXPANDED
EXPANDED
public static final int EXPANDED
EXITING
public static final int EXITING
EXITED
public static final int EXITED
UNCAUGHT
public static final int UNCAUGHT
statusName
public static final String statusName[]
getWorld
public abstract WorldAble getWorld() throws RemoteException
- Discover in which world the evaluation takes place.
getDynamicEnvironment
public abstract DynamicEnvironment getDynamicEnvironment() throws RemoteException
- Discover in which dynamic environment the evaluation takes place.
getStatus
public abstract int getStatus() throws RemoteException
- An EvaluationAble always maintains an uptodate status which may be
one of the codes below. The status is initially UNSTARTED and,
mormally, ends up with DONE. Various intermediary phases exist to
record the various states of the EvaluationAble: UNEVALUATED means that
an error occured when evaluating while UNEXPANDED means that an
error occured when expanding.
The normal succession of state is as follows:
UNSTARTED -> STARTING -> EXPANDING -> EXPANDED -> EVALUATING -> EVALUATED
| |
+> UNEXPANDED +> UNEVALUATED
getStatusName
public abstract String getStatusName() throws RemoteException
- This method converts the current status into a
String. Unfortunately its code must be duplicated in every class
implementing the current interface.
obtain
public abstract Value obtain() throws Exception, RemoteException
- The obtain method allows to get the final Value computed by an
EvalutationAble evaluation or to raise the Exception yielded by
this EvaluationAble evaluation. If a final state of the
EvaluationAble is not yet attained, wait until this is
true. This method is therefore synchronous.
- Throws: Exception
- errors when running Jaja belong to RuntimeException,
Other errors may occur due to remote method invokation.
start
public abstract void start() throws RemoteException
stop
public abstract void stop() throws RemoteException
suspend
public abstract void suspend() throws RemoteException
resume
public abstract void resume() throws RemoteException
All Packages Class Hierarchy This Package Previous Next Index