central_control_message.proto 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. syntax = "proto2";
  2. package message;
  3. import "message_base.proto";
  4. //针对流程的手动操作类型
  5. enum Process_operation_type
  6. {
  7. eManual_cancel=0; //取消流程
  8. eManual_retry=1; //重试
  9. eManual_ignore=2; //忽略
  10. }
  11. enum Module_statu
  12. {
  13. eConnected=0; //连接
  14. eDisconnected=1; //连接丢失
  15. eFault=2; //故障
  16. }
  17. //出入口状态
  18. message Entrance_statu
  19. {
  20. required bool paused=1;
  21. optional Module_statu parkspace_statu=2;
  22. optional Module_statu dispatch_statu=3;
  23. optional Module_statu notify_statu=4;
  24. }
  25. //中控状态消息
  26. message Central_controller_statu_msg
  27. {
  28. required Base_info base_info=1; //消息类型
  29. repeated Entrance_statu entrance_statu_vector=2; //入口状态(关闭或者开放)
  30. repeated Entrance_statu export_statu_vector=3; //出口状态
  31. }
  32. //出入口手动急停/启动消息
  33. message Entrance_manual_operation_msg
  34. {
  35. required Base_info base_info=1;
  36. required Id_struct id_struct=2;
  37. required Process_type process_type=3;
  38. required bool paused=4; //是否急停
  39. }
  40. //流程手动操作消息
  41. message Process_manual_operation_msg
  42. {
  43. required Base_info base_info=1;
  44. required string license=2;
  45. required Step_type step_type=3;
  46. required Process_operation_type operate_type=4;
  47. }