-
-private:
- // associative array keeping size of data already sent for a given flow (required for interleaved actions)
- std::map<simgrid::kernel::resource::NetworkWifiAction*, std::pair<int, double>> flowTmp{};
-
- // WiFi link the plugin instance is attached to
- s4u::Link* link_{};
-
- // dynamic energy accumulated since the simulation start (active durations consumption)
- double eDyn_{0.0};
- // static energy (no activity consumption)
- double eStat_{0.0};
-
- // duration since previous energy update
- double prev_update_{0.0};
-
- // Same energy calibration values as ns3 by default
- // https://www.nsnam.org/docs/release/3.30/doxygen/classns3_1_1_wifi_radio_energy_model.html#details
- double pIdle_{0.82};
- double pTx_{1.14};
- double pRx_{0.94};
- double pSleep_{0.10};
-
- // constant taking beacons into account (can be specified by the user)
- double control_duration_{0.0036};
-
- // Measurements for report
- double dur_TxRx_{0}; // Duration of transmission
- double dur_idle_{0}; // Duration of idle time
- bool valuesInit_{false};