1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- /*
- * PW_Controller.h
- *
- * Created on: Jan 25, 2017
- * Author: Joachim
- */
- #ifndef PW_CONTROLLER_H_
- #define PW_CONTROLLER_H_
- #include "Powerwindow.h"
- #include "PowerwindowRequired.h"
- typedef enum {
- fmuInstantiated = 0,
- fmuInitMode = 1,
- fmuInitialized = 2,
- fmuTerminated = 3,
- fmuError = 4,
- fmuExperimentSettedUp = 5
- } FMUState;
- typedef struct {
- fmi2Real *r;
- fmi2Integer *i;
- fmi2Boolean *b;
- fmi2String *s;
- fmi2Boolean isVisible;
- fmi2String instanceName;
- fmi2String GUID;
- const fmi2CallbackFunctions* functions;
- fmi2Boolean loggingOn;
- FMUState state;
- fmi2Real stepSize;
- fmi2Real startTime;
- fmi2Real stopTime;
- fmi2Real currentTime;
- fmi2Real next_timer_event;
- fmi2Boolean stopTimeDefined;
- fmi2Real tolerance;
- fmi2Boolean toleranceDefined;
- Powerwindow *Handle;
- fmi_timer *thePWTimer;
- } 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)
- #endif /* PW_CONTROLLER_H_ */
|