-
Notifications
You must be signed in to change notification settings - Fork 0
/
fmi_settings.txt
126 lines (99 loc) · 3.22 KB
/
fmi_settings.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#
# Setting for our Rumour simulation
#
## Scenario settings
Scenario.name = FMI-R%%rumourApp.real%%-S%%Schedule.STUDENT_PROB%%-P%%Schedule.PROF_PROB%%-V%%Schedule.VISITOR_PROB%%
# 43k ~= 12h
Scenario.endTime = 43200
Scenario.updateInterval = 1
Scenario.simulateConnections = true
## Movement model settings
# seed for movement models' pseudo random number generator (default = 0)
MovementModel.rngSeed = 1
# World's size for Movement Models without implicit size (width, height; meters)
MovementModel.worldSize = 600, 400
# How long time to move hosts in the world before real simulation
MovementModel.warmup = 1000
# Communication Interface
firstinterface.type = RumourInterface
# transmit speed of 2 Mbps = 250kBps
firstinterface.transmitSpeed = 250k
firstinterface.transmitRange = 10
# Define new application
rumourApp.type = RumourApplication
rumourApp.destinationRange = 0,0
rumourApp.msgSize = 5
rumourApp.passive = false
# RumourID= if val > 0: uniqueID, elif val==0: groupID, else hostAddress
rumourApp.id = 0
# Who sends the message : TODO
rumourApp.source = 1, 4, 7, 10, 100, 200, 300, 400, 410, 411, 415, 416, 420, 421, 425
# Modelling contact time to tell rumour (should receive at least n number of messages from the same person)
rumourApp.receiveThreshold = 10
# Total confidence needed to be infected (Check getConfidence function @ RumourApplication.java)
rumourApp.sendThreshold = 1.0
# Realistic nature of rumour
rumourApp.real = [0.5; 1.0]
# Groups
Scenario.nrofHostGroups = 6
# common settings for all groups
Group.router = RumourRouter
Group.bufferSize = 5M
Group.waitTime = 0, 120
#All nodes have the firstinterface inteface
Group.nrofInterfaces = 1
Group.interface1 = firstinterface
# Movement Model
Group.movementModel = RoomBasedMovement
# walking speeds
Group.speed = 0.5, 1.5
# Set app for all nodes
Group.nrofApplications = 1
Group.application1 = rumourApp
## legit just have this to render the room....
Group1.groupID = dest
Group1.nrofHosts = 1
Group1.nrofInterfaces = 0
Group1.movementModel = MapBasedMovement
Group1.nodeLocation = 0,0
Group1.nrofInterfaces = 0
# 1 - 10
Group2.groupID = professor
Group2.nrofHosts = 10
# 11 - 410
Group3.groupID = student
Group3.nrofHosts = 400
# 411 - 415
Group4.groupID = cleaner
Group4.nrofHosts = 5
# 416 - 420
Group5.groupID = barista
Group5.nrofHosts = 5
# 421 - 425
Group6.groupID = visitor
Group6.nrofHosts = 5
## Message creation parameters
# How many event generators
Events.nrof = 0
# 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 = RumourAppReporter
Report.report2 = ScheduleReporter
## Optimization settings -- these affect the speed of the simulation
## see World class for details.
Optimization.connectionAlg = 2
Optimization.cellSizeMult = 5
Optimization.randomizeUpdateOrder = true
# Mapfile as overlay
MapBasedMovement.nrofMapFiles = 1
MapBasedMovement.mapFile1 = data/fmi_simplified.wkt
Schedule.RNG_SEED = 1
# Eat, Hangout, Chair
Schedule.STUDENT_PROB = [0.2,0.5,0.3;0.1,0.3,0.6]
Schedule.PROF_PROB = [0.05,0.05,0.9;0.2,0.3,0.5]
Schedule.VISITOR_PROB = 0.1,0.7,0.2