Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill models getName() call sites.
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 20 Jul 2015 16:14:21 +0000 (18:14 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 20 Jul 2015 16:22:09 +0000 (18:22 +0200)
commit3715b2a421abd8357f41fb2be3c25a351f1af8cb
tree80822a8803bac90de986d6ab98b4d3ff7eca3a01
parent12ab87e38dd389503c6b2738b8d3d085558354eb
Kill models getName() call sites.

- Debug messages now depend on typeid(...).name(). Beware, the output
  may be compiler dependent.
- It was mainly used to have a specific handling of NS3, which method
  shareRessources() is not idempotent (ie, it actually moves the model
  in the future with no possibility of rolling it back afterward).

  So NS3->shareRessource() needs to be run after all other
  shareRessources, and before the updateState()s.

  Add a shareResourcesIsIdempotent() method to all models to detect
  whether we need to activate that strange behavior without having to
  rely on the model name.

- Removing models namesmakes Model pure virtual, possibly allowing
  diamon-shaped inheritance in L07, where we need only one model for
  CpuModel and NetworkModel.
src/include/surf/surf.h
src/surf/cpu_interface.hpp
src/surf/host_clm03.cpp
src/surf/host_interface.hpp
src/surf/host_ptask_L07.hpp
src/surf/network_cm02.hpp
src/surf/network_ns3.hpp
src/surf/storage_interface.hpp
src/surf/surf_c_bindings.cpp
src/surf/surf_interface.hpp
src/surf/vm_hl13.cpp