Managing distributed flexible manufacturing systems