namespace kernel {
namespace resource {
-LinkImpl* NetworkConstantModel::create_link(const std::string& name, const std::vector<double>& /*bandwidth*/,
- s4u::Link::SharingPolicy /*policy*/)
+LinkImpl* NetworkConstantModel::create_link(const std::string& name, const std::vector<double>& /*bandwidth*/)
{
xbt_die("Refusing to create the link %s: there is no link in the Constant network model. "
"Please remove any link from your platform (and switch to routing='None')",
return nullptr;
}
+LinkImpl* NetworkConstantModel::create_wifi_link(const std::string& name, const std::vector<double>& bandwidths)
+{
+ return create_link(name, bandwidths);
+}
+
double NetworkConstantModel::next_occurring_event(double /*now*/)
{
double min = -1.0;
{
latency_ = sg_latency_factor;
if (latency_ <= 0.0)
- NetworkConstantAction::set_state(Action::State::FINISHED);
+ set_state(Action::State::FINISHED);
}
-NetworkConstantAction::~NetworkConstantAction() = default;
-
void NetworkConstantAction::update_remains_lazy(double /*now*/)
{
THROW_IMPOSSIBLE;