root / logic / trunk / src / init / scenariolist.h @ 61
History | View | Annotate | Download (993 Bytes)
1 |
#ifndef SCENARIOLIST_H_INCLUDED
|
---|---|
2 |
#define SCENARIOLIST_H_INCLUDED
|
3 |
|
4 |
#include "devicelist.h" |
5 |
|
6 |
typedef struct scenario_s |
7 |
{ |
8 |
char *scen_id;
|
9 |
char *scen_name;
|
10 |
char *inDevice_id;
|
11 |
device *inDev; |
12 |
char *outDevice_id;
|
13 |
int func;
|
14 |
int idleChkItv;
|
15 |
int actvChkItv;
|
16 |
float alpha;
|
17 |
char *params_val; // TODO kaj je to? |
18 |
int minval;
|
19 |
int maxval;
|
20 |
int optval;
|
21 |
int tolval;
|
22 |
char *action;
|
23 |
char *param;
|
24 |
struct condition_list *cond_l;
|
25 |
// control variables and pointers
|
26 |
float buf;
|
27 |
int status; // 0 - OK, 1 - fault reason 1, 2 - fault reason 2 ... etc. |
28 |
int running;
|
29 |
struct scenario_s *nxt;
|
30 |
}scenario; |
31 |
|
32 |
scenario *setNewScenarioList(device *dev); // ony called on startup
|
33 |
// TODO add update scenario list function
|
34 |
char *getScenarioId(/*arg*/); |
35 |
int getNumberOfScenarios();
|
36 |
scenario *getAvailableScenario(scenario *scen); |
37 |
|
38 |
#endif // SCENARIOLIST_H_INCLUDED |