A cyber-physical approach to the management and control of manufacturing systems