]> rtime.felk.cvut.cz Git - orte.git/blob - orte/Robot_Demo/src/org/ocera/orte/demo/MyEvents.java
ROBOT_DEMO: completely rewritten
[orte.git] / orte / Robot_Demo / src / org / ocera / orte / demo / MyEvents.java
1 package org.ocera.orte.demo;
2 /* MyEvents.java */
3
4 /**
5  * Class MyEvents 
6  * 
7  * @author Lukas Pokorny (lukas_pokorny@centrum.cz)
8  * @author CTU FEE Prague - Department of Control Engineering (dce.felk.cvut.cz)
9  * @author Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
10  * @author dedication to Kj
11  * @version 0.1
12  *
13  * This program is free software; you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License as published by
15  * the Free Software Foundation; either version 2 of the License, or
16  * (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  */
24
25 import org.ocera.orte.types.*;
26
27 public class MyEvents extends DomainEvents {
28
29   /* constructor */
30   public MyEvents()
31   {
32     super();            
33   }
34
35   @Override
36   public void onRegFail() 
37   {
38         System.out.println(":j: *************************************************");
39         System.out.println(":j: * call method 'MyEvents.onRegFail()'..          *");
40         System.out.println(":j: *************************************************");
41   }
42
43   @Override
44   public void onMgrNew(AppInfo appInfo) 
45   {
46         System.out.println(":j: *************************************************");
47         System.out.println(":j: * call method 'MyEvents.onMgrNew()'..           *");
48         System.out.println(":j: *************************************************");
49   }
50   
51   @Override
52   public void onMgrDelete(AppInfo appInfo)
53   {
54         System.out.println(":j: *************************************************");
55         System.out.println(":j: * call method 'MyEvents.onMgrDelete()'..        *");
56         System.out.println(":j: *************************************************");
57   }
58
59   @Override
60   public void onAppRemoteNew(AppInfo appInfo)
61   {
62         System.out.println(":j: *************************************************");
63         System.out.println(":j: * call method 'MyEvents.onAppRemoteNew()'..     *");
64         System.out.println(":j: *************************************************");
65     //
66         appInfo.printWithLegend();
67   }
68
69   @Override
70   public void onAppDelete(AppInfo appInfo)
71   {
72         System.out.println(":j: *************************************************");
73         System.out.println(":j: * call method 'MyEvents.onAppDelete()'..        *");
74         System.out.println(":j: *************************************************");
75     //
76     appInfo.printWithLegend();   
77   }
78
79   @Override
80   public void onPubRemoteNew(AppInfo appInfo, PubInfo pubInfo)
81   {
82         System.out.println(":j: *************************************************");
83         System.out.println(":j: * call method 'MyEvents.onPubRemoteNew()'..     *");
84         System.out.println(":j: *************************************************");
85     // 
86         appInfo.printWithLegend();
87         pubInfo.printWithLegend();
88   }
89
90   @Override
91   public void onPubRemoteChanged(AppInfo appInfo, PubInfo pubInfo)
92   {
93         System.out.println(":j: *************************************************");
94         System.out.println(":j: * call method 'MyEvents.onPubRemoteChanged()'.. *");
95         System.out.println(":j: *************************************************");
96     // 
97         appInfo.printWithLegend();      
98     pubInfo.printWithLegend();
99   }
100
101   @Override
102   public void onPubDelete(AppInfo appInfo, PubInfo pubInfo)
103   {
104         System.out.println(":j: *************************************************");
105         System.out.println(":j: * call method 'MyEvents.onPubDelete()'..        *");
106         System.out.println(":j: *************************************************");
107     // 
108         appInfo.printWithLegend();      
109     pubInfo.printWithLegend();
110   }
111   
112   @Override
113   public void onSubRemoteNew(AppInfo appInfo, SubInfo subInfo)
114   {
115         System.out.println(":j: *************************************************");
116         System.out.println(":j: * call method 'MyEvents.onSubRemoteNew()'..     *");
117         System.out.println(":j: *************************************************");
118     // 
119         appInfo.printWithLegend();      
120     subInfo.printWithLegend();
121   }
122
123   @Override
124   public void onSubRemoteChanged(AppInfo appInfo, SubInfo subInfo)
125   {
126         System.out.println(":j: *************************************************");
127         System.out.println(":j: * call method 'MyEvents.onSubRemoteChanged()'.. *");
128         System.out.println(":j: *************************************************");
129     // 
130         appInfo.printWithLegend();      
131     subInfo.printWithLegend();  
132   }
133
134   @Override
135   public void onSubDelete(AppInfo appInfo, SubInfo subInfo)
136   {
137         System.out.println(":j: *************************************************");
138         System.out.println(":j: * call method 'MyEvents.onSubDelete()'..        *");
139         System.out.println(":j: *************************************************");
140     // 
141         appInfo.printWithLegend();      
142     subInfo.printWithLegend();
143   }
144   
145 }