Add PolicyManager, related classes and some config files
authorYuta Doi <yuta-d@witz-inc.co.jp>
Fri, 27 Apr 2018 10:01:36 +0000 (19:01 +0900)
committerYuta Doi <yuta-d@witz-inc.co.jp>
Fri, 27 Apr 2018 10:01:36 +0000 (19:01 +0900)
commit55be85ed4bdfea6fc037d781b8cd8f58487718d1
tree279a88e26c74aee58f11e2a5d20348569ce34667
parentd50188f726b15a0ae2777bf2d91ee88836feeac5
Add PolicyManager, related classes and some config files

- PolicyManager
    Decide next layout by using occured event and current state
    based on policy table.
    This PolicyManger is reference and the OEMs can replace it.

- LayoutManager
    Change the current layout to the layout
    which decided by PolicyManager.

    NOTE:
    The functions of this class had been included in App class.
    The part of function of this class remain there yet.

- LowCanClient
    Receive the CAN signal from low level CAN service.

- app.db
    Define the applications name and its role.
    This file will be deleted
    when the names and roles can be given by other module.

- layout.cb
    Define the layouts and areas which are included by the layout.

- role.db
    Define the roles of the applications.

Change-Id: I2f84bdf5e68355e022f516cee9a1db88efe58825
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
24 files changed:
CMakeLists.txt
layers.json
package/root/config.xml
src/CMakeLists.txt
src/app.cpp
src/app.hpp
src/db/app.db [new file with mode: 0644]
src/json_helper.cpp
src/json_helper.hpp
src/layout.cpp [deleted file]
src/layout.hpp [deleted file]
src/layout_manager/db/layout.db [new file with mode: 0644]
src/layout_manager/layout.cpp [new file with mode: 0644]
src/layout_manager/layout.hpp [new file with mode: 0644]
src/low_can_client.cpp [new file with mode: 0644]
src/low_can_client.hpp [new file with mode: 0644]
src/main.cpp
src/policy_manager/CMakeLists.txt [new file with mode: 0644]
src/policy_manager/db/role.db [new file with mode: 0644]
src/policy_manager/policy_manager.cpp [new file with mode: 0644]
src/policy_manager/policy_manager.hpp [new file with mode: 0644]
src/policy_manager/zipc/category.db [new file with mode: 0644]
src/policy_manager/zipc/dummy_stm.c [new file with mode: 0644]
src/policy_manager/zipc/dummy_stm.h [new file with mode: 0644]