package pddemo;

import com.ibm.aglet.*;

public class CreationChild extends Aglet {

   public void onCreation() {
      print("\'onCreation()\' is starting...");
      pause();
      print("\'onCreation()\' is finishing.");
   }

   public void run() {
      print("\'run()\' is starting...");
      pause();
      print("\'run()\' is finishing.");
      dispose();
   }

   private void print(String s) { System.out.println("(child): " + s); }
   private static long SLEEP = 3000;
   private void pause() { try { Thread.sleep(SLEEP); } catch (InterruptedException ie) { } }
}
