Adaptive Autosar Layered Architecture