siminfo.h

来自「大名鼎鼎的传感器网络仿真实验室平台SENSE」· C头文件 代码 · 共 70 行

H
70
字号
/************************************************************************* *   @<title> SimInfo.h </title>@ * *   @<!-- Copyright 2006 Mark Lisee, Boleslaw K. Szymanski and Rensselaer *   Polytechnic Institute. All worldwide rights reserved.  A license to use, *   copy, modify and distribute this software for non-commercial research *   purposes only is hereby granted, provided that this copyright notice and *   accompanying disclaimer is not modified or removed from the software. * *   DISCLAIMER: The software is distributed "AS IS" without any express or *   implied warranty, including but not limited to, any implied warranties of *   merchantability or fitness for a particular purpose or any warranty of *   non-infringement of any current or pending patent rights. The authors of *   the software make no representations about the suitability of this *   software for any particular purpose. The entire risk as to the quality *   and performance of the software is with the user. Should the software *   prove defective, the user assumes the cost of all necessary servicing, *   repair or correction. In particular, neither Rensselaer Polytechnic *   Institute, nor the authors of the software are liable for any indirect, *   special, consequential, or incidental damages related to the software, *   to the maximum extent the law permits.-->@ * *************************************************************************/#ifndef	_SimInfo_h_#define	_SimInfo_h_#include <map>#include <set>#include "misc.h"using namespace std;typedef set<int>	SenderList;typedef set<int>	NeighborList;struct SimInfo{  int		numNodes;  BackOffType	backOff;  bool		continuous;  bool		routeRepair;  int		hopCounts;  double	slotWidth;  double	transitionTime;  int		maxCounter;};struct CTInfo{  int		currentHC;  int		pendingHC;  int		updateCtr;  CTState	state;};typedef map< int, CTInfo *>	CTList;struct NodeInfo{  CTList	costTable;  NeighborList	neighborList;};typedef map<int, NodeInfo *>	NodeList;extern SimInfo		simInfo;extern SenderList	senderList;extern NodeList		nodeList;#endif	// _SimInfo_h

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?