Map
Object Hierarchy:
Description:
public class Map<
T> :
Object
A Map instance represents ...
Namespace: Ntk.Core
Package: vd
Content:
Properties:
Creation methods:
- public Map (
int
levels, int
gsize, NIP me)
Constructs a new map
Methods:
- public void periodically_check_all_nodes ()
spawns a tasklet which periodically checks all nodes. (in this
gnode?)
- public virtual void stop_operations ()
- public void check_node (
int
lvl, int
pos)
Checks a node, this looks similar to a "ping"???
- public virtual T node_get (
int
lvl, int
pos)
Returns from the map a node of level `lvl' and id `pos'.
- public T node_get_hcoord (HCoord hc)
- public void node_remove (
int
lvl, int
pos)
Removes from the map a node of level `lvl' and id `pos'.
- public void node_add (
int
lvl, int
pos)
A node was previously free, and now it is busy. Emit a signal.
- public void node_del (
int
lvl, int
pos)
A node was previously busy, and now it is free. Emit a signal.
- public
int
free_nodes_nb (int
lvl)
Returns the number of free nodes of level `lvl'
- public
int
[] free_nodes_list (int
lvl)
Returns the list of free nodes of level `lvl'
- public
int
busy_nodes_nb (int
lvl)
Returns the number of busy nodes of level `lvl'
- public
int
[] busy_nodes_list (int
lvl)
Returns the list of busy nodes of level `lvl'
- public
int
[] get_all_busy_nodes_nb ()
Returns a list of the number of busy nodes at every level
- public
int
nip_cmp (int
[] nipA)
- public PartialNIP lvlid_to_nip (HCoord lvlid)
Converts a (lvl, pos) pair, referring to this map, to its equivalent
nip
- public HCoord nip_to_lvlid (PartialNIP nip)
Finds a (lvl, pos) pair, referring to this map, from its equivalent
nip
- public
List
<HCoord> list_lvl_id_from_nip (List
<HCoord> lvl_ids, NIP sender_nip)
Given a list of pairs (lvl, id) received by a neighbour with a given
nip, returns the list of pairs (lvl, id) representing the same list of nodes, as seen from the point of view of this node.
- public
List
<HCoord> list_lvl_id_to_nip (List
<HCoord> lvl_ids, NIP to_nip)
Given a list of pairs (lvl, id) being sent to a neighbour with a
given nip, returns the list of pairs (lvl, id) representing the same list of nodes, as seen from the point of view of the neighbour.
Signals:
Fields: