sketch.BASE.sa 811 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. import ExternalModule
  2. module LocalModule
  3. semantic adaptation Adapted_FMU_Name
  4. for fmu fmu1, fmu2, fmu3, fmu4, ... ; \\ Kenneth> how does it know where the FMU fils are_):?
  5. input ports in_port_1,
  6. in_port_2,
  7. ...
  8. ;
  9. output ports out_port_1,
  10. out_port_2,
  11. ...
  12. ;
  13. param p1 := c1,
  14. p2 := c2,
  15. ...
  16. ;
  17. in var iv1 := init_iv1,
  18. iv2 := init_iv2,
  19. ...
  20. ;
  21. control var cv1 := init_cv1
  22. cv2 := init_cv2
  23. ...
  24. ;
  25. out var ov1 := init_ov1,
  26. ov2 := init_ov2,
  27. ...
  28. ;
  29. in rules {
  30. in_condition_1 -> {
  31. sa_in_1
  32. } --> {
  33. update_in_1
  34. };
  35. in_condition_2 -> {
  36. sa_in_2
  37. } --> {
  38. update_in_2
  39. };
  40. ...
  41. }
  42. control rules {
  43. ...
  44. return step_size;
  45. }
  46. out rules {
  47. out_condition_1 -> {
  48. update_out_1
  49. } --> { sa_out_1 };
  50. in_condition_2 -> {
  51. update_out_1
  52. } --> { sa_out_2 };
  53. ...
  54. }