Minor adjustments for Tomoyo for the fourth benchmark
[iot2.git] / iotjava / iotruntime / messages / MessageCreateSetRelation.java
1 package iotruntime.messages;
2
3 import java.io.Serializable;
4
5 /** Class MessageCreateSetRelation is a sub class of Message
6  *  This class wraps-up a message to create a new IoTSet/IoTRelation
7  *
8  * @author      Rahmadi Trimananda <rahmadi.trimananda @ uci.edu>
9  * @version     1.0
10  * @since       2016-02-24
11  */
12 public final class MessageCreateSetRelation extends Message {
13
14         /**
15          * MessageCreateSetRelation class property
16          */
17         private String sObjFieldName;
18
19         /**
20          * Class constructor (to tell IoTSlave to create a new IoTSet/IoTRelation)
21          */
22         public MessageCreateSetRelation(IoTCommCode sMsg, String sOFName) {
23
24                 super(sMsg);
25                 sObjFieldName = sOFName;
26         }
27
28         /**
29          * getObjectFieldName() method
30          *
31          * @return  String
32          */
33         public String getObjectFieldName() {
34                 return sObjFieldName;
35         }
36
37         /**
38          * setObjectFieldName() method
39          *
40          * @param   sOFName  String object name
41          * @return  void
42          */
43         public void setObjectFieldName(String sOFName) {
44                 sObjFieldName = sOFName;
45         }
46 }