The ONE配置文件default_settings注释

在《机会网络仿真软件ONE:配置文件settings解读》这篇文章上增加了一些注释,用黄色和绿色字体区别了一下

这是文章链接:http://blog.csdn.net/wb7931021/article/details/41077047#

 
 

# Default settings for the simulation

#

## Scenario settings   场景设置

Scenario.name= default_scenario

Scenario.simulateConnections= true

#设置场景更新间隔为0.1s

Scenario.updateInterval= 0.1

#设置仿真时间为43200

# 43200s == 12h 

Scenario.endTime= 43200

## Interface-specific settings: 特定接口设置

type : which interface class the interface belongs to  类型:接口属于哪个接口类

# For different types, the sub-parameters are interface-specific

对于不同的类型,子参数是特定于接口的

# For SimpleBroadcastInterface, the parameters are:

transmitSpeed : transmit speed of the interface (bytes per second) 传输速度

transmitRange : range of the interface (meters) 传输范围

 

# "Bluetooth" interface for all nodes 所有节点的“蓝牙”接口

#设置接口类型

btInterface.type= SimpleBroadcastInterface

# Transmit speed of 2 Mbps = 250kBps 设置接口传输速率为250KB/s

btInterface.transmitSpeed= 250k

#设置接口传输范围为10m

btInterface.transmitRange= 10

# High speed, long range, interface for group 4

#为四组节点设置高速,大范围的通信接口

highspeedInterface.type= SimpleBroadcastInterface

highspeedInterface.transmitSpeed= 10M

highspeedInterface.transmitRange= 1000

# Define 6 different node groups

设置场景中包含6组节点

Scenario.nrofHostGroups= 6

## Group-specific settings:   group的设置

groupID : Group's identifier. Used as the prefix of host names

groupID:group的标识符。用作主机名的前缀

#nrofHostsnumber of hosts in the group   group中主机的数量

#movementModelmovement model of the hosts(valid class name from movement package) 运动模型:主机的移动模型(来自移动包的有效类名)

#waitTimeminimum and maximum wait times(seconds) after reaching destination  等待时间:到达目的地后的最小和最长等待时间(秒)

#speedminimum and maximum speeds (m/s) whenmoving on a path

速度:最小和最大速度(m / s)当在路径上移动时

#bufferSizesize of the message buffer(bytes) 缓存大小

#路由方法用于路由消息(来自路由包的有效类名)

#routerrouter used to route messages (validclass name from routing package)

activeTimes(有效时间),当组中的节点处于活动状态时的时间间隔

#activeTimes: Time intervals when the nodes in the group are active (start1,end1, start2, end2, ...)

#由该主机组创建的消息的TTL(分钟),默认值为infinite无限

#TTL是IP协议包的一个值,它告诉路由器包在网络中的时间是否太长而应被丢弃。

#msgTtl TTL (minutes) of the messagescreated by this host group, default=infinite

#group和移动模型的特殊设置

##Group and movement model specific settings

#poisPoints Of Interest indexes andprobabilities (poiIndex1, poiProb1, poiIndex2, poiProb2, ... )

#       for ShortestPathMapBasedMovement

#okMaps which map nodes are OK for the group(map file indexes), default=all

#          for all MapBasedMovent models

#routeFileroute's file path - forMapRouteMovement  路线的文件路径

#routeType: route's type - forMapRouteMovement  路由类型

#Common settings for all groups  对所有组的共同设置

#设置所有组的移动模型为基于地图的最短路径移动模型

Group.movementModel= ShortestPathMapBasedMovement

#设置所有组采用的Epidemic路由模式

Group.router= EpidemicRouter

#设置所有组的缓存大小

Group.bufferSize= 5M

Group.waitTime= 0, 120

#All nodes have the bluetooth interface

#设置所有组一共有几个接口  1为仅有一个接口,btInterface为蓝牙接口

Group.nrofInterfaces= 1  #一个接口

Group.interface1= btInterface

#Walking speeds

#设置所有组的移动速度为0.5~1.5m/s

Group.speed= 0.5, 1.5

# Message TTL of 300 minutes (5 hours)设置所有组发送数据分组生存周期为300分钟

Group.msgTtl= 300

#设置每组有40个节点

Group.nrofHosts= 40

#对不同分组进行不同设置

#group1 (pedestrians) specific settings

Group1.groupID= p   #设置第一组的ID编号为p

# group2 specific settings

Group2.groupID= c

# cars can drive only on roads 设置第二组只能在道路上行动

Group2.okMaps= 1

#10-50 km/h 设置第二组的移动速度为2.7~13.9m/s

Group2.speed= 2.7, 13.9

# another group of pedestrians

Group3.groupID= w

# The Tram groups  第四组 电车组

Group4.groupID= t

Group4.bufferSize= 50M  缓存

Group4.movementModel= MapRouteMovement  移动模型

Group4.routeFile= data/tram3.wkt  #设置第四组的路由文件存放在该目录路径下

