/*************************************************************************** topology.h - description …
topology 源代码
网络拓扑(NetworkTopology)结构是指用传输介质互连各种设备的物理布局。指构成网络的成员间特定的物理的即真实的、或者逻辑的即虚拟的排列方式。如果两个网络的连接结构相同我们就说它们的网络拓扑相同,尽管它们各自内部的物理接线、节点间距离可能会有不同。
/* * Copyright (c) 2003-2005 Thomer M. Gil (thomer@csail.mit.edu) * Massachusetts Institute of Technology * …
/* * Copyright (c) 2003-2005 Thomer M. Gil (thomer@csail.mit.edu) * Massachusetts Institute of Technology * …
#include "Common.h" #include "Connection.h" #include "Topology.h" #include "Graph.h" #include "Property.h" int main(int a…
#ifndef __PROTOCOL_H #define __PROTOCOL_H #include using namespace std; class Agent; class Topology; class Protocol{ publi…
# topology file must start with keyword topology # # topology {TOPOLOGY} [KEY=VAL [KEY=VAL [...]]] # failure_model {FAILURE_MODEL}…
# topology file must start with keyword topology # # topology {TOPOLOGY} [KEY=VAL [KEY=VAL [...]]] # failure_model {FAILURE_MODEL}…
#include
function=rayleigh a=1% uniform distribution between 0 and a N=8 R=unifrnd(0,a,1,N)% there are totally N nodes in the network p…
# # Makefile for the linux kernel. # obj-y := setup.o topology.o