Event-based control of freeway systems