root / branches / multithread / conf / trivial.properties

Revision 28, 11.6 kB (checked in by max, 1 year ago)
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.MultiThreadedNetworkImpl
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 = RANDOM
53
54# The default initial network size
55FACTORIES_NETWORKSIZE = 3000
56
57#Number of processors
58SIMULATOR_PROCESSORS = 2
59########## OPTIONAL ATTRIBUTES: Test dependant
60
61# The default ApplicationFactory class
62FACTORIES_APPLICATIONFACTORY = planet.generic.commonapi.factory.ApplicationFactoryImpl
63
64# The default EndPointFactory class
65FACTORIES_ENDPOINTFACTORY = planet.generic.commonapi.factory.EndPointFactoryImpl
66
67# The default Application class
68FACTORIES_APPLICATION = planet.test.trivialp2ptest.TrivialApplication
69
70# The default EndPoint class
71FACTORIES_ENDPOINT = planet.generic.commonapi.EndPointImpl
72
73
74################################################################################
75# SIMULATOR PART                                                               #
76################################################################################
77
78########## MANDATORY ATTRIBUTES
79
80# The number of stabilization steps for any node at join or leave
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 = 1
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
97SIMULATOR_QUEUE_SIZE = 128
98
99# The maximum number of messages to be processed per node per step
100SIMULATOR_PROCESSED_MESSAGES = 128
101
102########## OPTIONAL ATTRIBUTES: Test dependant
103
104# The events filename to load
105SIMULATOR_EVENT_FILE =
106
107#Number of processors
108SIMULATOR_PROCESSORS = 1
109################################################################################
110# SERIALIZATION PART                                                           #
111################################################################################
112
113########## OPTIONAL ATTRIBUTES: Test dependant
114
115# Serialized file that contains the network to be loaded
116SERIALIZATION_INPUT_FILE =
117
118# Filename to which serialize the final state
119SERIALIZATION_OUTPUT_FILE =
120
121# Identifies if the output file must be replaced with new outputs, when the
122# state is serialized
123SERIALIZATION_REPLACE_OUTPUT_FILE = false
124
125
126################################################################################
127# BEHAVIOURS PART                                                              #
128################################################################################
129   
130########## OPTIONAL ATTRIBUTES: Overlay dependant
131
132# The default BehaviourFactory class
133BEHAVIOURS_FACTORY = planet.generic.commonapi.behaviours.BehavioursFactoryImpl
134
135# The default BehavioursPool class
136BEHAVIOURS_POOL = planet.generic.commonapi.behaviours.BehavioursPoolImpl
137
138# The default BehavioursRoleSelector class
139BEHAVIOURS_ROLESELECTOR = planet.generic.commonapi.behaviours.BehavioursRoleSelectorImpl
140
141# The default BehavioursInvoker class
142BEHAVIOURS_INVOKER = planet.generic.commonapi.behaviours.BehavioursInvokerImpl
143
144# The default BehavioursFilter class
145BEHAVIOURS_FILTER = planet.generic.commonapi.behaviours.BehavioursIdleFilter
146
147# The default BehavioursPattern class
148BEHAVIOURS_PATTERN = planet.generic.commonapi.behaviours.BehavioursPatternImpl
149
150# The default PropertiesInitializaer class for the behaviours properties
151BEHAVIOURS_PROPERTIES = planet.generic.commonapi.behaviours.BehavioursPropertiesImpl
152
153# The default number of message types used in the current overlay
154# Default value for Trivial P2P: 1
155BEHAVIOURS_NUMBEROFTYPES = 1
156
157# The default number of message modes used in the current overlay
158# Default value for Trivial P2P: 2
159BEHAVIOURS_NUMBEROFMODES = 2
160
161################################################################################
162# SPECIFIC PROPERTIES OF BEHAVIOURS PART                                       #
163################################################################################
164
165########## OPTIONAL ATTRIBUTES: Overlay dependant
166
167# The default percentage of faulty nodes
168# Default possible values: [0..100]
169BEHAVIOURS_PROPERTIES_FAULTY_NODES = 0
170
171# The default distribution of malicious node
172# Default possible values: UNIFORM | CHAIN
173BEHAVIOURS_PROPERTIES_MALICIOUS_DISTRIBUTION = CHAIN
174
175# Identifies when to show specific debug info for behaviours
176BEHAVIOURS_PROPERTIES_DEBUG = false
177
178# NOTE: The following keys start by 'BEHAVIOURS_PROPERTIES_INSTANCE', ended
179#       with an incremental integer number to make them different
180
181# All required instances for the current behaviours implementation
182# COLUMN NAMES:                                                                                MESSAGE                 MESSAGE
183# UNIQUE NAME                    =             BEHAVIOUR CLASS                              ,   TYPE                 ,  MODE  , PROBABILITY , LOCALITY , ROLE
184#-----------------------------------------------------------------------------------------------------------------------------------------------------------------
185BEHAVIOURS_PROPERTIES_INSTANCE_1 = planet.trivialp2p.behaviours.DataBehaviour,                DATA,                       *,       1.0,       ALWAYS,    NEUTRAL
186
187################################################################################
188# OVERLAY PART                                                                 #
189################################################################################
190
191########## MANDATORY ATTRIBUTES
192
193# The default Id class
194OVERLAY_ID = planet.trivialp2p.TrivialId
195
196# The default Node class
197OVERLAY_NODE = planet.trivialp2p.TrivialNode
198
199# The default OverlayProperties implementation class
200OVERLAY_PROPERTIES = planet.trivialp2p.TrivialProperties
201
202# Identifies if this overlay implementation uses behaviours
203# Default possible values: false | true
204OVERLAY_WITH_BEHAVIOURS = true
205
206################################################################################
207# TRIVIAL P2P SPECIFIC PART                                                    #
208################################################################################
209
210########## MANDATORY ATTRIBUTES
211
212# The default number of stabilize steps
213# Default possible values: true | false
214TRIVIAL_DEBUG = false
215
216################################################################################
217# RESULTS PART                                                                 #
218################################################################################
219
220#
221# IMPORTANT: All different results attributes must appear in comma separated
222# format, using each position for the same results type for all attributes.
223#
224
225########## OPTIONAL ATTRIBUTES: Test dependant
226
227# The default ResultsFactory class
228RESULTS_FACTORY =               planet.generic.commonapi.results.ResultsFactoryImpl, \
229                                                planet.generic.commonapi.results.ResultsFactoryImpl
230
231# The default ResultsEdge class
232RESULTS_EDGE =                  planet.generic.commonapi.results.ResultsEdgeImpl, \
233                                                planet.generic.commonapi.results.ResultsEdgeImpl
234
235# The default ResultsConstraint class
236RESULTS_CONSTRAINT =    planet.generic.commonapi.results.ResultsIdleConstraint, \
237                                                planet.generic.commonapi.results.ResultsIdleConstraint
238
239# The default ResultsGenerator class
240RESULTS_GENERATOR =     planet.generic.commonapi.results.ResultsGMLGenerator, \
241                                                planet.generic.commonapi.results.ResultsPajekGenerator
242
243# The default PropertiesInitializer for results properties
244RESULTS_PROPERTIES =    planet.generic.commonapi.results.ResultsGMLProperties, \
245                                                planet.generic.commonapi.results.ResultsGMLProperties
246
247# The unique names for each results type
248RESULTS_UNIQUE_NAME =   GML, \
249                                                PAJEK
250
251################################################################################
252# GML SPECIFIC RESULTS PART                                                    #
253################################################################################
254
255########## OPTIONAL ATTRIBUTES: Test dependant
256
257# The default width of the virual bounding box
258RESULTS_PROPERTIES_GML_WIDTH = 20.0f
259
260# The default height of the virtual bounding box
261RESULTS_PROPERTIES_GML_HEIGHT = 20.0f
262
263# The default shape of the node
264RESULTS_PROPERTIES_GML_SHAPE = ellipse
265
266# The default fill color for the shape of the node (in #'RRGGBB' format)
267RESULTS_PROPERTIES_GML_FILL = CCCCFF
268
269# The default alternative fill color for the shape of the node (in #'RRGGBB' format)
270RESULTS_PROPERTIES_GML_ALTERNATIVE_FILL = 00FF66
271
272# The default color of the border line (in #'RRGGBB' format)
273RESULTS_PROPERTIES_GML_OUTLINE = 000000
274
275# The default font size of the node Id lavel
276RESULTS_PROPERTIES_GML_FONT_SIZE = 12
277
278# The default font name of the node Id label
279RESULTS_PROPERTIES_GML_FONT_NAME = dialog
280
281# The default minimal node distance arranged on a circle
282RESULTS_PROPERTIES_GML_MINIMAL_NODE_DISTANCE = 50
Note: See TracBrowser for help on using the browser.