亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? task.sql

?? nesC寫的heed算法
?? SQL
?? 第 1 頁 / 共 2 頁
字號:
-- SQL for creating tables to initialize a GSK database.
-- This script is platform specific.  It uses some PostgreSQL specific
-- data types (e.g., bytea).

-- task_query_log is a complete log of all queries submitted to 
-- the sensor network
drop table task_query_log cascade;
create table task_query_log (
	query_id int primary key,	/* unique id for queries */
	tinydb_qid smallint,		/* TinyDB query id, 1-byte */
	query_text text not null,	/* query text in TinyDB SQL */
	query_type varchar(20) not null, /* query type: sensor or health */
	table_name varchar(100) not null unique /* name of table where the query results are logged */
	);

-- task_query_time_log records the query start and stop times
drop table task_query_time_log;
create table task_query_time_log (
	query_id int references task_query_log,	/* query id */
	start_time timestamp not null,			/* query start time */
	stop_time timestamp, 					/* query stop time */
	primary key(query_id, start_time)
	);

-- task_command_log is a complete log of all commands submitted to
-- the sensor network
drop table task_command_log cascade;
create table task_command_log (
	command_id	int primary key, /* unique command id */
	submit_time timestamp, /* command submission time */
	command_name varchar(100), /* command name, e.g., reset, sample_rate, ping, calibrate, etc. */
	node_id int, /* target node id, -1 means all nodes */
	query_id int, /* query id the command is targeting, -1 means all queries */
	command_arg int /* single integer argument value, will generalize later */
	);

-- task_command_acks records the acknowledgements from each node in reponse to
-- a command issued from the server.
drop table task_command_acks;
create table task_command_acks (
	command_id	int references task_command_log,
	ack_time	timestamp, /* timestamp when ack comes in */
	node_id		int, /* node id from which the ack is sent */
	query_id	int, /* query id if command is targeting a particular query */
	epoch		int, /* last epoch number for the query */
	sample_rate int /* all acks include the current sample rate in seconds */
	);

-- task_packet_log is a complete log of all raw packets received from 
-- the sensor network.
-- There will also be a per-query table (specified by task_query_log.table_name)
-- logging the query result tuples.
drop table task_packet_log;
create table task_packet_log (
	query_id int references task_query_log, /* id of query that generated the packet */
	epoch int, 		/* epoch number */
	server_time timestamp, /* time received at server */
	mote_time timestamp, 	/* logical time stamped by mote */
	mote_id int, 	/* id of mote that generated the packet */
	raw_packet bytea /* raw packet bytes */
	);

-- task_health_log is a complete log of network health and statistics
-- that can be collected from the sensor network.  It includes all
-- possible network health and statistics related attributes.  Each
-- health query will only collect a subset of these attributes.  The
-- attributes that are not included in the query will be filled with
-- NULL values.
drop table task_health_log;
create table task_health_log (
	query_id int references task_query_log,	/* query id */
	epoch int, 	/* epoch number */
	server_time timestamp, /* time received at server */
	mote_time timestamp, 	/* logical time stamped by mote */
	mote_id int, 			/* mote id */
	parent int, 			/* parent id in routing tree */
	voltage int,			/* battery voltage */
	contention int			/* radio contention */
	/* The exact list of health&stat attributes is yet to be finalized. */
	);

-- task_last_query_id implements a persistent counter for generating
-- unique GSK query ids
drop table task_next_query_id;
create table task_next_query_id (
	query_id int, 	/* next query id */
	tinydb_qid smallint, /* next tinydb query id, 1 byte */
	command_id int /* next command id */
	);
-- query 0 is reserved for the calibration query
insert into task_next_query_id values (1, 1, 0);

-- task_attributes contains information about all the attributes
-- that can be queries from the sensor network
drop table task_attributes;
create table task_attributes (
	name varchar(8), 	/* attribute name, limited to 8 characters */
	typeid int, 		/* type of attribute */
	power_cons int, /* per sample power consumption rate */
	description varchar(1000) /* description of the attribute */
	);
