Towards Structuring Smart Grid: Energy Scheduling, Parking Lot Allocation, And Charging Management