Radar
Object Hierarchy:
Description:
public class Radar : Object
An instance of Radar uses a certain network interface on behalf of a certain AddressManager. The radar sends in broadcast a bouquet of
MAX_BOUQUET packets and waits for the reply of the alive nodes. It then recollects the replies and builds a small statistic. Then it
reports the detected neighbours to the NeighbourManager(s) interested in that network interface.
A radar is fired periodically by Radar.run(), which is started as a microfunc.
Namespace: Ntk.Core
Package: vd
Content:
Creation methods:
Methods:
- public void run ()
- public void stop ()
Stop the radar scanner
- public virtual void radar ()
- public void radar_reset ()
Clean the objects needed by radar()
- public virtual void time_register (
int
radar_id, int
levels, int
gsize, NIP nip, int
nodeid, NetworkID netid, string
mac, bool
is_primary, bool
is_auxiliary)
save each node's rtt
- public
int
get_avg_rtt (string
key)
Calculates the average RTT of the neighbour for the device
associated to this radar.
- protected
string
tnip_nodeid_key (NIP key_nip, int
key_nodeid)
- protected void key_tnip_nodeid (
string
key, out NIP key_nip, out int
key_nodeid)
- public virtual
HashMap
<string
,Neighbour> get_all_avg_rtt ()
Calculate the average rtt of all the neighbours
- public
string
to_string ()
Signals:
Fields: