next up previous contents
Next: Referencing actors Up: WWC Implementation in SALSA Previous: WWC Implementation in SALSA

Universal Actor Creation

A universal actor can be created at any desired theater by specifying its UAN and UAL [*]. For instance, one can create a universal actor at current host as follows:
 
HelloWorld helloWorld = new HelloWorld() 
  at (new UAN("uan://nameserver/id")); 
 
   
A universal actor can be created at a remote theater, hosted at host1:4040, by the following statement:
 
HelloWorld helloWorld = new HelloWorld() 
  at (new UAN("uan://nameserver/id"), 
      new UAL("rmsp://host1:4040/id"));
 
   
An anonymous actor can be created as follows:
 
HelloWorld helloWorld = new HelloWorld( );
 
   
Notice that an anonymous actor cannot migrate.



Wei-Jen Wang
2007-11-28