GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
void BaseEmulator::Init ( const NamedItem< std::string > &  init_sequence = NamedItem<std::string>("InitSequence","config load init"))
virtualinherited

Init the emulator. To be called before calling Run.

To be flexible, it relies on an init sequence.

  • [config load init] means for each actors { config, register, init } i.e. the three actions are called for the first actor, then the second one ... and so on
  • the order of the sequence could be change i.e. load, config, and init ... carefull it is not the way of doing !
  • another way to is to call first conf for all actors, then register for all actors ... here is the code to do it
    emulator.Init( NamedItem<std::string>("InitSequence","config") );
    emulator.Init( NamedItem<std::string>("InitSequence","load") );
    ...

Definition at line 158 of file BaseEmulator.cpp.