Ntk.Core.MapPeerToPeer Reference Manual
Packages
vd
Ntk
Core
MapPeerToPeer
MapPeerToPeer
get_packed_nodes
initialize_from_neighbour
node_dead
node_get
participate
sit_out
MapPeerToPeer
Object Hierarchy:
Description:
public
class
MapPeerToPeer
:
Map
<
ParticipantNode
>
Namespace:
Ntk.Core
Package:
vd
Content:
Creation methods:
public
MapPeerToPeer
(
int
levels,
int
gsize,
NIP
me,
int
pid)
levels, gsize, me: the same of Map pid: PeerToPeer id of the service associated to this map
Methods:
public
void
initialize_from_neighbour
(
NIP
nip,
PackedParticipantNodes
packed_nodes)
Initialize map from a neighbour's data.
public
override
ParticipantNode
node_get
(
int
lvl,
int
pos)
A new instance is created for a position that represents me. Otherwise, the usual behaviour.
public
void
node_dead
(
int
lvl,
int
pos)
public
void
participate
()
Set me to be a participant node.
public
void
sit_out
()
Set me to be a non-participant node.
public
PackedParticipantNodes
get_packed_nodes
()
Prepares a packed map_peer_to_peer to be passed to refresh participations