本文对ONE仿真软件的Default settings.xml文件进行解读,以便接下来对实验仿真进行一些基础的配置,有不对的地方希望大家指出,共同学习。
下面给出Default settings.xml文件相关代码及注释:
# Default settings for the simulation
#
#
## Scenario settings 场景设置
Scenario.name = default_scenario
Scenario.simulateConnections = true
# 设置场景更新间隔为0.1s
Scenario.updateInterval = 0.1
# 43200s == 12h 设置仿真时间为43200s
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:
# groupID : Group's identifier. Used as the prefix of host names
# nrofHosts: number of hosts in the group
# movementModel: movement model of the hosts (valid class name from movement pac