| 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 |
|---|
| 27 | FACTORIES_NETWORKFACTORY = planet.generic.commonapi.factory.NetworkFactoryImpl |
|---|
| 28 | |
|---|
| 29 | # The default IdFactory class |
|---|
| 30 | FACTORIES_IDFACTORY = planet.generic.commonapi.factory.IdFactoryImpl |
|---|
| 31 | |
|---|
| 32 | # The default NodeHandleFactory class |
|---|
| 33 | FACTORIES_NODEHANDLEFACTORY = planet.generic.commonapi.factory.NodeHandleFactoryImpl |
|---|
| 34 | |
|---|
| 35 | # The default NodeFactory class |
|---|
| 36 | FACTORIES_NODEFACTORY = planet.generic.commonapi.factory.NodeFactoryImpl |
|---|
| 37 | |
|---|
| 38 | # The default RouteMessagePool class |
|---|
| 39 | FACTORIES_ROUTEMESSAGEPOOL = planet.generic.commonapi.factory.RouteMessagePoolImpl |
|---|
| 40 | |
|---|
| 41 | # The default Network class |
|---|
| 42 | FACTORIES_NETWORK = planet.generic.commonapi.NetworkImpl |
|---|
| 43 | |
|---|
| 44 | # The default NodeHandle class |
|---|
| 45 | FACTORIES_NODEHANDLE = planet.generic.commonapi.NodeHandleImpl |
|---|
| 46 | |
|---|
| 47 | # The default RouteMessage class |
|---|
| 48 | FACTORIES_ROUTEMESSAGE = planet.generic.commonapi.RouteMessageImpl |
|---|
| 49 | |
|---|
| 50 | # The default network topology. |
|---|
| 51 | # Default possible values: RANDOM, CIRCULAR, SERIALIZED |
|---|
| 52 | FACTORIES_NETWORKTOPOLOGY = RANDOM |
|---|
| 53 | |
|---|
| 54 | # The default initial network size |
|---|
| 55 | FACTORIES_NETWORKSIZE = 1000 |
|---|
| 56 | |
|---|
| 57 | |
|---|
| 58 | ########## OPTIONAL ATTRIBUTES: Test dependant |
|---|
| 59 | |
|---|
| 60 | # The default ApplicationFactory class |
|---|
| 61 | FACTORIES_APPLICATIONFACTORY = planet.generic.commonapi.factory.ApplicationFactoryImpl |
|---|
| 62 | |
|---|
| 63 | # The default EndPointFactory class |
|---|
| 64 | FACTORIES_ENDPOINTFACTORY = planet.generic.commonapi.factory.EndPointFactoryImpl |
|---|
| 65 | |
|---|
| 66 | # The default Application class |
|---|
| 67 | FACTORIES_APPLICATION = planet.test.dht2.DHTApplication |
|---|
| 68 | |
|---|
| 69 | # The default EndPoint class |
|---|
| 70 | FACTORIES_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 | SIMULATOR_SIMULATION_STEPS = 2 |
|---|
| 81 | |
|---|
| 82 | # The log level (to use by Logger.log(...) ) |
|---|
| 83 | # Default possible values (from more to less important logs): 0 (error), 1 (events), 2 (node info), 3 (message) |
|---|
| 84 | SIMULATOR_LOG_LEVEL = 0 |
|---|
| 85 | |
|---|
| 86 | # The print level for whole network (to use by GenericApp.printNetwork() method) |
|---|
| 87 | # Default possible values: 0 (no print), 1 (pretty print), 2 (full print) |
|---|
| 88 | SIMULATOR_PRINT_LEVEL = 1 |
|---|
| 89 | |
|---|
| 90 | # The environment for the current simulation |
|---|
| 91 | # Default possible values: SIMULATION (by steps), EXPERIMENTAL (by threads and real TCP connections) |
|---|
| 92 | # Only SIMULATION has available |
|---|
| 93 | SIMULATOR_ENVIRONMENT = SIMULATION |
|---|
| 94 | |
|---|
| 95 | # The queue size for the incomming and outgoing queues |
|---|
| 96 | SIMULATOR_QUEUE_SIZE = 128 |
|---|
| 97 | |
|---|
| 98 | # The maximum number of messages to be processed per node per step |
|---|
| 99 | SIMULATOR_PROCESSED_MESSAGES = 128 |
|---|
| 100 | |
|---|
| 101 | ########## OPTIONAL ATTRIBUTES: Test dependant |
|---|
| 102 | |
|---|
| 103 | # The events filename to load |
|---|
| 104 | SIMULATOR_EVENT_FILE = data/test_join1000r.txt |
|---|
| 105 | |
|---|
| 106 | |
|---|
| 107 | ################################################################################ |
|---|
| 108 | # SERIALIZATION PART # |
|---|
| 109 | ################################################################################ |
|---|
| 110 | |
|---|
| 111 | ########## OPTIONAL ATTRIBUTES: Test dependant |
|---|
| 112 | |
|---|
| 113 | # Serialized file that contains the network to be loaded |
|---|
| 114 | SERIALIZATION_INPUT_FILE = network.psim |
|---|
| 115 | |
|---|
| 116 | # Filename to which serialize the final state |
|---|
| 117 | SERIALIZATION_OUTPUT_FILE = network.psim |
|---|
| 118 | |
|---|
| 119 | # Identifies if the output file must be replaced with new outputs, when the |
|---|
| 120 | # state is serialized |
|---|
| 121 | SERIALIZATION_REPLACE_OUTPUT_FILE = false |
|---|
| 122 | |
|---|
| 123 | |
|---|
| 124 | ################################################################################ |
|---|
| 125 | # BEHAVIOURS PART # |
|---|
| 126 | ################################################################################ |
|---|
| 127 | |
|---|
| 128 | ########## OPTIONAL ATTRIBUTES: Overlay dependant |
|---|
| 129 | |
|---|
| 130 | # The default BehaviourFactory class |
|---|
| 131 | BEHAVIOURS_FACTORY = |
|---|
| 132 | |
|---|
| 133 | # The default BehavioursPool class |
|---|
| 134 | BEHAVIOURS_POOL = |
|---|
| 135 | |
|---|
| 136 | # The default BehavioursRoleSelector class |
|---|
| 137 | BEHAVIOURS_ROLESELECTOR = |
|---|
| 138 | |
|---|
| 139 | # The default BehavioursInvoker class |
|---|
| 140 | BEHAVIOURS_INVOKER = |
|---|
| 141 | |
|---|
| 142 | # The default BehavioursFilter class |
|---|
| 143 | BEHAVIOURS_FILTER = |
|---|
| 144 | |
|---|
| 145 | # The default BehavioursPattern class |
|---|
| 146 | BEHAVIOURS_PATTERN = |
|---|
| 147 | |
|---|
| 148 | # The default PropertiesInitializaer class for the behaviours properties |
|---|
| 149 | BEHAVIOURS_PROPERTIES = |
|---|
| 150 | |
|---|
| 151 | # The default number of message types used in the current overlay |
|---|
| 152 | BEHAVIOURS_NUMBEROFTYPES = |
|---|
| 153 | |
|---|
| 154 | # The default number of message modes used in the current overlay |
|---|
| 155 | BEHAVIOURS_NUMBEROFMODES = |
|---|
| 156 | |
|---|
| 157 | ################################################################################ |
|---|
| 158 | # SPECIFIC PROPERTIES OF BEHAVIOURS PART # |
|---|
| 159 | ################################################################################ |
|---|
| 160 | |
|---|
| 161 | ########## OPTIONAL ATTRIBUTES: Overlay dependant |
|---|
| 162 | |
|---|
| 163 | # The default percentage of faulty nodes |
|---|
| 164 | BEHAVIOURS_PROPERTIES_FAULTY_NODES = |
|---|
| 165 | |
|---|
| 166 | # The default distribution of malicious node |
|---|
| 167 | BEHAVIOURS_PROPERTIES_MALICIOUS_DISTRIBUTION = |
|---|
| 168 | |
|---|
| 169 | # Identifies when to show specific debug info for behaviours |
|---|
| 170 | BEHAVIOURS_PROPERTIES_DEBUG = |
|---|
| 171 | |
|---|
| 172 | # NOTE: The following keys start by 'BEHAVIOURS_PROPERTIES_INSTANCE', ended |
|---|
| 173 | # with an incremental integer number to make them different |
|---|
| 174 | |
|---|
| 175 | # All required instances for the current behaviours implementation |
|---|
| 176 | BEHAVIOURS_PROPERTIES_INSTANCE_1 = |
|---|
| 177 | |
|---|
| 178 | |
|---|
| 179 | ################################################################################ |
|---|
| 180 | # OVERLAY PART # |
|---|
| 181 | ################################################################################ |
|---|
| 182 | |
|---|
| 183 | ########## MANDATORY ATTRIBUTES |
|---|
| 184 | |
|---|
| 185 | # The default Id class |
|---|
| 186 | OVERLAY_ID = planet.chord.ChordId |
|---|
| 187 | |
|---|
| 188 | # The default Node class |
|---|
| 189 | OVERLAY_NODE = planet.chord.ChordNode |
|---|
| 190 | |
|---|
| 191 | # The default OverlayProperties implementation class |
|---|
| 192 | OVERLAY_PROPERTIES = planet.chord.ChordProperties |
|---|
| 193 | |
|---|
| 194 | # Identifies if this overlay implementation uses behaviours |
|---|
| 195 | # Default possible values: false | true |
|---|
| 196 | OVERLAY_WITH_BEHAVIOURS = false |
|---|
| 197 | |
|---|
| 198 | ################################################################################ |
|---|
| 199 | # CHORD SPECIFIC PART # |
|---|
| 200 | ################################################################################ |
|---|
| 201 | |
|---|
| 202 | ########## MANDATORY ATTRIBUTES |
|---|
| 203 | |
|---|
| 204 | # The default number of stabilize steps |
|---|
| 205 | CHORD_STABILIZATION_STEPS = 10 |
|---|
| 206 | |
|---|
| 207 | # The default number of steps to fix finger tables |
|---|
| 208 | CHORD_FIX_FINGER_STEPS = 5 |
|---|
| 209 | |
|---|
| 210 | # The default size of successor list |
|---|
| 211 | CHORD_SUCCESSOR_LIST_SIZE = 16 |
|---|
| 212 | |
|---|
| 213 | # The default number of bits for ChordIds |
|---|
| 214 | CHORD_BITS_PER_KEY = 32 |
|---|
| 215 | |
|---|
| 216 | |
|---|
| 217 | ################################################################################ |
|---|
| 218 | # RESULTS PART # |
|---|
| 219 | ################################################################################ |
|---|
| 220 | |
|---|
| 221 | # |
|---|
| 222 | # IMPORTANT: All different results attributes must appear in comma separated |
|---|
| 223 | # format, using each position for the same results type for all attributes. |
|---|
| 224 | # |
|---|
| 225 | |
|---|
| 226 | ########## OPTIONAL ATTRIBUTES: Test dependant |
|---|
| 227 | |
|---|
| 228 | # The default ResultsFactory class |
|---|
| 229 | RESULTS_FACTORY = planet.generic.commonapi.results.ResultsFactoryImpl, \ |
|---|
| 230 | planet.generic.commonapi.results.ResultsFactoryImpl |
|---|
| 231 | |
|---|
| 232 | # The default ResultsEdge class |
|---|
| 233 | RESULTS_EDGE = planet.generic.commonapi.results.ResultsEdgeImpl, \ |
|---|
| 234 | planet.generic.commonapi.results.ResultsEdgeImpl |
|---|
| 235 | |
|---|
| 236 | # The default ResultsConstraint class |
|---|
| 237 | RESULTS_CONSTRAINT = planet.generic.commonapi.results.ResultsIdleConstraint, \ |
|---|
| 238 | planet.generic.commonapi.results.ResultsIdleConstraint |
|---|
| 239 | |
|---|
| 240 | # The default ResultsGenerator class |
|---|
| 241 | RESULTS_GENERATOR = planet.generic.commonapi.results.ResultsGMLGenerator, \ |
|---|
| 242 | planet.generic.commonapi.results.ResultsPajekGenerator |
|---|
| 243 | |
|---|
| 244 | # The default PropertiesInitializer for results properties |
|---|
| 245 | RESULTS_PROPERTIES = planet.generic.commonapi.results.ResultsGMLProperties, \ |
|---|
| 246 | planet.generic.commonapi.results.ResultsGMLProperties |
|---|
| 247 | |
|---|
| 248 | # The unique names for each results type |
|---|
| 249 | RESULTS_UNIQUE_NAME = GML, \ |
|---|
| 250 | PAJEK |
|---|
| 251 | |
|---|
| 252 | ################################################################################ |
|---|
| 253 | # GML SPECIFIC RESULTS PART # |
|---|
| 254 | ################################################################################ |
|---|
| 255 | |
|---|
| 256 | ########## OPTIONAL ATTRIBUTES: Test dependant |
|---|
| 257 | |
|---|
| 258 | # The default width of the virual bounding box |
|---|
| 259 | RESULTS_PROPERTIES_GML_WIDTH = 20.0f |
|---|
| 260 | |
|---|
| 261 | # The default height of the virtual bounding box |
|---|
| 262 | RESULTS_PROPERTIES_GML_HEIGHT = 20.0f |
|---|
| 263 | |
|---|
| 264 | # The default shape of the node |
|---|
| 265 | RESULTS_PROPERTIES_GML_SHAPE = ellipse |
|---|
| 266 | |
|---|
| 267 | # The default fill color for the shape of the node (in #'RRGGBB' format) |
|---|
| 268 | RESULTS_PROPERTIES_GML_FILL = CCCCFF |
|---|
| 269 | |
|---|
| 270 | # The default alternative fill color for the shape of the node (in #'RRGGBB' format) |
|---|
| 271 | RESULTS_PROPERTIES_GML_ALTERNATIVE_FILL = 00FF66 |
|---|
| 272 | |
|---|
| 273 | # The default color of the border line (in #'RRGGBB' format) |
|---|
| 274 | RESULTS_PROPERTIES_GML_OUTLINE = 000000 |
|---|
| 275 | |
|---|
| 276 | # The default font size of the node Id lavel |
|---|
| 277 | RESULTS_PROPERTIES_GML_FONT_SIZE = 12 |
|---|
| 278 | |
|---|
| 279 | # The default font name of the node Id label |
|---|
| 280 | RESULTS_PROPERTIES_GML_FONT_NAME = dialog |
|---|
| 281 | |
|---|
| 282 | # The default minimal node distance arranged on a circle |
|---|
| 283 | RESULTS_PROPERTIES_GML_MINIMAL_NODE_DISTANCE = 50 |
|---|