www.pudn.com > planetsim_3.0.zip > trivial.properties
################################################################################
# Chord configuration file: #
# ----------------------------- #
# This file specifies all properties (including the Chord specifics ones) to #
# run any test with the Chord overlay. #
# #
# How to use: #
# ----------------------------- #
# All properties are divided into different semantical parts. #
# You must specify the desired properties values into the following lines. #
# #
# Made by: #
# Jordi Pujol Ahullo (jordi.pujol@estudiants.urv.es) #
# Under: #
# Planet Project: http://ants.etse.urv.es/planet #
# PlanetSim: htpp://ants.etse.urv.es/planetsim #
################################################################################
################################################################################
# FACTORIES PART #
################################################################################
########## MANDATORY ATTRIBUTES
# The default NetworkFactory class
FACTORIES_NETWORKFACTORY = planet.generic.commonapi.factory.NetworkFactoryImpl
# The default IdFactory class
FACTORIES_IDFACTORY = planet.generic.commonapi.factory.IdFactoryImpl
# The default NodeHandleFactory class
FACTORIES_NODEHANDLEFACTORY = planet.generic.commonapi.factory.NodeHandleFactoryImpl
# The default NodeFactory class
FACTORIES_NODEFACTORY = planet.generic.commonapi.factory.NodeFactoryImpl
# The default RouteMessagePool class
FACTORIES_ROUTEMESSAGEPOOL = planet.generic.commonapi.factory.RouteMessagePoolImpl
# The default Network class
FACTORIES_NETWORK = planet.generic.commonapi.NetworkImpl
# The default NodeHandle class
FACTORIES_NODEHANDLE = planet.generic.commonapi.NodeHandleImpl
# The default RouteMessage class
FACTORIES_ROUTEMESSAGE = planet.generic.commonapi.RouteMessageImpl
# The default network topology.
# Default possible values: RANDOM, CIRCULAR, SERIALIZED
FACTORIES_NETWORKTOPOLOGY = RANDOM
# The default initial network size
FACTORIES_NETWORKSIZE = 100
########## OPTIONAL ATTRIBUTES: Test dependant
# The default ApplicationFactory class
FACTORIES_APPLICATIONFACTORY = planet.generic.commonapi.factory.ApplicationFactoryImpl
# The default EndPointFactory class
FACTORIES_ENDPOINTFACTORY = planet.generic.commonapi.factory.EndPointFactoryImpl
# The default Application class
FACTORIES_APPLICATION = planet.test.trivialp2ptest.TrivialApplication
# The default EndPoint class
FACTORIES_ENDPOINT = planet.generic.commonapi.EndPointImpl
################################################################################
# SIMULATOR PART #
################################################################################
########## MANDATORY ATTRIBUTES
# The number of stabilization steps for any node at join or leave
SIMULATOR_SIMULATION_STEPS = 2
# The log level (to use by Logger.log(...) )
# Default possible values (from more to less important logs): 0 (error), 1 (events), 2 (node info), 3 (message)
SIMULATOR_LOG_LEVEL = 0
# The print level for whole network (to use by GenericApp.printNetwork() method)
# Default possible values: 0 (no print), 1 (pretty print), 2 (full print)
SIMULATOR_PRINT_LEVEL = 1
# The environment for the current simulation
# Default possible values: SIMULATION (by steps), EXPERIMENTAL (by threads and real TCP connections)
# Only SIMULATION has available
SIMULATOR_ENVIRONMENT = SIMULATION
# The queue size for the incomming and outgoing queues
SIMULATOR_QUEUE_SIZE = 128
# The maximum number of messages to be processed per node per step
SIMULATOR_PROCESSED_MESSAGES = 128
########## OPTIONAL ATTRIBUTES: Test dependant
# The events filename to load
SIMULATOR_EVENT_FILE =
################################################################################
# SERIALIZATION PART #
################################################################################
########## OPTIONAL ATTRIBUTES: Test dependant
# Serialized file that contains the network to be loaded
SERIALIZATION_INPUT_FILE =
# Filename to which serialize the final state
SERIALIZATION_OUTPUT_FILE =
# Identifies if the output file must be replaced with new outputs, when the
# state is serialized
SERIALIZATION_REPLACE_OUTPUT_FILE = false
################################################################################
# BEHAVIOURS PART #
################################################################################
########## OPTIONAL ATTRIBUTES: Overlay dependant
# The default BehaviourFactory class
BEHAVIOURS_FACTORY = planet.generic.commonapi.behaviours.BehavioursFactoryImpl
# The default BehavioursPool class
BEHAVIOURS_POOL = planet.generic.commonapi.behaviours.BehavioursPoolImpl
# The default BehavioursRoleSelector class
BEHAVIOURS_ROLESELECTOR = planet.generic.commonapi.behaviours.BehavioursRoleSelectorImpl
# The default BehavioursInvoker class
BEHAVIOURS_INVOKER = planet.generic.commonapi.behaviours.BehavioursInvokerImpl
# The default BehavioursFilter class
BEHAVIOURS_FILTER = planet.generic.commonapi.behaviours.BehavioursIdleFilter
# The default BehavioursPattern class
BEHAVIOURS_PATTERN = planet.generic.commonapi.behaviours.BehavioursPatternImpl
# The default PropertiesInitializaer class for the behaviours properties
BEHAVIOURS_PROPERTIES = planet.generic.commonapi.behaviours.BehavioursPropertiesImpl
# The default number of message types used in the current overlay
# Default value for Trivial P2P: 1
BEHAVIOURS_NUMBEROFTYPES = 1
# The default number of message modes used in the current overlay
# Default value for Trivial P2P: 2
BEHAVIOURS_NUMBEROFMODES = 2
################################################################################
# SPECIFIC PROPERTIES OF BEHAVIOURS PART #
################################################################################
########## OPTIONAL ATTRIBUTES: Overlay dependant
# The default percentage of faulty nodes
# Default possible values: [0..100]
BEHAVIOURS_PROPERTIES_FAULTY_NODES = 0
# The default distribution of malicious node
# Default possible values: UNIFORM | CHAIN
BEHAVIOURS_PROPERTIES_MALICIOUS_DISTRIBUTION = CHAIN
# Identifies when to show specific debug info for behaviours
BEHAVIOURS_PROPERTIES_DEBUG = true
# NOTE: The following keys start by 'BEHAVIOURS_PROPERTIES_INSTANCE', ended
# with an incremental integer number to make them different
# All required instances for the current behaviours implementation
# COLUMN NAMES: MESSAGE MESSAGE
# UNIQUE NAME = BEHAVIOUR CLASS , TYPE , MODE , PROBABILITY , LOCALITY , ROLE
#-----------------------------------------------------------------------------------------------------------------------------------------------------------------
BEHAVIOURS_PROPERTIES_INSTANCE_1 = planet.trivialp2p.behaviours.DataBehaviour, DATA, *, 1.0, ALWAYS, NEUTRAL
################################################################################
# OVERLAY PART #
################################################################################
########## MANDATORY ATTRIBUTES
# The default Id class
OVERLAY_ID = planet.trivialp2p.TrivialId
# The default Node class
OVERLAY_NODE = planet.trivialp2p.TrivialNode
# The default OverlayProperties implementation class
OVERLAY_PROPERTIES = planet.trivialp2p.TrivialProperties
# Identifies if this overlay implementation uses behaviours
# Default possible values: false | true
OVERLAY_WITH_BEHAVIOURS = true
################################################################################
# TRIVIAL P2P SPECIFIC PART #
################################################################################
########## MANDATORY ATTRIBUTES
# The default number of stabilize steps
# Default possible values: true | false
TRIVIAL_DEBUG = false
################################################################################
# RESULTS PART #
################################################################################
#
# IMPORTANT: All different results attributes must appear in comma separated
# format, using each position for the same results type for all attributes.
#
########## OPTIONAL ATTRIBUTES: Test dependant
# The default ResultsFactory class
RESULTS_FACTORY = planet.generic.commonapi.results.ResultsFactoryImpl, \
planet.generic.commonapi.results.ResultsFactoryImpl
# The default ResultsEdge class
RESULTS_EDGE = planet.generic.commonapi.results.ResultsEdgeImpl, \
planet.generic.commonapi.results.ResultsEdgeImpl
# The default ResultsConstraint class
RESULTS_CONSTRAINT = planet.generic.commonapi.results.ResultsIdleConstraint, \
planet.generic.commonapi.results.ResultsIdleConstraint
# The default ResultsGenerator class
RESULTS_GENERATOR = planet.generic.commonapi.results.ResultsGMLGenerator, \
planet.generic.commonapi.results.ResultsPajekGenerator
# The default PropertiesInitializer for results properties
RESULTS_PROPERTIES = planet.generic.commonapi.results.ResultsGMLProperties, \
planet.generic.commonapi.results.ResultsGMLProperties
# The unique names for each results type
RESULTS_UNIQUE_NAME = GML, \
PAJEK
################################################################################
# GML SPECIFIC RESULTS PART #
################################################################################
########## OPTIONAL ATTRIBUTES: Test dependant
# The default width of the virual bounding box
RESULTS_PROPERTIES_GML_WIDTH = 20.0f
# The default height of the virtual bounding box
RESULTS_PROPERTIES_GML_HEIGHT = 20.0f
# The default shape of the node
RESULTS_PROPERTIES_GML_SHAPE = ellipse
# The default fill color for the shape of the node (in #'RRGGBB' format)
RESULTS_PROPERTIES_GML_FILL = CCCCFF
# The default alternative fill color for the shape of the node (in #'RRGGBB' format)
RESULTS_PROPERTIES_GML_ALTERNATIVE_FILL = 00FF66
# The default color of the border line (in #'RRGGBB' format)
RESULTS_PROPERTIES_GML_OUTLINE = 000000
# The default font size of the node Id lavel
RESULTS_PROPERTIES_GML_FONT_SIZE = 12
# The default font name of the node Id label
RESULTS_PROPERTIES_GML_FONT_NAME = dialog
# The default minimal node distance arranged on a circle
RESULTS_PROPERTIES_GML_MINIMAL_NODE_DISTANCE = 50