Properties modelling as design by contract for cyber-physical systems: an example in the smart grid domain. (17th May 2019)