1 29 30 31 package hero.hook; 32 33 import hero.util.HeroHookException; 34 import hero.interfaces.BnNodeLocal; 35 36 37 public class TestReady implements hero.hook.NodeHookI { 38 39 public void create(Object b,BnNodeLocal n) throws HeroHookException { 40 41 } 42 43 public void beforeStart(Object b,BnNodeLocal n) throws HeroHookException { 44 } 45 public void afterStart(Object b,BnNodeLocal n) throws HeroHookException { 46 } 47 public void beforeTerminate(Object b,BnNodeLocal n) throws HeroHookException {} 48 public void afterTerminate(Object b,BnNodeLocal n) throws HeroHookException {} 49 public void onCancel(Object b,BnNodeLocal n) throws HeroHookException {} 50 public void anticipate(Object b,BnNodeLocal n) throws HeroHookException {} 51 public void onReady(Object b,BnNodeLocal n) throws HeroHookException { 52 try{ 53 String name=n.getName(); 54 System.out.println("OnReady Test, node name: "+name); 55 }catch(Exception e){e.printStackTrace();} 56 } 57 public void onDeadline(Object b,BnNodeLocal n) throws HeroHookException { 58 } 59 60 } 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | Popular Tags |