PW_Controller.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * PW_Controller.h
  3. *
  4. * Created on: Jan 25, 2017
  5. * Author: Joachim
  6. */
  7. #ifndef PW_CONTROLLER_H_
  8. #define PW_CONTROLLER_H_
  9. #include "Powerwindow.h"
  10. #include "PowerwindowRequired.h"
  11. typedef enum {
  12. fmuInstantiated = 0,
  13. fmuInitMode = 1,
  14. fmuInitialized = 2,
  15. fmuTerminated = 3,
  16. fmuError = 4,
  17. fmuExperimentSettedUp = 5
  18. } FMUState;
  19. typedef struct {
  20. fmi2Real *r;
  21. fmi2Integer *i;
  22. fmi2Boolean *b;
  23. fmi2String *s;
  24. fmi2Boolean isVisible;
  25. fmi2String instanceName;
  26. fmi2String GUID;
  27. const fmi2CallbackFunctions* functions;
  28. fmi2Boolean loggingOn;
  29. FMUState state;
  30. fmi2Real stepSize;
  31. fmi2Real startTime;
  32. fmi2Real stopTime;
  33. fmi2Real currentTime;
  34. fmi2Real next_timer_event;
  35. fmi2Boolean stopTimeDefined;
  36. fmi2Real tolerance;
  37. fmi2Boolean toleranceDefined;
  38. Powerwindow *Handle;
  39. fmi_timer *thePWTimer;
  40. } FMUInstance; // At the moment, most of the variables not really used since multiple instances of an FMU are not supported at the moment (performance issues)
  41. #endif /* PW_CONTROLLER_H_ */