X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3080c6b0d097d6b3b7d5b3dda0592154ce438f64..d9ae466ddd78e4d367091d8c3c708df98c854ec7:/src/surf/network_interface.hpp diff --git a/src/surf/network_interface.hpp b/src/surf/network_interface.hpp index b532f72be4..2fdd71e204 100644 --- a/src/surf/network_interface.hpp +++ b/src/surf/network_interface.hpp @@ -72,26 +72,17 @@ XBT_PUBLIC(void) net_add_traces(); */ class NetworkModel : public Model { public: - /** - * @brief NetworkModel constructor - */ + /** @brief NetworkModel constructor */ NetworkModel() : Model("network") { f_networkSolve = lmm_solve; }; - /** - * @brief NetworkModel constructor - * - * @param name The name of the NetworkModel - */ + /** @brief NetworkModel constructor */ NetworkModel(const char *name) : Model(name) { f_networkSolve = lmm_solve; - m_haveGap = false; }; - /** - * @brief The destructor of the NetworkModel - */ + /** @brief The destructor of the NetworkModel */ ~NetworkModel() { if (p_maxminSystem) lmm_system_free(p_maxminSystem); @@ -128,7 +119,7 @@ public: virtual void gapAppend(double /*size*/, const NetworkLinkPtr /*link*/, NetworkActionPtr /*action*/) {}; /** - * @brief Create a communication between two workstations. + * @brief Create a communication between two hosts. * @details It makes calls to the routing part, and execute the communication * between the two end points. * @@ -184,7 +175,7 @@ public: */ virtual double bandwidthConstraint(double rate, double bound, double size); double shareResourcesFull(double now); - bool m_haveGap; + bool m_haveGap = false; }; /************ @@ -192,7 +183,7 @@ public: ************/ /** @ingroup SURF_network_interface * @brief SURF network link interface class - * @details A NetworkLink represents the link between two [Workstations](\ref Workstation) + * @details A NetworkLink represents the link between two [hosts](\ref Host) */ class NetworkLink : public Resource { public: @@ -220,33 +211,19 @@ public: tmgr_history_t history, tmgr_trace_t state_trace); - /** - * @brief NetworkLink destructor - */ + /** @brief NetworkLink destructor */ ~NetworkLink(); - /** - * @brief Get the bandwidth in bytes per second of current NetworkLink - * - * @return The bandwith in bytes per second of the current NetworkLink - */ + /** @brief Get the bandwidth in bytes per second of current NetworkLink */ virtual double getBandwidth(); - /** - * @brief Update the bandwidth in bytes per second of current NetworkLink - */ + /** @brief Update the bandwidth in bytes per second of current NetworkLink */ virtual void updateBandwidth(double value, double date=surf_get_clock())=0; - /** - * @brief Get the latency in seconds of current NetworkLink - * - * @return The latency in seconds of the current NetworkLink - */ + /** @brief Get the latency in seconds of current NetworkLink */ virtual double getLatency(); - /** - * @brief Update the latency in seconds of current NetworkLink - */ + /** @brief Update the latency in seconds of current NetworkLink */ virtual void updateLatency(double value, double date=surf_get_clock())=0; /** @@ -256,11 +233,7 @@ public: */ virtual bool isShared(); - /** - * @brief Check if the NetworkLink is used - * - * @return true if the current NetwokrLink is used, false otherwise - */ + /** @brief Check if the NetworkLink is used */ bool isUsed(); void setState(e_surf_resource_state_t state); @@ -280,8 +253,7 @@ public: **********/ /** @ingroup SURF_network_interface * @brief SURF network action interface class - * @details A NetworkAction represents a communication between two - * [Workstations](\ref Workstation) + * @details A NetworkAction represents a communication between two [hosts](\ref Host) */ class NetworkAction : public Action { public: