Real-Time Urban Traffic Control In A Connected And Automated Vehicle Environment