*/
class NetworkModel : public kernel::resource::Model {
public:
- /** @brief Constructor */
- NetworkModel() : Model() {}
+ static simgrid::config::Flag<double> cfg_tcp_gamma;
- /** @brief Destructor */
+ explicit NetworkModel(kernel::resource::Model::UpdateAlgo algo) : Model(algo) {}
~NetworkModel() override;
/**
*/
virtual kernel::resource::Action* communicate(s4u::Host* src, s4u::Host* dst, double size, double rate) = 0;
- /** @brief Function pointer to the function to use to solve the lmm_system_t
- *
- * @param system The lmm_system_t to solve
- */
- void (*f_networkSolve)(kernel::lmm::System*) = kernel::lmm::lmm_solve;
-
/**
* @brief Get the right multiplicative factor for the latency.
* @details Depending on the model, the effective latency when sending
* @return The new bandwidth.
*/
virtual double bandwidthConstraint(double rate, double bound, double size);
- double nextOccuringEventFull(double now) override;
+ double next_occuring_event_full(double now) override;
LinkImpl* loopback_ = nullptr;
};
virtual int sharingPolicy();
/** @brief Check if the Link is used */
- bool isUsed() override;
+ bool is_used() override;
- void turnOn() override;
- void turnOff() override;
+ void turn_on() override;
+ void turn_off() override;
virtual void setStateTrace(tmgr_trace_t trace); /*< setup the trace file with states events (ON or OFF).
Trace must contain boolean values. */
virtual std::list<LinkImpl*> links();
double latency_ = {};
- double latCurrent_ = {};
+ double lat_current_ = {};
double weight_ = {};
double rate_ = {};
};