insert into task_attributes values ('nodeid', 3, 1, 'node id');
insert into task_attributes values ('light', 3, 1, 'light sensor reading');
insert into task_attributes values ('temp', 3, 1, 'temperature sensor reading');
insert into task_attributes values ('parent', 3, 1, 'parent node id in routing tree');
insert into task_attributes values ('accel_x', 3, 1, 'accelerometer reading in x axis');
insert into task_attributes values ('accel_y', 3, 1, 'accelerometer reading in y axis');
insert into task_attributes values ('mag_x', 3, 1, 'magnetometer reading in x axis');
insert into task_attributes values ('mag_y', 3, 1, 'magnetometer reading in y axis');
insert into task_attributes values ('noise', 3, 1, 'aggregated microphone readings');
insert into task_attributes values ('tones', 3, 1, 'aggregated number of tones detected');
insert into task_attributes values ('voltage', 3, 1, 'battery voltage level');
insert into task_attributes values ('rawtone', 3, 1, 'raw tone detector output: 1 detected 0 otherwise');
insert into task_attributes values ('rawmic', 3, 1, 'raw microphone reading');
insert into task_attributes values ('freeram', 3, 1, 'amount of RAM available in bytes');
insert into task_attributes values ('qlen', 1, 1, 'global send queue length');
insert into task_attributes values ('mhqlen', 1, 1, 'multi-hop forward queue length');
insert into task_attributes values ('depth', 1, 1, 'multi-hop depth');
insert into task_attributes values ('timelo', 4, 1, 'low 32-bit of mote logical time');
insert into task_attributes values ('timehi', 4, 1, 'high 32-bit of mote logical time');
insert into task_attributes values ('qual', 1, 1, 'quality of multi-hop parent');
insert into task_attributes values ('humid', 3, 1, 'Senirion Humidity sensor humidity reading');
insert into task_attributes values ('humtemp', 3, 1, 'Senirion Humidity sensor temperature reading');
insert into task_attributes values ('taosbot', 3, 1, 'Bottom Taos Photo sensor reading');
insert into task_attributes values ('taostop', 3, 1, 'Top Taos Photo sensor reading');
insert into task_attributes values ('press', 3, 1, 'Intersema Pressure sensor pressure reading');
insert into task_attributes values ('prtemp', 3, 1, 'Intersema Pressure sensor temperature reading');
insert into task_attributes values ('prcalib', 9, 1, 'Intersema Pressure sensor calibration reading');
insert into task_attributes values ('hamatop', 3, 1, 'Top Hamamatsu light sensor reading');
insert into task_attributes values ('hamabot', 3, 1, 'Bottom Hamamatsu light sensor reading');
insert into task_attributes values ('thermo', 3, 1, 'Melexis sensor thermopile reading');
insert into task_attributes values ('thmtemp', 3, 1, 'Melexis sensor temperature reading');
-- insert into task_attributes values ('content', 3, 1, 'radio contention');

-- task_aggregates contains information about all aggregates that
-- are supported by GSK
drop table task_aggregates;
create table task_aggregates (
	name varchar(32), 	/* name of aggregate */
	return_type int, 	/* return type of aggregate */
	num_args int, 		/* number of arguments */
	arg_type int, 		/* type of the non-constant argument */
	description varchar(1000)	/* description of the aggregate */
	);
insert into task_aggregates values ('winavg', 3, 3, 3, 'temporal windowed average');
insert into task_aggregates values ('winsum', 3, 3, 3, 'temporal windowed sum');
insert into task_aggregates values ('winmin', 3, 3, 3, 'temporal windowed minimum');
insert into task_aggregates values ('winmax', 3, 3, 3, 'temporal windowed maximum');
insert into task_aggregates values ('wincnt', 3, 3, 3, 'temporal windowed count');

-- task_commands contains information about all sensor network 
-- commands supported by GSK
drop table task_commands;
create table task_commands (
	name varchar(8), 	/* name of command */
	return_type int, 	/* return type of the command */
	num_args int, 		/* number of arguments */
	arg_types int[], 	/* argument types */
	description varchar(1000)	/* brief description */
	);
