All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Jaja.NetWorld

java.lang.Object
   |
   +----java.rmi.server.RemoteObject
           |
           +----java.rmi.server.RemoteServer
                   |
                   +----java.rmi.server.UnicastRemoteObject
                           |
                           +----Jaja.NetWorld

public class NetWorld
extends UnicastRemoteObject
implements WorldAble

Variable Index

 o worldsURLname
A published world has an URL that looks like: rmi://localhost:1099/Jaja/
 o worldURL

Constructor Index

 o NetWorld(String)
Create a NetWorld and publish it in the registry.
 o NetWorld(World)
Encapsulate an existing world into a remote world.

Method Index

 o createEvaluation(String, DynamicEnvironment)
 o createEvaluation(Value, DynamicEnvironment)
 o findPublishedWorld(String)
 o getEnvironment()
 o getMacroWorld()
 o getName()
 o getURL()
Return the URL where the world may be remotely accessed.
 o main(String[])
Start a NetWorld ready to be bound to some Listener.
 o publish()
Publish a World on the net in the registry.
 o setEnvironment(Environment)
 o setMacroWorld(WorldAble)
 o toString()

Variables

 o worldURL
 protected URL worldURL
 o worldsURLname
 public static final String worldsURLname
A published world has an URL that looks like: rmi://localhost:1099/Jaja/

Constructors

 o NetWorld
 public NetWorld(String name) throws RemoteException
Create a NetWorld and publish it in the registry.

 o NetWorld
 public NetWorld(World world) throws RemoteException
Encapsulate an existing world into a remote world. Do not publish it.

Methods

 o publish
 public URL publish()
Publish a World on the net in the registry. Return the complete URL towards the published world.

 o findPublishedWorld
 public static WorldAble findPublishedWorld(String us)
 o getURL
 public URL getURL()
Return the URL where the world may be remotely accessed. This forces the world to be published. b

 o main
 public static void main(String argv[])
Start a NetWorld ready to be bound to some Listener.

 o toString
 public String toString()
Overrides:
toString in class RemoteObject
 o getName
 public String getName() throws RemoteException
 o getEnvironment
 public Environment getEnvironment() throws RemoteException
 o setEnvironment
 public void setEnvironment(Environment env) throws RemoteException
 o getMacroWorld
 public WorldAble getMacroWorld() throws RemoteException
 o setMacroWorld
 public void setMacroWorld(WorldAble w) throws RemoteException
 o createEvaluation
 public EvaluationAble createEvaluation(Value program,
                                        DynamicEnvironment denv) throws RemoteException
 o createEvaluation
 public EvaluationAble createEvaluation(String program,
                                        DynamicEnvironment denv) throws RemoteException

All Packages  Class Hierarchy  This Package  Previous  Next  Index