1 package SpeakerController;
3 import java.io.IOException;
5 import java.util.ArrayList;
6 import java.util.Arrays;
7 import iotrmi.Java.IoTRMICall;
8 import iotrmi.Java.IoTRMIObject;
10 import iotcode.interfaces.RoomSmart;
12 public class RoomSmart_Stub implements RoomSmart {
14 private IoTRMICall rmiCall;
15 private String callbackAddress;
18 private final static int objectId = 0;
21 public RoomSmart_Stub(int _port, String _skeletonAddress, String _callbackAddress, int _rev, int[] _ports) throws Exception {
22 callbackAddress = _callbackAddress;
24 rmiCall = new IoTRMICall(_port, _skeletonAddress, _rev);
27 public int getRoomID() {
29 Class<?> retType = int.class;
30 Class<?>[] paramCls = new Class<?>[] { };
31 Object[] paramObj = new Object[] { };
32 Object retObj = rmiCall.remoteCall(objectId, methodId, retType, null, paramCls, paramObj);