Group4.routeType= 1  #设置第四组的路由类型为1

#针对MapRouteMovement移动模型value=1为圆形,value=2为乒乓来回型

Group4.waitTime= 10, 30  #设置第四组的等待时间为10~30s

Group4.speed= 7, 10  #速度

Group4.nrofHosts= 2  #设置第四组有两个节点

Group4.nrofInterfaces= 2  #设置第四组有两个接口,一个为蓝牙接口,一个为高速接口

Group4.interface1= btInterface

Group4.interface2= highspeedInterface

Group5.groupID= t

Group5.bufferSize= 50M

Group5.movementModel= MapRouteMovement

Group5.routeFile= data/tram4.wkt

Group5.routeType= 2

Group5.waitTime= 10, 30

Group5.speed= 7, 10

Group5.nrofHosts= 2

Group6.groupID= t

Group6.bufferSize= 50M

Group6.movementModel= MapRouteMovement

Group6.routeFile= data/tram10.wkt

Group6.routeType= 2

Group6.waitTime= 10, 30

Group6.speed= 7, 10

Group6.nrofHosts= 2

## Message creation parameters 消息创建参数

# How many event generators 有多少事件生成器

#每个节点的时间数量为1

Events.nrof= 1

# Class of the first event generator 第一个事件生成器的类

Events1.class= MessageEventGenerator   #Events1的事件的类型为消息事件生成器

#以下是对消息事件类的特定设置

#(following settings are specific for the MessageEventGenerator class)

#秒的创建间隔(每25到35秒一个新消息)

#Creation interval in seconds (one new message every 25 to 35 seconds)

Events1.interval= 25,35

# Message sizes (500kB - 1MB)生成数据分组的大小500kb~1MB,在范围内随机产生

Events1.size= 500k,1M

#range of message source/destination addresses 消息源/目标地址范围

#事件1对应的节点代码,第一个节点的编号是从0开始,一直到第126个节点

Events1.hosts= 0,126

# Message ID prefix 消息ID的前缀

#Events1产生的数据分组前缀为M

Events1.prefix= M

## Movement model settings   运动模式设置

#seed for movement models' pseudo random number generator (default = 0)

运动模型“伪随机数生成器”的种子(默认值为0),其种子值为1

MovementModel.rngSeed= 1

#World's size for Movement Models without implicit size (width, height; meters)

#设置移动模型的边界

MovementModel.worldSize= 4500, 3400

#How long time to move hosts in the world before real simulation

#仿真热身时间设置,仿真开始时,容易产生失真,放弃前1000s数据

MovementModel.warmup= 1000

##Map based movement -movement model specific settings

#基于地图的运动-移动模型的特定设置

# MapBasedMovement移动模型2级参数设置,涉及4个地图文件

MapBasedMovement.nrofMapFiles= 4 #地图文件存放在的路径下

MapBasedMovement.mapFile1= data/roads.wkt

MapBasedMovement.mapFile2= data/main_roads.wkt

MapBasedMovement.mapFile3= data/pedestrian_paths.wkt

MapBasedMovement.mapFile4= data/shops.wkt

##Reports - all report names have to be valid report classes

#报告-所有报告名称必须是有效的报告类

# how many reports to load #生成报告的数量—这里设置我们想要得到的报告数量

Report.nrofReports= 2

#length of the warm up period (simulated seconds) #预热期长度热身时间(模拟秒)

Report.warmup= 0

#default directory of reports (can be overridden per Report with output setting)

#指定报告的类型-----这里可以添加我们想要的报告类型

Report.reportDir= reports/

#报告类加载

#Report classes to load

#指定报告的类型----这里可以添加我们想要的报告的类型

Report.report1= MessageStatsReport     #信息统计报告

Report.report2 = ContactTimesReport         #接触时间报告

##Default settings for some routers settings #一些路由器设置的默认设置

ProphetRouter.secondsInTimeUnit= 30  

SprayAndWaitRouter.nrofCopies= 6

SprayAndWaitRouter.binaryMode= true

##Optimization settings -- these affect the speed of the simulation

##see World class for details.

Optimization.cellSizeMult= 5

Optimization.randomizeUpdateOrder= true

##GUI settings

#GUI underlay image settings

GUI.UnderlayImage.fileName= data/helsinki_underlay.png

#Image offset in pixels (x, y)

GUI.UnderlayImage.offset= 64, 20

#Scaling factor for the image

GUI.UnderlayImage.scale= 4.75

#Image rotation (radians)

GUI.UnderlayImage.rotate= -0.015

#how many events to show in the log panel (default = 30)

GUI.EventLogPanel.nrofEvents= 100

#Regular Expression log filter (see Pattern-class from the Java API forRE-matching details)

·#GUI.EventLogPanel.REfilter = .*p[1-9]<->p[1-9]$






猜你喜欢

转载自blog.csdn.net/leehom__/article/details/79076262