RMAS: Relational Multiagent System for CPS Prototyping and Programming