Design of fuzzy logic based energy management and traffic predictive model for cyber physical systems