The source code and dockerfile for the GSW2024 AI Lab.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

34 lines
622 B

2 months ago
  1. ma
  2. const double rateProcessing = 2;
  3. const double rateA = 1;
  4. const double rateB = 1;
  5. module server
  6. s : [0..5]; // current state:
  7. // 0: wait for request
  8. // 1: received request from A
  9. // 2: received request from B
  10. // 3: starting to process request of B
  11. // 4: processing request
  12. // 5: error
  13. <> s=0 -> rateA : (s'=1) + rateB : (s'=2);
  14. [alpha] s=1 -> 1 : (s'=4);
  15. [alpha] s=2 -> 1 : (s'=3);
  16. [beta] s=2 -> 0.5 : (s'=0) + 0.5 : (s'=3);
  17. [] s=3 -> 1 : (s'=4);
  18. <> s=4 -> rateProcessing : (s'=0) + (rateA+rateB) : (s'=5);
  19. <> s=5 -> 1 : true;
  20. endmodule
  21. label "error" = (s=5);
  22. label "processB" = (s=3);