01: package hero.hook;
02:
03: /*
04: *
05: * NodeHookI.java -
06: * Copyright (C) 2003 Ecoo Team
07: * charoy@loria.fr
08: *
09: *
10: * This program is free software; you can redistribute it and/or
11: * modify it under the terms of the GNU Lesser General Public License
12: * as published by the Free Software Foundation; either version 2
13: * of the License, or (at your option) any later version.
14: *
15: * This program is distributed in the hope that it will be useful,
16: * but WITHOUT ANY WARRANTY; without even the implied warranty of
17: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18: * GNU Lesser General Public License for more details.
19: *
20: * You should have received a copy of the GNU Lesser General Public License
21: * along with this program; if not, write to the Free Software
22: * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23: */
24:
25: import hero.interfaces.BnNodeLocal;
26: import hero.util.HeroHookException;
27:
28: public interface NodeHookI {
29: public String getMetadata();
30:
31: public void beforeStart(Object b, BnNodeLocal n)
32: throws HeroHookException;
33:
34: public void afterStart(Object b, BnNodeLocal n)
35: throws HeroHookException;
36:
37: public void beforeTerminate(Object b, BnNodeLocal n)
38: throws HeroHookException;
39:
40: public void afterTerminate(Object b, BnNodeLocal n)
41: throws HeroHookException;
42:
43: public void anticipate(Object b, BnNodeLocal n)
44: throws HeroHookException;
45:
46: public void onCancel(Object b, BnNodeLocal n)
47: throws HeroHookException;
48:
49: public void onDeadline(Object b, BnNodeLocal n)
50: throws HeroHookException;
51:
52: public void onReady(Object b, BnNodeLocal n)
53: throws HeroHookException;
54:
55: }
|