Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
What ActivityImpl child should look like IMHO
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Thu, 14 Mar 2019 11:49:02 +0000 (12:49 +0100)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Thu, 14 Mar 2019 11:49:02 +0000 (12:49 +0100)
commit93ae3804979dbbefc774e5a70acc32a4407dd7e8
tree80631d1854070a2a208631b0b09f57ae8fe10dd4
parent640e6f6494f5e1151f6436aea0e0c515da2c144b
What ActivityImpl child should look like IMHO
* ctor does nothing more than create a class instance
* all fields can be set by chainable setters
* start() has no parameter

On the S4U side, we should have the same (with CRTP soon)
* ctor calls the Impl ctor and sets thing at user level
* start() does a simcall in which we call all the Impl setters to
  transfer all field values to the kernel and then call Impl::start()

Maybe we should also replace "new *Impl()" in S4U by a call to a
Impl::create() static method to be written.
src/kernel/activity/ActivityImpl.hpp
src/kernel/activity/IoImpl.cpp
src/kernel/activity/IoImpl.hpp
src/s4u/s4u_Io.cpp