/*
* Device.cc
*
- * Created on: Mar 5, 2011
+ * Created on: Mar 4, 2011
* Author: lamikr
*/
-#include <string>
-
#include "Device.hh"
-#include "DeviceConfig.hh"
using namespace std;
using namespace plp;
-Device::Device(string id_param, string type_param) : plp::DeviceData(id_param, type_param) {
+Device::Device(string id_param, string type_param) {
+ id = id_param;
+ type = type_param;
+ lifecycle_status = LIFECYCLE_STATUS__UNAVAILABLE;
+}
+
+Device::Device(std::string id_param, std::string type_param, std::string name_param, plp::EnumDeviceLifeCycleStatus status_param) {
+ id = id_param;
+ type = type_param;
+ name = name_param;
+ lifecycle_status = status_param;
+}
+
+Device::~Device() {
+
+}
+
+string Device::get_id() {
+ return id;
+}
+
+string Device::get_name() {
+ return name;
+}
+
+void Device::set_name(string name_param) {
+ name = name_param;
+}
+
+EnumDeviceLifeCycleStatus Device::get_lifecycle_state() {
+ return lifecycle_status;
}
-Device::Device(string id_param, string type_param, string name_param, EnumDeviceLifeCycleStatus status_param) : plp::DeviceData(id_param, type_param, name_param, status_param) {
+string Device::get_type() {
+ return type;
}