next up previous contents
Next: Referencing actors Up: How SALSA Supports the Previous: How SALSA Supports the   Contents

Universal actor creation

A universal actor can be created at any desired theater by specifying its UAL and UAN. [*]For instance, one can create a universal actor at current host as follows:
 
HelloWorld helloWorld = new HelloWorld() 
  at (new UAN("uan://nameserver/id"), null); 
 
   
A universal actor can be created at the remote theater, hosting 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() 
  at (null, null);
 
   


Wei-Jen Wang 2005-10-24