설정 파일 settings 해독
사이트 주소 http://blog.csdn.net/wb7931021/article/details/41077047
본 고 는 ONE 시 뮬 레이 션 소프트웨어 의 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 package)
# waitTime: minimum and maximum wait times (seconds) after reaching destination
# speed: minimum and maximum speeds (m/s) when moving on a path
# bufferSize: size of the message buffer (bytes)
# router: router used to route messages (valid class name from routing package)
# activeTimes: Time intervals when the nodes in the group are active (start1, end1, start2, end2, ...)
# msgTtl : TTL (minutes) of the messages created by this host group, default=infinite
## Group and movement model specific settings
# pois: Points Of Interest indexes and probabilities (poiIndex1, poiProb1, poiIndex2, poiProb2, ... )
# for ShortestPathMapBasedMovement
# okMaps : which map nodes are OK for the group (map file indexes), default=all
# for all MapBasedMovent models
# routeFile: route's file path - for MapRouteMovement
# routeType: route's type - for MapRouteMovement
# 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
# , p
# ID p
Group1.groupID = p
# group2 specific settings
# ,
# ID c, car
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
# ,ID w
Group3.groupID = w
# The Tram groups
# ID t
Group4.groupID = t
# 50M
Group4.bufferSize = 50M
# ,
Group4.movementModel = MapRouteMovement
# data/tram3.wkt
Group4.routeFile = data/tram3.wkt
# 1
Group4.routeType = 1
# 10~30s
Group4.waitTime = 10, 30
# 7~10m/s
Group4.speed = 7, 10
#
Group4.nrofHosts = 2
# , ,
Group4.nrofInterfaces = 2
Group4.interface1 = btInterface
Group4.interface2 = highspeedInterface
# ID t,
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
# ID t,
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
Events1.class = MessageEventGenerator
# (following settings are specific for the MessageEventGenerator class)
# Creation interval in seconds (one new message every 25 to 35 seconds)
# Events1 , 25~35s
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
# Events1 M
Events1.prefix = M
## Movement model settings
# seed for movement models' pseudo random number generator (default = 0)
# , 1
MovementModel.rngSeed = 1
# World's size for Movement Models without implicit size (width, height; meters)
# , 4500m, 3400m
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
# data
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 = 1
# length of the warm up period (simulated seconds)
# 0s
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
## Default settings for some routers settings
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
Q9.11 count the number of ways of parenthesizing the expressionQ:Given a boolean expression consisting of the symbols 0,1, &,/, and A, and a desired boolean result value result, imple...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.