Adding last version of iotruntime and iotinstaller; preparing to extend IoTMaster...
[iot2.git] / iotjava / iotruntime / messages / MessageGetSimpleDeviceObject.java
1 package iotruntime.messages;
2
3 import java.io.Serializable;
4
5 /** Class MessageGetSimpleDeviceObject is a sub class of Message
6  *  This class wraps-up a message to get device object, i.e.
7  *  IoTSet that contains IoTZigbeeAddress objects
8  *
9  * @author      Rahmadi Trimananda <rahmadi.trimananda @ uci.edu>
10  * @version     1.0
11  * @since       2016-02-24
12  */
13 public class MessageGetSimpleDeviceObject extends Message {
14
15         /**
16          * MessageGetDeviceObject class property
17          */
18         private String sHostAddress;
19
20         /**
21          * Class constructor (to tell IoTSlave to get objects for IoTSet that contains e.g. IoTZigbeeAddress objects)
22          */
23         public MessageGetSimpleDeviceObject(IoTCommCode sMsg, String sHAddress) {
24
25                 super(sMsg);
26                 sHostAddress = sHAddress;
27         }
28
29         /**
30          * getHostAddress() method
31          *
32          * @return  String
33          */
34         public String getHostAddress() {
35                 return sHostAddress;
36         }
37
38         /**
39          * setHostAddress() method
40          *
41          * @param   sHAddress  String host address
42          * @return  void
43          */
44         public void setHostAddress(String sHAddress) {
45                 sHostAddress = sHAddress;
46         }
47 }