Distributed Event Triggered Control, Estimation, And Optimization For Cyber-Physical Systems