Пример #1
0
 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
 }
Пример #2
0
 public async Task SetIntersectionReqStateAsync(IntersectionControlState state)
 {
     _stateManager.Intersection.ReqState = state;
     try
     {
         await _tlcProxy.UpdateStateAsync(GetObjectStateUpdateGroup(_stateManager.Intersection), _sessionCancellationToken);
     }
     catch (TaskCanceledException)
     {
     }
     _stateManager.Intersection.ResetChanged();
 }
Пример #3
0
 public async Task SetIntersectionReqStateAsync(IntersectionControlState state)
 {
     await _jsonRpcHandler.SetIntersectionReqStateAsync(state);
 }