+++ /dev/null
-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!");
- }
- }
-
-}