1 29 30 31 package hero.hook; 32 33 import hero.util.HeroHookException; 34 import hero.interfaces.BnNodeLocal; 35 36 37 public class TestHook 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 try{ 47 String name=n.getName(); 48 System.out.println("AfterStart Test, node name: "+name); 49 }catch(Exception e){e.printStackTrace();} 50 } 51 public void beforeTerminate(Object b,BnNodeLocal n) throws HeroHookException {} 52 public void afterTerminate(Object b,BnNodeLocal n) throws HeroHookException {} 53 public void onCancel(Object b,BnNodeLocal n) throws HeroHookException {} 54 public void anticipate(Object b,BnNodeLocal n) throws HeroHookException {} 55 public void onDeadline(Object b,BnNodeLocal n) throws HeroHookException {} 56 public void onReady(Object b,BnNodeLocal n) throws HeroHookException {} 57 58 } 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | Popular Tags |