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
add get_name for batteries. update dag_from_json to support wfformat 1.4
[simgrid.git]
/
src
/
mc
/
transition
/
TransitionRandom.hpp
diff --git
a/src/mc/transition/TransitionRandom.hpp
b/src/mc/transition/TransitionRandom.hpp
index b62e8c4b6665a7fae05cd6d869aea2044eeda661..374d69def4668085caa698df9dd738a2c58dca1a 100644
(file)
--- a/
src/mc/transition/TransitionRandom.hpp
+++ b/
src/mc/transition/TransitionRandom.hpp
@@
-17,7
+17,13
@@
class RandomTransition : public Transition {
public:
std::string to_string(bool verbose) const override;
RandomTransition(aid_t issuer, int times_considered, std::stringstream& stream);
public:
std::string to_string(bool verbose) const override;
RandomTransition(aid_t issuer, int times_considered, std::stringstream& stream);
- bool depends(const Transition* other) const override { return false; } // Independent with any other transition
+ bool depends(const Transition* other) const override
+ {
+ if (other->type_ < type_)
+ return other->depends(this);
+
+ return aid_ == other->aid_;
+ } // Independent with any other transition
};
} // namespace simgrid::mc
};
} // namespace simgrid::mc