Свойство | Тип | Описание | |
---|---|---|---|
_addr_to_index | int>.Dictionary | ||
_addr_to_node | GraphNode>.Dictionary | ||
_addrs | List |
||
_latency_map | List
|
||
_rand |
Метод | Описание | |
---|---|---|
AllToAll ( ) : void | ||
Average ( List |
Calculates the average of a data set.
|
|
BoundedBroadcast ( AHAddress caller, AHAddress from, AHAddress to ) : int |
Performs the bounded broadcast using recursion.
|
|
Broadcast ( ) : int |
Performs a broadcast to the entire overlay.
|
|
Broadcast ( AHAddress from ) : int |
Performs a broadcast to the entire overlay.
|
|
BroadcastAverage ( ) : void | ||
Crawl ( ) : void |
Crawls the network using a random address in the network.
|
|
Crawl ( AHAddress start ) : void |
Crawls the network using the given starting address.
|
|
DhtQuery ( AHAddress from, byte key ) : int | ||
GetLeftNearTarget ( AHAddress address ) : AHAddress |
Calculate the Left AHAddress of the given address.
|
|
GetNearTarget ( AHAddress address ) : AHAddress | ||
Graph ( int count, int near, int shortcuts ) : Brunet.Collections | ||
Graph ( int count, int near, int shortcuts, int seed ) : Brunet.Collections | ||
Graph ( int count, int near, int shortcuts, int random_seed, List |
||
ReadLatencyDataSet ( string dataset ) : List
|
Loads a square matrix based latency data set from a file.
|
|
SendPacket ( AHAddress from, AHAddress to ) : List |
Sends a packet from A to B returning the delay and hop count using the Greedy Routing Algorithm.
|
|
SendPacket ( AHAddress from, AHAddress to, ushort option ) : List |
Sends a packet from A to B returning the delay and hop count.
|
|
StandardDeviation ( List |
Calculates the standard deviation given a data set and the average.
|
|
WriteGraphFile ( string outfile ) : void |
Creates a Dot file which can generate an image using either neato with using the -n parameter or circo.
|
Метод | Описание | |
---|---|---|
AddConnection ( |
Creates an edge and a connection from node2 to node1 including the edge. Note: this is unidirectional, this must be called twice, swapping node1 with node2 for a connection to be complete.
|
|
CalculateDelay ( |
Calculates the delay between two nodes.
|
|
ComputeShortcutTarget ( AHAddress addr ) : AHAddress |
Calculates a shortcut using a harmonic distribution as in a Symphony-lke shortcut.
|
|
CreateNode ( AHAddress addr ) : |
Let the inheritor create their own node types
|
|
FindNodeNearestToAddress ( AHAddress addr ) : AHAddress | ||
FixLists ( ) : void | ||
GenerateAddress ( ) : AHAddress | ||
MapToRing ( byte key ) : Brunet.Util.MemBlock[] |
protected AddConnection ( |
||
node1 | ||
node2 | ||
delay | int | |
Результат | void |
public static Average ( List |
||
data | List |
|
Результат | double |
public BoundedBroadcast ( AHAddress caller, AHAddress from, AHAddress to ) : int | ||
caller | AHAddress | |
from | AHAddress | |
to | AHAddress | |
Результат | int |
protected CalculateDelay ( |
||
node1 | ||
node2 | ||
Результат | int |
protected ComputeShortcutTarget ( AHAddress addr ) : AHAddress | ||
addr | AHAddress | |
Результат | AHAddress |
protected CreateNode ( AHAddress addr ) : |
||
addr | AHAddress | |
Результат |
public DhtQuery ( AHAddress from, byte key ) : int | ||
from | AHAddress | |
key | byte | |
Результат | int |
protected FindNodeNearestToAddress ( AHAddress addr ) : AHAddress | ||
addr | AHAddress | |
Результат | AHAddress |
public GetLeftNearTarget ( AHAddress address ) : AHAddress | ||
address | AHAddress | |
Результат | AHAddress |
public GetNearTarget ( AHAddress address ) : AHAddress | ||
address | AHAddress | |
Результат | AHAddress |
public Graph ( int count, int near, int shortcuts ) : Brunet.Collections | ||
count | int | |
near | int | |
shortcuts | int | |
Результат | Brunet.Collections |
public Graph ( int count, int near, int shortcuts, int seed ) : Brunet.Collections | ||
count | int | |
near | int | |
shortcuts | int | |
seed | int | |
Результат | Brunet.Collections |
public Graph ( int count, int near, int shortcuts, int random_seed, List |
||
count | int | The network size not including the clusters. |
near | int | The amount of connections on the left or right of a ///node. |
shortcuts | int | The amount of far connections had per node. |
random_seed | int | |
dataset | List |
A square dataset consisting of pairwise latencies. |
Результат | Brunet.Collections |
protected MapToRing ( byte key ) : Brunet.Util.MemBlock[] | ||
key | byte | |
Результат | Brunet.Util.MemBlock[] |
public static ReadLatencyDataSet ( string dataset ) : List
|
||
dataset | string | |
Результат | List
|
public SendPacket ( AHAddress from, AHAddress to ) : List |
||
from | AHAddress | |
to | AHAddress | |
Результат | List |
public SendPacket ( AHAddress from, AHAddress to, ushort option ) : List |
||
from | AHAddress | |
to | AHAddress | |
option | ushort | |
Результат | List |
public static StandardDeviation ( List |
||
data | List |
|
avg | double | |
Результат | double |
public WriteGraphFile ( string outfile ) : void | ||
outfile | string | |
Результат | void |
protected Dictionary |
||
Результат | GraphNode>.Dictionary |