private void OnIntersectionStateChanged(object sender, IntersectionControlState state) { // Handle intersection state change; for example, start controller algorithms if // state is set to Control // Note: no ReqState may be set for signal groups and exclusive outputs while the // intersection is not in Control state }
public async Task SetIntersectionReqStateAsync(IntersectionControlState state) { _stateManager.Intersection.ReqState = state; try { await _tlcProxy.UpdateStateAsync(GetObjectStateUpdateGroup(_stateManager.Intersection), _sessionCancellationToken); } catch (TaskCanceledException) { } _stateManager.Intersection.ResetChanged(); }
public async Task SetIntersectionReqStateAsync(IntersectionControlState state) { await _jsonRpcHandler.SetIntersectionReqStateAsync(state); }