root / branches / multithread / conf / symphony_serialize.properties

Revision 2, 13.6 kB (checked in by jordi, 2 years ago)

Imported PlanetSim 3.0

Line 
1################################################################################
2# Chord configuration file:                                                    #
3# -----------------------------                                                #
4# This file specifies all properties (including the Chord specifics ones) to   #
5# run any test with the Chord overlay.                                         #
6#                                                                              #
7# How to use:                                                                  #
8# -----------------------------                                                #
9# All properties are divided into different semantical parts.                  #
10# You must specify the desired properties values into the following lines.     #
11#                                                                              #
12# Made by:                                                                     #
13#  Jordi Pujol Ahullo (jordi.pujol@estudiants.urv.es)                          #
14# Under:                                                                       #
15#  Planet Project: http://ants.etse.urv.es/planet                              #
16#  PlanetSim:      htpp://ants.etse.urv.es/planetsim                           #
17################################################################################
18
19
20################################################################################
21# FACTORIES PART                                                               #
22################################################################################
23
24########## MANDATORY ATTRIBUTES
25
26# The default NetworkFactory class
27FACTORIES_NETWORKFACTORY = planet.generic.commonapi.factory.NetworkFactoryImpl
28
29# The default IdFactory class
30FACTORIES_IDFACTORY = planet.generic.commonapi.factory.IdFactoryImpl
31
32# The default NodeHandleFactory class
33FACTORIES_NODEHANDLEFACTORY = planet.generic.commonapi.factory.NodeHandleFactoryImpl
34
35# The default NodeFactory class
36FACTORIES_NODEFACTORY = planet.generic.commonapi.factory.NodeFactoryImpl
37
38# The default RouteMessagePool class
39FACTORIES_ROUTEMESSAGEPOOL = planet.generic.commonapi.factory.RouteMessagePoolImpl
40
41# The default Network class
42FACTORIES_NETWORK = planet.generic.commonapi.NetworkImpl
43
44# The default NodeHandle class
45FACTORIES_NODEHANDLE = planet.generic.commonapi.NodeHandleImpl
46
47# The default RouteMessage class
48FACTORIES_ROUTEMESSAGE = planet.generic.commonapi.RouteMessageImpl
49
50# The default network topology.
51# Default possible values: RANDOM |CIRCULAR | SERIALIZED
52FACTORIES_NETWORKTOPOLOGY = SERIALIZED
53
54# The default initial network size
55FACTORIES_NETWORKSIZE = 1000
56
57
58########## OPTIONAL ATTRIBUTES: Test dependant
59
60# The default ApplicationFactory class
61FACTORIES_APPLICATIONFACTORY = planet.generic.commonapi.factory.ApplicationFactoryImpl
62
63# The default EndPointFactory class
64FACTORIES_ENDPOINTFACTORY = planet.generic.commonapi.factory.EndPointFactoryImpl
65
66# The default Application class
67FACTORIES_APPLICATION = planet.test.helloworld.DHTApplication
68
69# The default EndPoint class
70FACTORIES_ENDPOINT = planet.generic.commonapi.EndPointImpl
71
72
73################################################################################
74# SIMULATOR PART                                                               #
75################################################################################
76
77########## MANDATORY ATTRIBUTES
78
79# The number of stabilization steps for any node at join or leave
80# Default value: 2
81SIMULATOR_SIMULATION_STEPS = 2
82
83# The log level (to use by Logger.log(...) )
84# Default possible values (from more to less important logs): 0 (error), 1 (events), 2 (node info), 3 (message)
85SIMULATOR_LOG_LEVEL = 0
86
87# The print level for whole network (to use by GenericApp.printNetwork() method)
88# Default possible values: 0 (no print), 1 (pretty print), 2 (full print)
89SIMULATOR_PRINT_LEVEL = 2
90
91# The environment for the current simulation
92# Default possible values: SIMULATION (by steps), EXPERIMENTAL (by threads and real TCP connections)
93# Only SIMULATION has available
94SIMULATOR_ENVIRONMENT = SIMULATION
95
96# The queue size for the incomming and outgoing queues
97# Default value: 128
98SIMULATOR_QUEUE_SIZE = 128
99
100# The maximum number of messages to be processed per node per step
101# Default value: 128
102SIMULATOR_PROCESSED_MESSAGES = 128
103
104########## OPTIONAL ATTRIBUTES: Test dependant
105
106# The events filename to load
107SIMULATOR_EVENT_FILE =
108
109
110################################################################################
111# SERIALIZATION PART                                                           #
112################################################################################
113
114########## OPTIONAL ATTRIBUTES: Test dependant
115
116# Serialized file that contains the network to be loaded
117SERIALIZATION_INPUT_FILE = network_4.psim
118
119# Filename to which serialize the final state
120SERIALIZATION_OUTPUT_FILE = network.psim
121
122# Identifies if the output file must be replaced with new outputs, when the
123# state is serialized
124SERIALIZATION_REPLACE_OUTPUT_FILE = false
125
126
127################################################################################
128# BEHAVIOURS PART                                                              #
129################################################################################
130   
131########## OPTIONAL ATTRIBUTES: Overlay dependant
132
133# The default BehaviourFactory class
134BEHAVIOURS_FACTORY = planet.generic.commonapi.behaviours.BehavioursFactoryImpl
135
136# The default BehavioursPool class
137BEHAVIOURS_POOL = planet.generic.commonapi.behaviours.BehavioursPoolImpl
138
139# The default BehavioursRoleSelector class
140BEHAVIOURS_ROLESELECTOR = planet.generic.commonapi.behaviours.BehavioursRoleSelectorImpl
141
142# The default BehavioursInvoker class
143BEHAVIOURS_INVOKER = planet.generic.commonapi.behaviours.BehavioursInvokerImpl
144
145# The default BehavioursFilter class
146BEHAVIOURS_FILTER = planet.generic.commonapi.behaviours.BehavioursIdleFilter
147
148# The default BehavioursPattern class
149BEHAVIOURS_PATTERN = planet.generic.commonapi.behaviours.BehavioursPatternImpl
150
151# The default PropertiesInitializaer class for the behaviours properties
152BEHAVIOURS_PROPERTIES = planet.generic.commonapi.behaviours.BehavioursPropertiesImpl
153
154# The default number of message types used in the current overlay
155# Default value for Symphony: 8
156BEHAVIOURS_NUMBEROFTYPES = 8
157
158# The default number of message modes used in the current overlay
159# Default value for Symphony: 3
160BEHAVIOURS_NUMBEROFMODES = 3
161
162################################################################################
163# SPECIFIC PROPERTIES OF BEHAVIOURS PART                                       #
164################################################################################
165
166########## OPTIONAL ATTRIBUTES: Overlay dependant
167
168# The default percentage of faulty nodes
169# Default possible values: [0..100]
170BEHAVIOURS_PROPERTIES_FAULTY_NODES = 0
171
172# The default distribution of malicious node
173# Default possible values: UNIFORM | CHAIN
174BEHAVIOURS_PROPERTIES_MALICIOUS_DISTRIBUTION = CHAIN
175
176# Identifies when to show specific debug info for behaviours
177BEHAVIOURS_PROPERTIES_DEBUG = false
178
179# NOTE: The following keys start by 'BEHAVIOURS_PROPERTIES_INSTANCE', ended
180#       with an incremental integer number to make them different
181
182# All required instances for the current behaviours implementation
183# COLUMN NAMES:                                                                                MESSAGE                 MESSAGE
184# UNIQUE NAME                    =             BEHAVIOUR CLASS                              ,   TYPE                 ,  MODE  , PROBABILITY , LOCALITY , ROLE
185#-----------------------------------------------------------------------------------------------------------------------------------------------------------------
186BEHAVIOURS_PROPERTIES_INSTANCE_1 = planet.symphony.behaviours.RoutingBehaviour,               ?,                       *,       1.0,          REMOTE,    NEUTRAL
187BEHAVIOURS_PROPERTIES_INSTANCE_2 = planet.symphony.behaviours.QueryJoinBehaviour,             QUERY_JOIN,              REFRESH, 1.0,          LOCAL,     NEUTRAL
188BEHAVIOURS_PROPERTIES_INSTANCE_3 = planet.symphony.behaviours.SetInfoBehaviour,               SET_INFO,                REFRESH, 1.0,          LOCAL,     NEUTRAL
189BEHAVIOURS_PROPERTIES_INSTANCE_4 = planet.symphony.behaviours.QueryConnectBehaviour,          QUERY_CONNECT,           REFRESH, 1.0,          LOCAL,     NEUTRAL
190BEHAVIOURS_PROPERTIES_INSTANCE_5 = planet.symphony.behaviours.AcceptConnectBehaviour,         ACCEPT_CONNECT,          REFRESH, 1.0,          LOCAL,     NEUTRAL
191BEHAVIOURS_PROPERTIES_INSTANCE_6 = planet.symphony.behaviours.CancelConnectBehaviour,         CANCEL_CONNECT,          REFRESH, 1.0,          LOCAL,     NEUTRAL
192BEHAVIOURS_PROPERTIES_INSTANCE_7 = planet.symphony.behaviours.CloseLongConnectBehaviour,      CLOSE_LONG_CONNECT,      REFRESH, 1.0,          LOCAL,     NEUTRAL
193BEHAVIOURS_PROPERTIES_INSTANCE_8 = planet.symphony.behaviours.CloseNeighbourConnectBehaviour, CLOSE_NEIGHBOUR_CONNECT, REFRESH, 1.0,          LOCAL,     NEUTRAL
194BEHAVIOURS_PROPERTIES_INSTANCE_9 = planet.symphony.behaviours.DataBehaviour,                  DATA,                    *,       1.0,          ALWAYS,    NEUTRAL
195
196# Default possible values:
197# BEHAVIOUR CLASS, MESSAGE TYPE, MESSAGE MODE ==> Overlay dependant
198# PROBABILITY ==> [0.0 .. 1.0] (never ..  always)
199# LOCALITY    ==> LOCAL | REMOTE | ALWAYS
200# ROLE        ==> GOOD  | BAD    | NEUTRAL
201
202
203################################################################################
204# OVERLAY PART                                                                 #
205################################################################################
206
207########## MANDATORY ATTRIBUTES
208
209# The default Id class
210OVERLAY_ID = planet.symphony.SymphonyId
211
212# The default Node class
213OVERLAY_NODE = planet.symphony.SymphonyNode
214
215# The default OverlayProperties implementation class
216OVERLAY_PROPERTIES = planet.symphony.SymphonyProperties
217
218# Identifies if this overlay implementation uses behaviours
219# Default possible values: false | true
220OVERLAY_WITH_BEHAVIOURS = true
221
222################################################################################
223# SYMPHONY SPECIFIC PART                                                       #
224################################################################################
225
226########## MANDATORY ATTRIBUTES
227
228# The default number of long distance connections
229# Default value: 2
230SYMPHONY_MAX_LONG_DISTANCE = 2
231
232# The default maximum number of members in successor list
233# Default value: 2
234SYMPHONY_MAX_SUCCESSOR_LIST = 2
235
236# The default maximum number of retries to obtain a connection
237# to the same long distance node
238# Default value: 3
239SYMPHONY_MAX_RETRIES_NEW_LONG_DISTANCE = 3
240
241# The default maximum number of retries to enter to the network by the
242# same bootstrap
243# Default value: 10
244SYMPHONY_MAX_JOIN_RETRIES = 10
245
246# The default number of stabilize steps
247# Default value: 3
248SYMPHONY_STABILIZATION_STEPS = 3
249
250################################################################################
251# RESULTS PART                                                                 #
252################################################################################
253
254#
255# IMPORTANT: All different results attributes must appear in comma separated
256# format, using each position for the same results type for all attributes.
257#
258
259########## OPTIONAL ATTRIBUTES: Test dependant
260
261# The default ResultsFactory class
262RESULTS_FACTORY =               planet.generic.commonapi.results.ResultsFactoryImpl, \
263                                                planet.generic.commonapi.results.ResultsFactoryImpl
264
265# The default ResultsEdge class
266RESULTS_EDGE =                  planet.generic.commonapi.results.ResultsEdgeImpl, \
267                                                planet.generic.commonapi.results.ResultsEdgeImpl
268
269# The default ResultsConstraint class
270RESULTS_CONSTRAINT =    planet.generic.commonapi.results.ResultsIdleConstraint, \
271                                                planet.generic.commonapi.results.ResultsIdleConstraint
272
273# The default ResultsGenerator class
274RESULTS_GENERATOR =     planet.generic.commonapi.results.ResultsGMLGenerator, \
275                                                planet.generic.commonapi.results.ResultsPajekGenerator
276
277# The default PropertiesInitializer for results properties
278RESULTS_PROPERTIES =    planet.generic.commonapi.results.ResultsGMLProperties, \
279                                                planet.generic.commonapi.results.ResultsGMLProperties
280
281# The unique names for each results type
282RESULTS_UNIQUE_NAME =   GML, \
283                                                PAJEK
284
285################################################################################
286# GML SPECIFIC RESULTS PART                                                    #
287################################################################################
288
289########## OPTIONAL ATTRIBUTES: Test dependant
290
291# The default width of the virual bounding box
292RESULTS_PROPERTIES_GML_WIDTH = 20.0f
293
294# The default height of the virtual bounding box
295RESULTS_PROPERTIES_GML_HEIGHT = 20.0f
296
297# The default shape of the node
298RESULTS_PROPERTIES_GML_SHAPE = ellipse
299
300# The default fill color for the shape of the node (in #'RRGGBB' format)
301RESULTS_PROPERTIES_GML_FILL = CCCCFF
302
303# The default alternative fill color for the shape of the node (in #'RRGGBB' format)
304RESULTS_PROPERTIES_GML_ALTERNATIVE_FILL = 00FF66
305
306# The default color of the border line (in #'RRGGBB' format)
307RESULTS_PROPERTIES_GML_OUTLINE = 000000
308
309# The default font size of the node Id lavel
310RESULTS_PROPERTIES_GML_FONT_SIZE = 12
311
312# The default font name of the node Id label
313RESULTS_PROPERTIES_GML_FONT_NAME = dialog
314
315# The default minimal node distance arranged on a circle
316RESULTS_PROPERTIES_GML_MINIMAL_NODE_DISTANCE = 50
Note: See TracBrowser for help on using the browser.