RMAS Architecture for Autonomic Computing in Cyber-Physical Systems