sketch.BASE.sa 708 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import ExternalModule
  2. module LocalModule
  3. semantic adaptation (reactive/delayed) (mealy/moore) Adapted_FMU_Name
  4. for fmu FMU1 fmu1
  5. at "./path/to/FMU1.fmu"
  6. input ports fmu_in_port1, ...
  7. output ports fmu_out_port1,...;
  8. ...
  9. input ports in_port_1,
  10. ...
  11. ;
  12. output ports out_port_1,
  13. ...
  14. ;
  15. param p1 := c1,
  16. ...
  17. ;
  18. in var iv1 := init_iv1,
  19. ...
  20. ;
  21. control var cv1 := init_cv1
  22. ...
  23. ;
  24. out var ov1 := init_ov1,
  25. ...
  26. ;
  27. in rules {
  28. in_condition_1 -> {
  29. sa_in_1
  30. } --> {
  31. update_in_1
  32. };
  33. ...
  34. }
  35. control rules {
  36. control_block_part_1
  37. do_step(fmu1, inner_t, h)
  38. control_block_part_2
  39. return step_size;
  40. }
  41. out rules {
  42. out_condition_1 -> {
  43. update_out_1
  44. } --> { sa_out_1 };
  45. ...
  46. }