insert into task_commands values ('SetLedR', 9, 1, '{1}', 'SetLedR(0) turns off the red LED, SetLedR(1) turns on the red LED, SetLedR(2) toggles the red LED');
insert into task_commands values ('SetLedY', 9, 1, '{1}', 'SetLedY(0) turns off the yellow LED, SetLedY(1) turns on the yellow LED, SetLedY(2) toggles the yellow LED');
insert into task_commands values ('SetLedG', 9, 1, '{1}', 'SetLedG(0) turns off the green LED, SetLedG(1) turns on the green LED, SetLedG(2) toggles the green LED');
insert into task_commands values ('SetPot', 9, 1, '{1}', 'set potentiometer level');
insert into task_commands values ('Reset', 9, 0, '{}', 'reboot mote');
-- insert into task_commands values ('SetSnd', 9, 1, '{2}', 'turn on sounder for n milliseconds');

-- task_client_info contains opaque information about task clients
-- such as layouts.
drop table task_client_info cascade;
create table task_client_info (
	name varchar(100) primary key, 	/* name of client info */
	type varchar(100),	/* java type of client info */
	clientinfo bytea	/* opaque client info object */
	);

-- task_mote_info contains opaque per-mote client information relative to
-- a particular client info.
drop table task_mote_info;
create table task_mote_info (
	mote_id int,	/* mote id */
	x_coord	double precision, /* x coordinate */
	y_coord	double precision, /* y coordinate */
	z_coord	double precision, /* z coordinate */
	calib 	bytea, /* calibration coefficiences, raw bytes from motes */ 
	moteinfo bytea,	/* opaque mote info object */
	clientinfo_name varchar(100) references task_client_info, /* client info name */
	primary key (mote_id, clientinfo_name)
	);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99久久精品免费看国产| 中文字幕高清一区| 91久久精品日日躁夜夜躁欧美| 麻豆91小视频| 久88久久88久久久| 激情五月婷婷综合| 美女在线观看视频一区二区| 三级精品在线观看| 日韩精品成人一区二区三区| 午夜av区久久| 麻豆久久久久久| 国产一区福利在线| 国产综合久久久久久鬼色 | 最新日韩av在线| 亚洲国产成人自拍| 亚洲男人电影天堂| 亚洲无线码一区二区三区| 亚洲成人7777| 国内外成人在线视频| 懂色av一区二区三区免费观看| av亚洲精华国产精华精华| 91老司机福利 在线| 欧美色综合网站| 精品成人一区二区三区| 国产精品乱码一区二区三区软件 | 国产尤物一区二区| 国产精品乡下勾搭老头1| 成人精品视频网站| 在线一区二区三区| 精品区一区二区| 亚洲私人影院在线观看| 天天色图综合网| 国产电影精品久久禁18| 一本高清dvd不卡在线观看| 欧美片在线播放| 久久久久久久久一| 亚洲一区二区精品久久av| 久久av中文字幕片| 在线免费观看日本欧美| 久久这里只有精品6| 亚洲精品va在线观看| 老司机精品视频在线| 91精品1区2区| 日本一区二区三区四区在线视频| 亚洲精品ww久久久久久p站| 美女视频黄免费的久久| 91麻豆国产自产在线观看| 欧美一区二区三区日韩视频| 中文字幕人成不卡一区| 久久精品国产999大香线蕉| 色综合一个色综合亚洲| 久久亚洲影视婷婷| 丝袜亚洲精品中文字幕一区| 99久久精品国产一区二区三区| 精品理论电影在线观看| 亚洲va欧美va国产va天堂影院| 懂色av噜噜一区二区三区av| 欧美一区二区三区视频免费 | 国精产品一区一区三区mba视频| 91在线视频观看| 国产日韩av一区| 免费国产亚洲视频| 欧美日免费三级在线| 亚洲日本中文字幕区| 成人av在线影院| 国产婷婷色一区二区三区四区 | 亚洲色图一区二区三区| 美女一区二区视频| 欧美三级日本三级少妇99| 亚洲天堂免费在线观看视频| 国内成人免费视频| 欧美不卡一区二区三区四区| 首页国产欧美久久| 欧美日韩国产首页| 一区二区成人在线视频 | 亚洲午夜视频在线观看| www.成人在线| 综合av第一页| 99视频超级精品| 亚洲欧洲精品成人久久奇米网| 国产精品一二三四区| 久久久亚洲综合| 国产一区二区三区在线看麻豆| 日韩亚洲欧美在线观看| 九九国产精品视频| 久久亚洲二区三区| 国产一区二区三区精品欧美日韩一区二区三区 | 久久99精品久久久久久| 欧美精品一区男女天堂| 极品少妇xxxx精品少妇| 久久久精品日韩欧美| 成人一区二区三区| 亚洲人精品午夜| 欧美天堂亚洲电影院在线播放 | 91精品蜜臀在线一区尤物| 天堂av在线一区| 91精品福利在线一区二区三区| 青青草91视频| 国产欧美日韩不卡免费| 色哟哟一区二区| 日本不卡中文字幕| 久久精品亚洲一区二区三区浴池| 国产盗摄一区二区| 亚洲午夜在线电影| 精品国产亚洲一区二区三区在线观看| 国产一区二区三区电影在线观看| 国产午夜一区二区三区| 色偷偷久久一区二区三区| 日本怡春院一区二区| www久久精品| 色狠狠一区二区| 激情综合色播五月| 亚洲欧美日韩综合aⅴ视频| 欧美日韩国产综合草草| 国产乱子轮精品视频| 一区二区三区色| 久久久高清一区二区三区| 欧美在线免费播放| 国产精品中文字幕日韩精品| 亚洲精品大片www| 久久久影院官网| 欧美日韩综合在线| 成人av影视在线观看| 婷婷丁香激情综合| 国产精品久久久久久久裸模 | 国产成人午夜99999| 亚洲电影一级黄| 国产精品午夜在线观看| 欧美一卡2卡三卡4卡5免费| 成人一区二区三区视频在线观看| 日本一区中文字幕| 亚洲国产一区二区三区| 中文字幕的久久| 精品成人在线观看| 日韩一区二区高清| 欧美男男青年gay1069videost| av一区二区不卡| 国产精品一区二区在线看| 日本美女视频一区二区| 亚洲高清视频在线| 亚洲精品乱码久久久久久久久| 国产亚洲欧美中文| 欧美精品一区二区三区高清aⅴ| 欧美三级电影在线看| 99久免费精品视频在线观看| 国产精品综合视频| 国模一区二区三区白浆| 看电影不卡的网站| 日本欧美久久久久免费播放网| 亚洲制服丝袜av| 亚洲三级电影全部在线观看高清| 中文字幕巨乱亚洲| 久久久久久久久久久电影| 精品国产91洋老外米糕| 欧美不卡在线视频| 久久综合久久综合久久综合| 精品久久久久久久久久久院品网 | 欧美性做爰猛烈叫床潮| 色综合久久综合| 欧美午夜精品一区二区蜜桃| 欧美影院午夜播放| 欧美日韩精品二区第二页| 欧美日韩精品欧美日韩精品一综合| 91麻豆免费视频| 欧美亚洲图片小说| 欧美一区二区三区四区高清| 欧美一级艳片视频免费观看| 日韩欧美另类在线| 久久午夜老司机| 国产精品人成在线观看免费| 国产精品久久免费看| 亚洲一区二区综合| 日韩精彩视频在线观看| 九一久久久久久| av成人动漫在线观看| 色www精品视频在线观看| 在线成人免费视频| 久久亚洲精品小早川怜子| 中文字幕乱码久久午夜不卡| 亚洲品质自拍视频| 日韩高清欧美激情| 国产69精品一区二区亚洲孕妇| 99久久久久久| 欧美一区二区三区免费| 国产欧美一区二区在线| 亚洲男人的天堂一区二区 | 国产一级精品在线| 成人av网站免费| 欧美日韩国产在线播放网站| 精品成人私密视频| 亚洲乱码国产乱码精品精小说| 亚洲国产日产av| 国产精品一区二区免费不卡 | 久久亚区不卡日本| 亚洲人成网站影音先锋播放| 午夜av电影一区| av成人免费在线观看| 7878成人国产在线观看| 国产精品久久久久永久免费观看| 亚洲综合视频网|