Imported Upstream version 1.0.0
[platform/upstream/iotivity.git] / service / simulator / java / sdk / src / org / oic / simulator / PlatformInfo.java
1 /*
2  * Copyright 2015 Samsung Electronics All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 package org.oic.simulator;
18
19 /**
20  * This class contains remote device platform information and provide APIs
21  * access it.
22  */
23 public class PlatformInfo {
24     private String mPlatformId;
25     private String m_manufacturerName;
26     private String m_manufacturerUrl;
27     private String m_modelNumber;
28     private String m_dateOfManufacture;
29     private String m_platformVersion;
30     private String m_operationSystemVersion;
31     private String m_hardwareVersion;
32     private String m_firmwareVersion;
33     private String m_supportUrl;
34     private String m_systemTime;
35
36     /**
37      * This method is for getting platform id.
38      *
39      * @return Platform id.
40      */
41     public String getPlatformID() {
42         return mPlatformId;
43     }
44
45     /**
46      * This method is for setting platform id.
47      *
48      * @param mPlatformId
49      *            Platform identifier.
50      */
51     public void setPlatformID(String mPlatformId) {
52         this.mPlatformId = mPlatformId;
53     }
54
55     /**
56      * This method is for getting manufacturer name.
57      *
58      * @return Manufacturer name.
59      */
60     public String getManufacturerName() {
61         return m_manufacturerName;
62     }
63
64     /**
65      * This method is for setting manufacturer name.
66      *
67      * @param m_manufacturerName
68      *            Manufacturer name.
69      */
70     public void setManufacturerName(String m_manufacturerName) {
71         this.m_manufacturerName = m_manufacturerName;
72     }
73
74     /**
75      * This method is for getting manufacturer URL.
76      *
77      * @return Manufacturer URL.
78      */
79     public String getManufacturerUrl() {
80         return m_manufacturerUrl;
81     }
82
83     /**
84      * This method is for setting manufacturer URL.
85      *
86      * @param m_manufacturerUrl
87      *            Manufacturer URL.
88      */
89     public void setManufacturerUrl(String m_manufacturerUrl) {
90         this.m_manufacturerUrl = m_manufacturerUrl;
91     }
92
93     /**
94      * This method is for getting model number.
95      *
96      * @return Model number.
97      */
98     public String getModelNumber() {
99         return m_modelNumber;
100     }
101
102     /**
103      * This method is for setting model number.
104      *
105      * @param m_modelNumber
106      *            Model number.
107      */
108     public void setModelNumber(String m_modelNumber) {
109         this.m_modelNumber = m_modelNumber;
110     }
111
112     /**
113      * This method is for getting date of manufacture.
114      *
115      * @return Date of manufacture.
116      */
117     public String getDateOfManufacture() {
118         return m_dateOfManufacture;
119     }
120
121     /**
122      * This method is for setting date of manufacture.
123      *
124      * @param m_dateOfManufacture
125      *            Date of manufacture.
126      */
127     public void setDateOfManufacture(String m_dateOfManufacture) {
128         this.m_dateOfManufacture = m_dateOfManufacture;
129     }
130
131     /**
132      * This method is for getting platform version.
133      *
134      * @return Platform version.
135      */
136     public String getPlatformVersion() {
137         return m_platformVersion;
138     }
139
140     /**
141      * This method is for setting platform version.
142      *
143      * @param m_platformVersion
144      *            Platform version.
145      */
146     public void setPlatformVersion(String m_platformVersion) {
147         this.m_platformVersion = m_platformVersion;
148     }
149
150     /**
151      * This method is for getting operating system version.
152      *
153      * @return Operation system version.
154      */
155     public String getOperationSystemVersion() {
156         return m_operationSystemVersion;
157     }
158
159     /**
160      * This method is for setting operating system version.
161      *
162      * @param m_operationSystemVersion
163      *            Operation system version.
164      */
165     public void setOperationSystemVersion(String m_operationSystemVersion) {
166         this.m_operationSystemVersion = m_operationSystemVersion;
167     }
168
169     /**
170      * This method is for getting hardware version.
171      *
172      * @return Hardware version.
173      */
174     public String getHardwareVersion() {
175         return m_hardwareVersion;
176     }
177
178     /**
179      * This method is for setting hardware version.
180      *
181      * @param m_hardwareVersion
182      *            Hardware version.
183      */
184     public void setHardwareVersion(String m_hardwareVersion) {
185         this.m_hardwareVersion = m_hardwareVersion;
186     }
187
188     /**
189      * This method is for getting firmware version.
190      *
191      * @return Firmware version.
192      */
193     public String getFirmwareVersion() {
194         return m_firmwareVersion;
195     }
196
197     /**
198      * This method is for setting firmware version.
199      *
200      * @param m_firmwareVersion
201      *            Firmware version.
202      */
203     public void setFirmwareVersion(String m_firmwareVersion) {
204         this.m_firmwareVersion = m_firmwareVersion;
205     }
206
207     /**
208      * This method is for getting support link URL.
209      *
210      * @return URL of support link.
211      */
212     public String getSupportUrl() {
213         return m_supportUrl;
214     }
215
216     /**
217      * This method is for setting support link URL.
218      *
219      * @param m_supportUrl
220      *            URL of support link.
221      */
222     public void setSupportUrl(String m_supportUrl) {
223         this.m_supportUrl = m_supportUrl;
224     }
225
226     /**
227      * This method is for getting system time.
228      *
229      * @return System time.
230      */
231     public String getSystemTime() {
232         return m_systemTime;
233     }
234
235     /**
236      * This method is for setting system time.
237      *
238      * @param m_systemTime
239      *            System time.
240      */
241     public void setSystemTime(String m_systemTime) {
242         this.m_systemTime = m_systemTime;
243     }
244 }