]> AND Private Git Repository - loba.git/blobdiff - neighbor.h
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
modif simple
[loba.git] / neighbor.h
index 9607c072f49c8dbd5de11adab45e3eaca3746e81..58f6c1cfac6a937ea09691b4d73cd5971b0bdf92 100644 (file)
@@ -25,6 +25,7 @@ public:
     // Getter and setter for to_send
     double get_to_send() const          { return to_send;   }
     void set_to_send(double amount)     { to_send = amount; }
+    void add_to_send(double amount)     { to_send += amount; }
 
 private:
     const hostdata* host;       // pointer to this neighbor's hostdata