]> rtime.felk.cvut.cz Git - orte.git/commitdiff
ROBOT_DEMO: remove DomainEvents
authorMartin Vajnar <martin.vajnar@gmail.com>
Tue, 23 Jul 2013 17:30:13 +0000 (19:30 +0200)
committerMartin Vajnar <martin.vajnar@gmail.com>
Tue, 23 Jul 2013 17:30:13 +0000 (19:30 +0200)
orte/Robot_Demo/src/org/ocera/orte/demo/MainActivity.java
orte/Robot_Demo/src/org/ocera/orte/demo/MyEvents.java [deleted file]

index d288f969baa22cd38b08395a301ae93679b1c59f..f4d299ad60d018fa388df8830e285555d37e362a 100644 (file)
@@ -2,8 +2,6 @@ package org.ocera.orte.demo;
 
 import org.ocera.orte.DomainApp;
 import org.ocera.orte.Manager;
-import org.ocera.orte.types.DomainProp;
-import org.ocera.orte.types.ORTEConstant;
 
 import android.app.Activity;
 import android.content.Context;
@@ -93,11 +91,7 @@ public class MainActivity extends Activity {
         
         manager = new Manager(mgrs);
 
-        MyEvents events = new MyEvents();
-        appDomain = new DomainApp(ORTEConstant.ORTE_DEFAULT_DOMAIN,
-                                                         DomainProp.defaultPropsCreate(),
-                                                         events,
-                                                         false);
+        appDomain = new DomainApp();
     }
     
        @Override
diff --git a/orte/Robot_Demo/src/org/ocera/orte/demo/MyEvents.java b/orte/Robot_Demo/src/org/ocera/orte/demo/MyEvents.java
deleted file mode 100644 (file)
index 1cee145..0000000
+++ /dev/null
@@ -1,123 +0,0 @@
-package org.ocera.orte.demo;
-/* MyEvents.java */
-
-/**
- * Class MyEvents 
- * 
- * @author Lukas Pokorny (lukas_pokorny@centrum.cz)
- * @author CTU FEE Prague - Department of Control Engineering (dce.felk.cvut.cz)
- * @author Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
- * @author dedication to Kj
- * @version 0.1
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- */
-
-import org.ocera.orte.types.*;
-
-public class MyEvents extends DomainEvents {
-
-  /* constructor */
-  public MyEvents()
-  {
-    super();           
-  }
-
-  @Override
-  public void onRegFail() 
-  {
-       System.out.println(":j: *************************************************");
-       System.out.println(":j: * call method 'MyEvents.onRegFail()'..          *");
-       System.out.println(":j: *************************************************");
-  }
-
-  @Override
-  public void onMgrNew(AppInfo appInfo) 
-  {
-       System.out.println(":j: *************************************************");
-       System.out.println(":j: * call method 'MyEvents.onMgrNew()'..           *");
-       System.out.println(":j: *************************************************");
-  }
-  
-  @Override
-  public void onMgrDelete(AppInfo appInfo)
-  {
-       System.out.println(":j: *************************************************");
-       System.out.println(":j: * call method 'MyEvents.onMgrDelete()'..        *");
-       System.out.println(":j: *************************************************");
-  }
-
-  @Override
-  public void onAppRemoteNew(AppInfo appInfo)
-  {
-       System.out.println(":j: *************************************************");
-       System.out.println(":j: * call method 'MyEvents.onAppRemoteNew()'..     *");
-       System.out.println(":j: *************************************************");
-  }
-
-  @Override
-  public void onAppDelete(AppInfo appInfo)
-  {
-       System.out.println(":j: *************************************************");
-       System.out.println(":j: * call method 'MyEvents.onAppDelete()'..        *");
-       System.out.println(":j: *************************************************");
-  }
-
-  @Override
-  public void onPubRemoteNew(AppInfo appInfo, PubInfo pubInfo)
-  {
-       System.out.println(":j: *************************************************");
-       System.out.println(":j: * call method 'MyEvents.onPubRemoteNew()'..     *");
-       System.out.println(":j: *************************************************");
-  }
-
-  @Override
-  public void onPubRemoteChanged(AppInfo appInfo, PubInfo pubInfo)
-  {
-       System.out.println(":j: *************************************************");
-       System.out.println(":j: * call method 'MyEvents.onPubRemoteChanged()'.. *");
-       System.out.println(":j: *************************************************");
-  }
-
-  @Override
-  public void onPubDelete(AppInfo appInfo, PubInfo pubInfo)
-  {
-       System.out.println(":j: *************************************************");
-       System.out.println(":j: * call method 'MyEvents.onPubDelete()'..        *");
-       System.out.println(":j: *************************************************");
-  }
-  
-  @Override
-  public void onSubRemoteNew(AppInfo appInfo, SubInfo subInfo)
-  {
-       System.out.println(":j: *************************************************");
-       System.out.println(":j: * call method 'MyEvents.onSubRemoteNew()'..     *");
-       System.out.println(":j: *************************************************");
-  }
-
-  @Override
-  public void onSubRemoteChanged(AppInfo appInfo, SubInfo subInfo)
-  {
-       System.out.println(":j: *************************************************");
-       System.out.println(":j: * call method 'MyEvents.onSubRemoteChanged()'.. *");
-       System.out.println(":j: *************************************************");
-  }
-
-  @Override
-  public void onSubDelete(AppInfo appInfo, SubInfo subInfo)
-  {
-       System.out.println(":j: *************************************************");
-       System.out.println(":j: * call method 'MyEvents.onSubDelete()'..        *");
-       System.out.println(":j: *************************************************");
-  }
-  
-}