-
Notifications
You must be signed in to change notification settings - Fork 0
/
heading.h
94 lines (82 loc) · 1.37 KB
/
heading.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/* heading.h */
#pragma once
//#define YY_NO_UNPUT
using namespace std;
#include <iostream>
#include <stdio.h>
#include <string>
#include <cstdlib>
#include <vector>
#include <math.h>
#include <string.h>
#include <iomanip>
#include <locale>
#include <sstream>
#include <algorithm>
#include <stack>
#include <unistd.h>
struct goals
{
vector<string> formulae;
};
struct action
{
string acName;
int t_flag;
int f_flag;
vector<string> t_guard;
vector<string> f_guard;
vector<string> t_ac;
vector<string> f_ac;
};
struct init
{
vector<string> t_in;
vector<string> f_in;
};
struct protocol
{
vector<string> t_pro;
vector<string> f_pro;
vector<string> ac_pro;
};
struct update_act
{
string next_var;
vector<string> assign_formula;
};
struct update
{
vector<string> guard_formula;
vector<update_act> act_formula;
};
struct agent
{
string agName;
vector<string> varName;
vector<string> varpro; //local var + global var
vector<action> ac;
vector<init> initStates;
vector<protocol> agPro;
vector<update> ag_up;
};
struct env_evo
{
string obsvar;
string con_agent;
vector<string> t_conac;
vector<string> f_conac;
};
struct st_arena_evo
{
string evolution;
string assignment;
};
struct env_ag
{
vector<string> nat_obsvar;
vector<string> obs_idx;
vector<env_evo> seed;
//vector<string> evolution;
vector<st_arena_evo> arena_evo;
};