10 neighbor(const char* hostname);
13 // returns name, ctrl or data mbox
14 const char* get_name() const { return host->get_name(); }
15 const char* get_ctrl_mbox() const { return host->get_ctrl_mbox(); }
16 const char* get_data_mbox() const { return host->get_data_mbox(); }
18 // Getter and setter for load
19 double get_load() const { return load; }
20 void set_load(double amount) { load = amount; }
21 void add_load(double amount) { load += amount; }
23 // Getter and setter for debt
24 double get_debt() const { return debt; }
25 void set_debt(double amount) { debt = amount; }
27 // Getter and setter for to_send
28 double get_to_send() const { return to_send; }
29 void set_to_send(double amount) { to_send = amount; }
30 void add_to_send(double amount) { to_send += amount; }
32 // Prints its name and load on given category, with given
33 // priority. If verbose is true, prints debt and to_send too.
34 void print(bool verbose = false,
35 e_xbt_log_priority_t logp = xbt_log_priority_info,
36 xbt_log_category_t cat = _XBT_LOGV(default)) const;
39 const hostdata* host; // pointer to this neighbor's hostdata
41 double load; // the load information we know for it
42 double debt; // the load we had to send to it, but
43 // that we have not currently sent
44 // (in bookkeeping mode)
46 double to_send; // the load we have to send to it