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
Constify some methods in surf_interface.
[simgrid.git]
/
src
/
surf
/
surf_interface.cpp
diff --git
a/src/surf/surf_interface.cpp
b/src/surf/surf_interface.cpp
index
df9b6b1
..
999fca9
100644
(file)
--- a/
src/surf/surf_interface.cpp
+++ b/
src/surf/surf_interface.cpp
@@
-608,7
+608,7
@@
void Action::finish(Action::State state)
setState(state);
}
setState(state);
}
-Action::State Action::getState()
+Action::State Action::getState()
const
{
if (stateSet_ == model_->getReadyActionSet())
return Action::State::ready;
{
if (stateSet_ == model_->getReadyActionSet())
return Action::State::ready;
@@
-645,7
+645,7
@@
void Action::setState(Action::State state)
stateSet_->push_back(*this);
}
stateSet_->push_back(*this);
}
-double Action::getBound()
+double Action::getBound()
const
{
return (variable_) ? lmm_variable_getbound(variable_) : 0;
}
{
return (variable_) ? lmm_variable_getbound(variable_) : 0;
}
@@
-661,21
+661,6
@@
void Action::setBound(double bound)
XBT_OUT();
}
XBT_OUT();
}
-double Action::getStartTime()
-{
- return start_;
-}
-
-double Action::getFinishTime()
-{
- return finishTime_;
-}
-
-void Action::setData(void* data)
-{
- data_ = data;
-}
-
void Action::setCategory(const char *category)
{
category_ = xbt_strdup(category);
void Action::setCategory(const char *category)
{
category_ = xbt_strdup(category);
@@
-807,10
+792,5
@@
double Action::getRemains()
return remains_;
}
return remains_;
}
-double Action::getRemainsNoUpdate()
-{
- return remains_;
-}
-
}
}
}
}