Adding last version of iotruntime and iotinstaller; preparing to extend IoTMaster...
[iot2.git] / iotjava / iotruntime / master / ObjectInitInfo.java
diff --git a/iotjava/iotruntime/master/ObjectInitInfo.java b/iotjava/iotruntime/master/ObjectInitInfo.java
new file mode 100644 (file)
index 0000000..52eee11
--- /dev/null
@@ -0,0 +1,44 @@
+package iotruntime.master;
+
+/** A class that construct object initialization info
+ *
+ * @author      Rahmadi Trimananda <rahmadi.trimananda @ uci.edu>
+ * @version     1.0
+ * @since       2015-05-12
+ */
+
+public class ObjectInitInfo extends ObjectCreationInfo {
+
+       /**
+        * ObjectInitInfo properties
+        */
+       protected int iRMIRegPort;
+       protected int iRMIStubPort;
+
+
+       /**
+        * Constructor
+        */
+       public ObjectInitInfo(String _strIoTSlaveObjectHostAdd, String _strObjName, 
+               String _strObjClassName, String _strObjClassInterfaceName,
+               int _iRMIRegPort, int _iRMIStubPort) {
+
+               super(_strIoTSlaveObjectHostAdd, _strObjName, _strObjClassName, _strObjClassInterfaceName);
+               iRMIRegPort = _iRMIRegPort;
+               iRMIStubPort = _iRMIStubPort;
+       }
+
+       /**
+        * Method getRMIRegistryPort()
+        */
+       public int getRMIRegistryPort() {
+               return iRMIRegPort;
+       }
+
+       /**
+        * Method getRMIStubPort()
+        */
+       public int getRMIStubPort() {
+               return iRMIStubPort;
+       }
+}