Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cleanups in Action::State
authorMartin Quinson <martin.quinson@loria.fr>
Thu, 17 May 2018 19:30:15 +0000 (21:30 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Thu, 17 May 2018 19:45:55 +0000 (21:45 +0200)
commitd5c5c81b80995b117219aa475399de9aaeef5763
tree2a0b79615ec4b513bb237014d5993828aeb75e62
parent5a469c9dca9ce25cee1a52682d7eb7bbd736a49b
cleanups in Action::State

- Rename "ready" to "inited", for symmetry to s4u::Activity
- Remove the unused state "to_free"
- Rename the funky state "not_in_the_system" into "ignored", and
  improve its documentation.

Further cleanups could include not having any action set beyond the
ones existing in kernel::resource::Model, so that
kernel::resource::Action::get_state() see them all.

CpuCas01 is the one heavily using ignored actions, as failure detectors.
include/simgrid/kernel/resource/Action.hpp
include/simgrid/kernel/resource/Model.hpp
src/kernel/resource/Action.cpp
src/kernel/resource/Model.cpp
src/surf/cpu_cas01.cpp
src/surf/cpu_ti.cpp
src/surf/network_cm02.cpp
teshsuite/surf/surf_usage/surf_usage.cpp