/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#include "src/kernel/resource/Resource.hpp"
+#include "simgrid/kernel/resource/Resource.hpp"
#include "src/kernel/lmm/maxmin.hpp" // Constraint
#include "src/surf/surf_interface.hpp"
namespace kernel {
namespace resource {
-Resource::Resource(surf::Model* model, const std::string& name, lmm::Constraint* constraint)
+Resource::Resource(Model* model, const std::string& name, lmm::Constraint* constraint)
: name_(name), model_(model), constraint_(constraint)
{
}
return constraint_->get_usage();
}
-surf::Model* Resource::model() const
+Model* Resource::model() const
{
return model_;
}
kernel::lmm::Constraint* Resource::constraint() const
{
- return const_cast<kernel::lmm::Constraint*>(constraint_);
+ return constraint_;
}
} // namespace resource