randbeam: First commit!

Initial implementation for randbeam! It supports a map of size 1x1,
omni_tx/rx, and other stuff..

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
randbeam: stable support for asynchronous events

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
randbeam: OUT_FORMAT modified

added omni_tx/rx to the OUT_FORMAT

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
randbeam: corrected discovery()

Actually in case of collision on the ROUND_SENDth iteration, the
discovery function behaves like node i discovers itself.

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
randbeam: correct send_message()

transmitting node has to be active while sending a message!

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
randbeam: add range in OUT_FORMAT and fixes

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
randbeam: corrected default parameters

Added defines for default parameter values

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
randbeam: added exponential distributed listen time

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
randbeam: added pt autocomputation

Now Pt is auto-computed from the input data

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
randbeam: added test_num in OUT_FORMAT

to distinguish different tests I added the test_num value in the file
name

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
randbeam: changed from sect_per_round_* to tick_per_round_*

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
randbeam: correct OUT_FORMAT

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
randbeam: correct pt computation
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
randbeam: correct memory leak

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
randbeam: automatically compute the average clique size

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
randbeam: added support for avg connectivy computation

At the end of each round a DFS is performed started from each node to
compute the average connectivity ratio of the whole network

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
randbeam: added cmd flag to enable the connectivity check

The parameter -c has been added to enable the connectivity check in
order to avoid to execute such computation if not needed

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
randbeam: correct memory leak

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
randbeam: correct several bugs

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
randbeam: correct output and round number

Signed-off-by: Antonio Quartulli <ordex@autistici.org>