9 neighbor(const char* hostname);
12 // returns name, ctrl or data mbox
13 const char* get_name() const { return host->get_name(); }
14 const char* get_ctrl_mbox() const { return host->get_ctrl_mbox(); }
15 const char* get_data_mbox() const { return host->get_data_mbox(); }
17 // Getter and setter for load
18 double get_load() const { return load; }
19 void set_load(double amount) { load = amount; }
21 // Getter and setter for debt
22 double get_debt() const { return debt; }
23 void set_debt(double amount) { debt = amount; }
25 // Getter and setter for to_send
26 double get_to_send() const { return to_send; }
27 void set_to_send(double amount) { to_send = amount; }
28 void add_to_send(double amount) { to_send += amount; }
31 const hostdata* host; // pointer to this neighbor's hostdata
33 double load; // the load information we know for it
34 double debt; // the load we had to send to it, but
35 // that we have not currently sent
36 // (in bookkeeping mode)
38 double to_send; // the load we have to send to it