# This is a sample of the TestMessaging agent configuration 
# file. The demo runs only one kind of agent which is configured
# with different behaviours according to the task it has to
# perform.

# The following setting establishes which kind of test we want
# to run. Test are named. And Actually it is possible to run
# only two types of test: "Conv Test", "Ping Pong Test"

TestType "Ping Pong Test"

# The other parameters depends upon the test type. 
# The Ping Pong Test is a test about sending and receiving messages.
# In this game there are two roles: 
# Here are the parameters used for the "Ping Pong Test" test.


# The Role parameter identifies which role the agent plays
# into the test. There are two roles available: Ping and Pong. 
# The Ping agent starts the game by sending a message to the 
# Pong agent. The Pong agent, according to the reply behavior 
# established by the game sends back a reply with another number. 
# The Ping agent then sends another ping which depends on the 
# reply he got from the Pong agent.

Role Ping

# The MaxMessages parameter is used to set the number of messages
# sent during the Ping Pong game.

MaxMessages 20

# The ReplyAdd parameter is used by the Pong agent in order to
# select a reply behaviour. If true the Pong agent replies to
# the ping message with a number to add to the next ping message,
# if false the Pong agent replies with the same number found in
# the ping message.
#
# ReplyAdd true

# The PeerName parameter is used by the Ping role in order
# to identify the name of the agent playing the Pong role.

PeerName Pong


