scenario.sa 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. This file is no longer used.
  3. The descriptions of the relevant FMUs are best done inside each semantic adaptation.
  4. */
  5. module PowerWindowModel
  6. /*
  7. Each of these fmu descriptions has to include more information about the FMU.
  8. Namely:
  9. environment must refer to the name of the instance of the FMU. Therefore, the name of the FMU to be instantiated is missing.
  10. The location of the .fmu file is also missing.
  11. The "type discrete event" no longer serves any purpose, so should be removed.
  12. The "full internal dependencies" is not needed once you have the file to parse.
  13. The "output ports" can be specified here, for syntax completion purposes, but they can be retrieved from the *.fmu file.
  14. If you agree with these changes, you should have the following:
  15. fmu Environent environment // declares the instance name environment of the FMU environment.
  16. at "./path/to/Environment.fmu"
  17. output ports passenger_up, passenger_down, driver_up, driver_down
  18. Before it was this:
  19. fmu power
  20. type continuous time
  21. input ports up, down, reaction_torque (N.m)
  22. output ports armature_current (mA), motor_speed (m/s)
  23. full internal dependencies
  24. */
  25. fmu Environent environment // declares the instance name environment of the FMU environment.
  26. at "./path/to/Environment.fmu"
  27. output ports passenger_up, passenger_down, driver_up, driver_down
  28. fmu Controller controller
  29. at "./path/to/Controller.fmu"
  30. input ports obj_detected, passenger_up, passenger_down, driver_up, driver_down
  31. output ports up, down, stop
  32. fmu Power power
  33. at "./path/to/Power.fmu"
  34. input ports up, down, reaction_torque (N.m)
  35. output ports armature_current (mA), motor_speed (m/s)
  36. fmu Window window
  37. at "./path/to/Window.fmu"
  38. input ports motor_speed (m/s), reaction_force (N)
  39. output ports height (cm), window_reaction_torque (N.m)
  40. fmu Obstacle obstacle
  41. at "./path/to/Obstacle.fmu"
  42. input ports height (m)
  43. output ports reaction_force (N)
  44. /*
  45. The dotted syntax will have to be supported.
  46. According the Casper and Kenneth, it is very common to have variables with the same name, but that should not be connected. So it is better to not assume implicit connections in this description.
  47. */
  48. armature_current -> obj_detected // only ports that change names need to be connected