Adding class LabRoom for IoTRelation testing with C++ IoTSlave
[iot2.git] / iotjava / iotruntime / master / ObjectInitInfo.java
1 package iotruntime.master;
2
3 /** A class that construct object initialization info
4  *
5  * @author      Rahmadi Trimananda <rahmadi.trimananda @ uci.edu>
6  * @version     1.0
7  * @since       2015-05-12
8  */
9
10 public class ObjectInitInfo extends ObjectCreationInfo {
11
12         /**
13          * ObjectInitInfo properties
14          */
15         protected int iRMIRegPort;
16         protected int iRMIStubPort;
17         protected Integer[] iRMICallbackPorts;
18
19
20         /**
21          * Constructor
22          */
23         public ObjectInitInfo(String _strIoTSlaveObjectHostAdd, String _strObjName, 
24                 String _strObjClassName, String _strObjClassInterfaceName, String _strObjStubClsIntfaceName,
25                 int _iRMIRegPort, int _iRMIStubPort, Integer[] _iRMICallbackPorts) {
26
27                 super(_strIoTSlaveObjectHostAdd, _strObjName, _strObjClassName, _strObjClassInterfaceName, _strObjStubClsIntfaceName);
28                 iRMIRegPort = _iRMIRegPort;
29                 iRMIStubPort = _iRMIStubPort;
30                 iRMICallbackPorts = _iRMICallbackPorts;
31         }
32
33         /**
34          * Method getRMIRegistryPort()
35          */
36         public int getRMIRegistryPort() {
37                 return iRMIRegPort;
38         }
39
40         /**
41          * Method getRMIStubPort()
42          */
43         public int getRMIStubPort() {
44                 return iRMIStubPort;
45         }
46
47         /**
48          * Method getRMICallbackPorts()
49          */
50         public Integer[] getRMICallbackPorts() {
51                 return iRMICallbackPorts;
52         }
53 }