All Packages Class Hierarchy This Package Previous Next Index
Interface Jaja.WorldAble
- public interface WorldAble
- extends Remote
The interface describing a World. A world is a place where
evaluations may take place concurrently. All these evaluations share
a common global environment. But every evaluation brings its own
dynamic environment (where the current input and output ports are
stored).
Every world may have an associated macro world where all
macro-expansion are performed. A null macro-world means "don't expand".
The macro world may have itself its own macro world etc.
QUESTION: How to parameterize Jaja wrt RMI or CORBA or DCOM etc...
-
createEvaluation(String, DynamicEnvironment)
- Create an evaluation (from a string).
-
createEvaluation(Value, DynamicEnvironment)
- Create an evaluation (from a Value).
-
getEnvironment()
- Get the current global environment of the world.
-
getMacroWorld()
- Get the macro world where the current world macro-expand the
expressions it has to evaluate.
-
getName()
- Get the name of the world.
-
setEnvironment(Environment)
- Set the global environment of the world.
-
setMacroWorld(WorldAble)
- Set the macro world where the current world macro-expand the
expressions it has to evaluate.
getName
public abstract String getName() throws RemoteException
- Get the name of the world.
getEnvironment
public abstract Environment getEnvironment() throws RemoteException
- Get the current global environment of the world.
setEnvironment
public abstract void setEnvironment(Environment env) throws RemoteException
- Set the global environment of the world. If env is null then use
a default environment. This method should be used when
initializing a world (ie at design-time in beans-parlance).
getMacroWorld
public abstract WorldAble getMacroWorld() throws RemoteException
- Get the macro world where the current world macro-expand the
expressions it has to evaluate.
setMacroWorld
public abstract void setMacroWorld(WorldAble world) throws RemoteException
- Set the macro world where the current world macro-expand the
expressions it has to evaluate. This method should be used when
initializing a world (ie at design-time in beans-parlance).
createEvaluation
public abstract EvaluationAble createEvaluation(String program,
DynamicEnvironment denv) throws RemoteException
- Create an evaluation (from a string). You will have to start it.
createEvaluation
public abstract EvaluationAble createEvaluation(Value program,
DynamicEnvironment denv) throws RemoteException
- Create an evaluation (from a Value). You will have to start it.
All Packages Class Hierarchy This Package Previous Next Index