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