Updating stubs and skeletons for the second benchmark and drivers; tested the second...
[iot2.git] / benchmarks / Java / SpeakerController / GPSGatewayCallback_CallbackSkeleton.java
diff --git a/benchmarks/Java/SpeakerController/GPSGatewayCallback_CallbackSkeleton.java b/benchmarks/Java/SpeakerController/GPSGatewayCallback_CallbackSkeleton.java
deleted file mode 100644 (file)
index 91c2d15..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-package SpeakerController;
-
-import java.io.IOException;
-import java.util.List;
-import java.util.ArrayList;
-import java.util.Arrays;
-import iotrmi.Java.IoTRMICall;
-import iotrmi.Java.IoTRMIObject;
-
-import iotcode.interfaces.*;
-
-public class GPSGatewayCallback_CallbackSkeleton implements GPSGatewayCallback {
-
-       private GPSGatewayCallback mainObj;
-       private int objectId = 0;
-       private String callbackAddress;
-       
-
-       public GPSGatewayCallback_CallbackSkeleton(GPSGatewayCallback _mainObj, String _callbackAddress, int _objectId) throws Exception {
-               callbackAddress = _callbackAddress;
-               mainObj = _mainObj;
-               objectId = _objectId;
-       }
-
-       public void newRoomIDRetrieved(int _roomIdentifier) {
-               mainObj.newRoomIDRetrieved(_roomIdentifier);
-       }
-
-       public void newRingStatusRetrieved(boolean _ringStatus) {
-               mainObj.newRingStatusRetrieved(_ringStatus);
-       }
-
-       public void ___newRoomIDRetrieved(IoTRMIObject rmiObj) {
-               Object[] paramObj = rmiObj.getMethodParams(new Class<?>[] { int.class }, 
-               new Class<?>[] { null });
-               newRoomIDRetrieved((int) paramObj[0]);
-       }
-
-       public void ___newRingStatusRetrieved(IoTRMIObject rmiObj) {
-               Object[] paramObj = rmiObj.getMethodParams(new Class<?>[] { boolean.class }, 
-               new Class<?>[] { null });
-               newRingStatusRetrieved((boolean) paramObj[0]);
-       }
-
-       public void invokeMethod(IoTRMIObject rmiObj) throws IOException {
-               int methodId = rmiObj.getMethodId();
-               switch (methodId) {
-                       case 0: ___newRoomIDRetrieved(rmiObj); break;
-                       case 1: ___newRingStatusRetrieved(rmiObj); break;
-                       default: 
-                       throw new Error("Method Id " + methodId + " not recognized!");
-               }
-       }
-
-}