Cyber physical systems (CPS) are one of new trends and research topics in recent years. To build a real cyber physical system will face numerous challenges because there exist a lot of differences between the cyber system and the physical system. In this