Cleaning methodSignatures
authorrtrimana <rtrimana@uci.edu>
Sat, 5 Nov 2016 20:38:11 +0000 (13:38 -0700)
committerrtrimana <rtrimana@uci.edu>
Sat, 5 Nov 2016 20:38:11 +0000 (13:38 -0700)
iotjava/iotrmi/Java/sample/CallBack_Skeleton.java
iotjava/iotrmi/Java/sample/CallBack_Stub.java
iotjava/iotrmi/Java/sample/TestClass_Skeleton.java
iotjava/iotrmi/Java/sample/TestClass_Stub.java

index d6d4ee0..ed297c8 100644 (file)
@@ -8,11 +8,6 @@ import iotrmi.Java.IoTRMIObject;
 public class CallBack_Skeleton implements CallBackInterface {
 
        private int objectId = 0;       // Default value is 0
-       private final static String[] methodSignatures = {
-
-               "intprintInt()",
-               "voidsetInt(int)"
-       };
        private CallBackInterface cb;
        private IoTRMIObject rmiObj;
 
@@ -77,13 +72,6 @@ public class CallBack_Skeleton implements CallBackInterface {
        }
 
 
-       // Return method signatures
-       public static String[] getMethodSignatures() {
-
-               return methodSignatures;
-       }
-
-
        public static void main(String[] args) throws Exception {
 
                int port = 5010;
index 638f7da..04dc0d9 100644 (file)
@@ -11,11 +11,6 @@ public class CallBack_Stub implements CallBackInterface {
        private IoTRMICall rmiCall;
 
        private int objectId = 0;       // Default value is 0
-       private final static String[] methodSignatures = {
-
-               "intprintInt()",
-               "voidsetInt(int)"
-       };
 
        /**
         * Constructors
@@ -26,13 +21,6 @@ public class CallBack_Stub implements CallBackInterface {
        }
 
 
-       // Return method signatures
-       public static String[] getMethodSignatures() {
-
-               return methodSignatures;
-       }
-
-
        public int printInt() {
 
                int methodId = 0;
index 7147073..aec1d56 100644 (file)
@@ -16,22 +16,6 @@ public class TestClass_Skeleton implements TestClassInterface {
         */
        private int objectId = 0;       // Default value is 0
        private static int objIdCnt = 0; // Counter for callback object Ids
-       private final static String[] methodSignatures = {
-
-               "voidsetA(int)", // 0
-               "voidsetB(float)", // 1
-               "voidsetC(string)", // 2
-               "sumArray(string[])", // 3
-               "intsetAndGetA(int)", // 4
-               "intsetACAndGetA(string,int)", // 5
-               "intcallBack()", // 6
-               "voidregisterCallBack(CallBackInterface)", // 7
-               "voidregisterCallBack(CallBackInterface[])", // 8
-               "registercallback", // 9
-               "handleStruct(StructJ[])", // 10
-               "structsize" // 11
-       };
-
        private TestClassInterface tc;
        private int port;
        private IoTRMIObject rmiObj;
@@ -280,13 +264,6 @@ public class TestClass_Skeleton implements TestClassInterface {
                        }
                }
        }
-
-
-       // Return method signatures
-       public static String[] getMethodSignatures() {
-
-               return methodSignatures;
-       }
        
        
        public static void main(String[] args) throws Exception {
index 3f70b0c..c1f03c6 100644 (file)
@@ -27,21 +27,6 @@ public class TestClass_Stub implements TestClassInterface {
        private final static int NUM_CB_OBJ = 1;
        private int objectId = 0;       // Default value is 0
        private static int objIdCnt = 0; // Counter for callback object Ids
-       private final static String[] methodSignatures = {
-
-               "voidsetA(int)", // 0
-               "voidsetB(float)", // 1
-               "voidsetC(string)", // 2
-               "sumArray(string[])", // 3
-               "intsetAndGetA(int)", // 4
-               "intsetACAndGetA(string,int)", // 5
-               "intcallBack()", // 6
-               "voidregisterCallBack(CallBackInterface)", // 7
-               "voidregisterCallBack(CallBackInterface[])", // 8
-               "registercallback", // 9
-               "handleStruct(StructJ[])", // 10
-               "structsize" // 11
-       };
 
        /**
         * Constructors
@@ -66,13 +51,6 @@ public class TestClass_Stub implements TestClassInterface {
        }
 
 
-       // Return method signatures
-       public static String[] getMethodSignatures() {
-
-               return methodSignatures;
-       }
-
-
        // Initialize callback
        public void ___initCallBack() {