-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcreateberlingenmotest.sec
184 lines (105 loc) · 5.04 KB
/
createberlingenmotest.sec
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
########################################################
########## create generic moving objects ##############
########################################################
open database berlingenmo;
let TwoDays = theRange(theInstant(2011,11,6,8,0,0,0), theInstant(2011,11,7,22,0,0,0), TRUE, FALSE);
let genmo_scale = 0.05;
#let genmo_scale = 1.0;
#let genmo_scale = 2.0;
#let genmo_scale = 5.0;
#let genmo_scale = 15.0;
#let genmo_scale = 25.0;
#let genmo_scale = 50.0;
#let genmo_scale = 125.0;
let divide = 3.0;
######################
## Car/Taxi Walk ####
## Type : 7 11 ######
######################
let genmo_carwalk_no = 2000.0 * genmo_scale;
let genmo_type7 = generate_genmo(space_1, TwoDays, genmo_carwalk_no, 7) consume;
delete genmo_carwalk_no;
let genmo_taxiwalk_no = 200.0 * genmo_scale;
let genmo_type11 = generate_genmo(space_1, TwoDays, genmo_taxiwalk_no, 11) consume;
delete genmo_taxiwalk_no;
####################
## Indoor Walk ####
## Type: 9 #########
####################
let genmo_walkindoor_no = 400.0 * genmo_scale;
let genmo_type9 = generate_genmo(space_1, TwoDays, genmo_walkindoor_no, 9) consume;
delete genmo_walkindoor_no;
##############################
## Indoor Walk Car/Taxi #####
## Type: 13,16 ##########
##############################
let genmo_walkindoorcar_no = 2000.0 * genmo_scale;
let genmo_type13 = generate_genmo(space_1, TwoDays, genmo_walkindoorcar_no/divide, 13) consume;
query generate_genmo(space_1, TwoDays, genmo_walkindoorcar_no/divide, 13) genmo_type13 insert count;
query generate_genmo(space_1, TwoDays, genmo_walkindoorcar_no/divide, 13) genmo_type13 insert count;
delete genmo_walkindoorcar_no;
let genmo_walkindoortaxi_no = 200.0 * genmo_scale;
let genmo_type16 = generate_genmo(space_1, TwoDays, genmo_walkindoortaxi_no, 16) consume;
delete genmo_walkindoortaxi_no;
######################
## Metro Walk #####
## Type : 10 #########
######################
let genmo_walkmetro_no = 1000.0 * genmo_scale;
let genmo_type10 = generate_genmo(space_1, TwoDays, genmo_walkmetro_no, 10) consume;
delete genmo_walkmetro_no;
###########################
## Indoor Walk Metro ####
## Type: 15 ##############
###########################
let genmo_walkindoormetro_no = 1000.0 * genmo_scale;
let genmo_type15 = generate_genmo(space_1, TwoDays, genmo_walkindoormetro_no/divide, 15) consume;
query generate_genmo(space_1, TwoDays, genmo_walkindoormetro_no/divide, 15) genmo_type15 insert count;
query generate_genmo(space_1, TwoDays, genmo_walkindoormetro_no/divide, 15) genmo_type15 insert count;
delete genmo_walkindoormetro_no;
##################
## Bus Walk #####
## Type : 8 ######
##################
let genmo_walkbus_no = 1000.0 * genmo_scale;
##### avoid large file for NativeFlobFile ###
### use this method, the file NativeFlobFile grows very big for large dataset ###
let genmo_type8 = generate_genmo(space_1, TwoDays, genmo_walkbus_no/divide, 8) consume;
query generate_genmo(space_1, TwoDays, genmo_walkbus_no/divide, 8) genmo_type8 insert count;
query generate_genmo(space_1, TwoDays, genmo_walkbus_no/divide, 8) genmo_type8 insert count;
delete genmo_walkbus_no;
##########################
## Indoor Walk Bus ######
## Type: 14 #############
##########################
let genmo_walkindoorbus_no = 1000.0 * genmo_scale;
let divide2 = 5.0;
let genmo_type14 = generate_genmo(space_1, TwoDays, genmo_walkindoorbus_no/divide2, 14) consume;
query generate_genmo(space_1, TwoDays, genmo_walkindoorbus_no/divide2, 14) genmo_type14 insert count;
query generate_genmo(space_1, TwoDays, genmo_walkindoorbus_no/divide2, 14) genmo_type14 insert count;
query generate_genmo(space_1, TwoDays, genmo_walkindoorbus_no/divide2, 14) genmo_type14 insert count;
query generate_genmo(space_1, TwoDays, genmo_walkindoorbus_no/divide2, 14) genmo_type14 insert count;
delete divide2;
delete genmo_walkindoorbus_no;
##########################
###### put all together ##
##########################
let genmo_oid = 1;
let genmo_all = genmo_type7 feed project[Trip1,Trip2] genmo_type11 feed project[Trip1,Trip2] concat genmo_type8 feed project[Trip1,Trip2] concat genmo_type9 feed project[Trip1,Trip2] concat genmo_type13 feed project[Trip1,Trip2] concat genmo_type16 feed project[Trip1,Trip2] concat genmo_type14 feed project[Trip1,Trip2] concat genmo_type10 feed project[Trip1,Trip2] concat genmo_type15 feed project[Trip1,Trip2] concat addcounter[Oid, genmo_oid] consume;
####### part of data generation ###
#let genmo_all = genmo_type13 feed project[Trip1,Trip2] genmo_type14 feed project[Trip1,Trip2] concat genmo_type15 feed project[Trip1,Trip2] concat addcounter[Oid, genmo_oid] consume;
#let genmo_all = genmo_type13 feed project[Trip1] genmo_type14 feed project[Trip1] concat genmo_type15 feed project[Trip1] concat addcounter[Oid, genmo_oid] consume;
delete genmo_oid;
delete divide;
delete genmo_scale;
delete genmo_type7;
delete genmo_type11;
delete genmo_type8;
delete genmo_type9;
delete genmo_type16;
delete genmo_type10;
delete genmo_type13;
delete genmo_type14;
delete genmo_type15;
query genmo_all count;
close database;