A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cosmetics: rename 2 fields
[simgrid.git]
/
src
/
kernel
/
resource
/
Resource.cpp
diff --git
a/src/kernel/resource/Resource.cpp
b/src/kernel/resource/Resource.cpp
index
427a6b1
..
72899f0
100644
(file)
--- a/
src/kernel/resource/Resource.cpp
+++ b/
src/kernel/resource/Resource.cpp
@@
-18,41
+18,41
@@
Resource::Resource(Model* model, const std::string& name, lmm::Constraint* const
Resource::~Resource() = default;
Resource::~Resource() = default;
-bool Resource::is
O
n() const
+bool Resource::is
_o
n() const
{
return is_on_;
}
{
return is_on_;
}
-bool Resource::is
O
ff() const
+bool Resource::is
_o
ff() const
{
return not is_on_;
}
{
return not is_on_;
}
-void Resource::turn
O
n()
+void Resource::turn
_o
n()
{
is_on_ = true;
}
{
is_on_ = true;
}
-void Resource::turn
O
ff()
+void Resource::turn
_o
ff()
{
is_on_ = false;
}
{
is_on_ = false;
}
-double Resource::get
L
oad()
+double Resource::get
_l
oad()
{
return constraint_->get_usage();
}
{
return constraint_->get_usage();
}
-Model* Resource::model() const
+Model* Resource::
get_
model() const
{
return model_;
}
{
return model_;
}
-const std::string& Resource::get
N
ame() const
+const std::string& Resource::get
_n
ame() const
{
return name_;
}
{
return name_;
}
-const char* Resource::get
C
name() const
+const char* Resource::get
_c
name() const
{
return name_.c_str();
}
{
return name_.c_str();
}
@@
-62,7
+62,7
@@
bool Resource::operator==(const Resource& other) const
return name_ == other.name_;
}
return name_ == other.name_;
}
-kernel::lmm::Constraint* Resource::constraint() const
+kernel::lmm::Constraint* Resource::
get_
constraint() const
{
return constraint_;
}
{
return constraint_;
}