2 * Copyright 2015 Samsung Electronics All Rights Reserved.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package org.oic.simulator;
20 * This class contains remote device platform information and provide APIs
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;
37 * This method is for getting platform id.
39 * @return Platform id.
41 public String getPlatformID() {
46 * This method is for setting platform id.
49 * Platform identifier.
51 public void setPlatformID(String mPlatformId) {
52 this.mPlatformId = mPlatformId;
56 * This method is for getting manufacturer name.
58 * @return Manufacturer name.
60 public String getManufacturerName() {
61 return m_manufacturerName;
65 * This method is for setting manufacturer name.
67 * @param m_manufacturerName
70 public void setManufacturerName(String m_manufacturerName) {
71 this.m_manufacturerName = m_manufacturerName;
75 * This method is for getting manufacturer URL.
77 * @return Manufacturer URL.
79 public String getManufacturerUrl() {
80 return m_manufacturerUrl;
84 * This method is for setting manufacturer URL.
86 * @param m_manufacturerUrl
89 public void setManufacturerUrl(String m_manufacturerUrl) {
90 this.m_manufacturerUrl = m_manufacturerUrl;
94 * This method is for getting model number.
96 * @return Model number.
98 public String getModelNumber() {
103 * This method is for setting model number.
105 * @param m_modelNumber
108 public void setModelNumber(String m_modelNumber) {
109 this.m_modelNumber = m_modelNumber;
113 * This method is for getting date of manufacture.
115 * @return Date of manufacture.
117 public String getDateOfManufacture() {
118 return m_dateOfManufacture;
122 * This method is for setting date of manufacture.
124 * @param m_dateOfManufacture
125 * Date of manufacture.
127 public void setDateOfManufacture(String m_dateOfManufacture) {
128 this.m_dateOfManufacture = m_dateOfManufacture;
132 * This method is for getting platform version.
134 * @return Platform version.
136 public String getPlatformVersion() {
137 return m_platformVersion;
141 * This method is for setting platform version.
143 * @param m_platformVersion
146 public void setPlatformVersion(String m_platformVersion) {
147 this.m_platformVersion = m_platformVersion;
151 * This method is for getting operating system version.
153 * @return Operation system version.
155 public String getOperationSystemVersion() {
156 return m_operationSystemVersion;
160 * This method is for setting operating system version.
162 * @param m_operationSystemVersion
163 * Operation system version.
165 public void setOperationSystemVersion(String m_operationSystemVersion) {
166 this.m_operationSystemVersion = m_operationSystemVersion;
170 * This method is for getting hardware version.
172 * @return Hardware version.
174 public String getHardwareVersion() {
175 return m_hardwareVersion;
179 * This method is for setting hardware version.
181 * @param m_hardwareVersion
184 public void setHardwareVersion(String m_hardwareVersion) {
185 this.m_hardwareVersion = m_hardwareVersion;
189 * This method is for getting firmware version.
191 * @return Firmware version.
193 public String getFirmwareVersion() {
194 return m_firmwareVersion;
198 * This method is for setting firmware version.
200 * @param m_firmwareVersion
203 public void setFirmwareVersion(String m_firmwareVersion) {
204 this.m_firmwareVersion = m_firmwareVersion;
208 * This method is for getting support link URL.
210 * @return URL of support link.
212 public String getSupportUrl() {
217 * This method is for setting support link URL.
219 * @param m_supportUrl
220 * URL of support link.
222 public void setSupportUrl(String m_supportUrl) {
223 this.m_supportUrl = m_supportUrl;
227 * This method is for getting system time.
229 * @return System time.
231 public String getSystemTime() {
236 * This method is for setting system time.
238 * @param m_systemTime
241 public void setSystemTime(String m_systemTime) {
242 this.m_systemTime = m_systemTime;