// CFG: CITY-VIRGIN-STATE-CLASS
$cfg->setConfigEntry('city_virgin_state_class', 'CityVirginState');
+// CFG: CITY-ACTIVE-STATE-CLASS
+$cfg->setConfigEntry('city_active_state_class', 'CityActiveState');
+
/******************************************************************************
* HTML client *
******************************************************************************/
$this->getStateInstance()->validateCityStateIsVirgin();
// ----------------------- Last step from here ------------------------
- // Activate the City. This is ALWAYS the last step in this method
- /* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('CITY[' . __METHOD__ . ':' . __LINE__ . ']: state=' . $this->getStateInstance()->__toString());
+ // Activate the city daemon. This is ALWAYS the last step in this method
+ /* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('CITY[' . __METHOD__ . ':' . __LINE__ . ']: state=' . $this->getStateInstance()->__toString() . ' - Activating ...');
$this->getStateInstance()->citySimulationIsActivated();
// ---------------------- Last step until here ------------------------
}
$handlerInstance->registerTask('map_expander', $taskInstance);
/*
- * Allow extra city-depending tasks, e.g. the bootstrapper city needs
- * booting its DHT. DHTs are decentralized and are working on
- * peer-to-peer basis.
+ * Add extra tasks depending on daemon modus.
*/
$cityInstance->addExtraTasks($handlerInstance);
}
*
* @return void
*/
- public function cityIsActivated () {
+ public function citySimulationIsActivated () {
// Create the new state instance
CityStateFactory::createCityStateInstanceByName('active');
}