Implementation of resource model schema and decoupling of attribute properties 51/4951/5
authorHarish Kumara Marappa <h.marappa@samsung.com>
Thu, 11 Feb 2016 13:51:52 +0000 (19:21 +0530)
committerMadan Lanka <lanka.madan@samsung.com>
Thu, 18 Feb 2016 07:28:32 +0000 (07:28 +0000)
commitd81f2c6da7321646c92ada7292e7c3cdc81e5d63
treeb03818ba2f6e32f2c23eca71f54d92ceeb21b7a4
parent974d43540192dc00421865d09802ff1c8fcf2644
Implementation of resource model schema and decoupling of attribute properties

from SimulatorResourceModel.

1. Decoupled SimulatorResourceModel and AttributeProperty for easy maintains
of data model and its schema.
2. Enhanced AttributeProperty for representing schema property for Integer, Double,
Boolean, String, Array and Model (Object).
3. Modified all the code which is depending on SimulatorResourceModel and
AttributeProperty.

Change-Id: I08f849ec43e55d0dff77df256a08967952dfabb5
Signed-off-by: Harish Kumara Marappa <h.marappa@samsung.com>
Signed-off-by: abitha.s <abitha.s@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/4951
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Radha Bhavani <radha.p@samsung.com>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
61 files changed:
service/simulator/SConscript
service/simulator/examples/client/simulator_client.cpp
service/simulator/examples/server/simulator_server.cpp
service/simulator/inc/simulator_client_types.h
service/simulator/inc/simulator_collection_resource.h
service/simulator/inc/simulator_error_codes.h
service/simulator/inc/simulator_manager.h
service/simulator/inc/simulator_remote_resource.h
service/simulator/inc/simulator_request_model.h [new file with mode: 0644]
service/simulator/inc/simulator_resource.h
service/simulator/inc/simulator_resource_model.h
service/simulator/inc/simulator_resource_model_schema.h [new file with mode: 0644]
service/simulator/inc/simulator_single_resource.h
service/simulator/inc/simulator_uncopyable.h
service/simulator/src/client/attribute_generator.cpp [deleted file]
service/simulator/src/client/auto_request_gen_mngr.h [deleted file]
service/simulator/src/client/get_request_generator.cpp
service/simulator/src/client/get_request_generator.h
service/simulator/src/client/post_request_generator.cpp
service/simulator/src/client/post_request_generator.h
service/simulator/src/client/put_request_generator.cpp
service/simulator/src/client/put_request_generator.h
service/simulator/src/client/request_automation_manager.cpp [moved from service/simulator/src/client/auto_request_gen_mngr.cpp with 56% similarity]
service/simulator/src/client/request_automation_manager.h [new file with mode: 0644]
service/simulator/src/client/request_generation.cpp [moved from service/simulator/src/client/auto_request_gen.cpp with 77% similarity]
service/simulator/src/client/request_generation.h [moved from service/simulator/src/client/auto_request_gen.h with 80% similarity]
service/simulator/src/client/request_sender.cpp
service/simulator/src/client/request_sender.h
service/simulator/src/client/simulator_remote_resource_impl.cpp
service/simulator/src/client/simulator_remote_resource_impl.h
service/simulator/src/client/simulator_request_model.cpp [new file with mode: 0644]
service/simulator/src/common/attribute_generator.cpp [new file with mode: 0644]
service/simulator/src/common/attribute_generator.h [moved from service/simulator/src/client/attribute_generator.h with 70% similarity]
service/simulator/src/common/attribute_value_generator.cpp [new file with mode: 0644]
service/simulator/src/common/attribute_value_generator.h [new file with mode: 0644]
service/simulator/src/common/request_model.cpp
service/simulator/src/common/request_model.h
service/simulator/src/common/request_model_builder.cpp
service/simulator/src/common/request_model_builder.h
service/simulator/src/common/resource_model_schema_builder.cpp [new file with mode: 0644]
service/simulator/src/common/resource_model_schema_builder.h [new file with mode: 0644]
service/simulator/src/common/response_model.cpp
service/simulator/src/common/response_model.h
service/simulator/src/common/simulator_resource_model.cpp
service/simulator/src/common/simulator_resource_model_schema.cpp [new file with mode: 0644]
service/simulator/src/common/simulator_utils.cpp
service/simulator/src/common/simulator_utils.h
service/simulator/src/server/oc_interface_details.cpp [new file with mode: 0644]
service/simulator/src/server/oc_interface_details.h [new file with mode: 0644]
service/simulator/src/server/resource_update_automation.cpp
service/simulator/src/server/resource_update_automation.h
service/simulator/src/server/resource_update_automation_mngr.cpp
service/simulator/src/server/resource_update_automation_mngr.h
service/simulator/src/server/simulator_collection_resource_impl.cpp
service/simulator/src/server/simulator_collection_resource_impl.h
service/simulator/src/server/simulator_resource.cpp [moved from service/simulator/inc/simulator_server_types.h with 61% similarity]
service/simulator/src/server/simulator_resource_factory.cpp
service/simulator/src/server/simulator_resource_factory.h
service/simulator/src/server/simulator_single_resource_impl.cpp
service/simulator/src/server/simulator_single_resource_impl.h
service/simulator/src/simulator_manager.cpp