1 package org.ocera.orte.demo;
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
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.
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.
25 import org.ocera.orte.types.*;
27 public class MyEvents extends DomainEvents {
36 public void onRegFail()
38 System.out.println(":j: *************************************************");
39 System.out.println(":j: * call method 'MyEvents.onRegFail()'.. *");
40 System.out.println(":j: *************************************************");
44 public void onMgrNew(AppInfo appInfo)
46 System.out.println(":j: *************************************************");
47 System.out.println(":j: * call method 'MyEvents.onMgrNew()'.. *");
48 System.out.println(":j: *************************************************");
52 public void onMgrDelete(AppInfo appInfo)
54 System.out.println(":j: *************************************************");
55 System.out.println(":j: * call method 'MyEvents.onMgrDelete()'.. *");
56 System.out.println(":j: *************************************************");
60 public void onAppRemoteNew(AppInfo appInfo)
62 System.out.println(":j: *************************************************");
63 System.out.println(":j: * call method 'MyEvents.onAppRemoteNew()'.. *");
64 System.out.println(":j: *************************************************");
66 appInfo.printWithLegend();
70 public void onAppDelete(AppInfo appInfo)
72 System.out.println(":j: *************************************************");
73 System.out.println(":j: * call method 'MyEvents.onAppDelete()'.. *");
74 System.out.println(":j: *************************************************");
76 appInfo.printWithLegend();
80 public void onPubRemoteNew(AppInfo appInfo, PubInfo pubInfo)
82 System.out.println(":j: *************************************************");
83 System.out.println(":j: * call method 'MyEvents.onPubRemoteNew()'.. *");
84 System.out.println(":j: *************************************************");
86 appInfo.printWithLegend();
87 pubInfo.printWithLegend();
91 public void onPubRemoteChanged(AppInfo appInfo, PubInfo pubInfo)
93 System.out.println(":j: *************************************************");
94 System.out.println(":j: * call method 'MyEvents.onPubRemoteChanged()'.. *");
95 System.out.println(":j: *************************************************");
97 appInfo.printWithLegend();
98 pubInfo.printWithLegend();
102 public void onPubDelete(AppInfo appInfo, PubInfo pubInfo)
104 System.out.println(":j: *************************************************");
105 System.out.println(":j: * call method 'MyEvents.onPubDelete()'.. *");
106 System.out.println(":j: *************************************************");
108 appInfo.printWithLegend();
109 pubInfo.printWithLegend();
113 public void onSubRemoteNew(AppInfo appInfo, SubInfo subInfo)
115 System.out.println(":j: *************************************************");
116 System.out.println(":j: * call method 'MyEvents.onSubRemoteNew()'.. *");
117 System.out.println(":j: *************************************************");
119 appInfo.printWithLegend();
120 subInfo.printWithLegend();
124 public void onSubRemoteChanged(AppInfo appInfo, SubInfo subInfo)
126 System.out.println(":j: *************************************************");
127 System.out.println(":j: * call method 'MyEvents.onSubRemoteChanged()'.. *");
128 System.out.println(":j: *************************************************");
130 appInfo.printWithLegend();
131 subInfo.printWithLegend();
135 public void onSubDelete(AppInfo appInfo, SubInfo subInfo)
137 System.out.println(":j: *************************************************");
138 System.out.println(":j: * call method 'MyEvents.onSubDelete()'.. *");
139 System.out.println(":j: *************************************************");
141 appInfo.printWithLegend();
142 subInfo.printWithLegend();