} catch (ClassNotFoundException $e) {
// This exception means, the city mode is invalid.
// @TODO Can we rewrite this to app_exit() ?
- $this->debugBackTrace('[' . __METHOD__ . ':' . __LINE__ . ']: city mode ' . $cityMode . ' is invalid.');
+ $this->debugBackTrace('[' . __METHOD__ . ':' . __LINE__ . ']: City daemon could not be initialized: ' . $e->getMessage());
}
// Debug message
- /* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('NODE-INIT-FILTER[' . __METHOD__ . ':' . __LINE__ . ']: City daemon ' . $cityMode . ' has been added to registry.');
+ /* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('NODE-INIT-FILTER[' . __METHOD__ . ':' . __LINE__ . ']: City daemon has been added to registry.');
}
}
// Put the task handler in registry
Registry::getRegistry()->addInstance('task_handler', $handlerInstance);
- // Prepare a map-expanding task
+ // Prepare a city map expansion task
$taskInstance = ObjectFactory::createObjectByConfiguredName('city_daemon_map_expander_task_class');
// Register it
--- /dev/null
+The following tasks are used:
+-----------------------------
+
+Name | Description
+--------------+--------------------------------
+ map_expander | Expands the city map if needed
+--------------+--------------------------------
+
+- - - - -
+
+Task 'map_expander':
+--------------------
+
+The task is responsible for expanding the city map around outer-most zones and
+roads. It also initializes the map at first startup (if the city has been
+"founded").
+
+For doing this, around the outer-most zones/roads the map is expanded for a
+configurable value (default: 100). After the first road has been constructed,
+the map is not expanded directly as this would cause permanent expansion of it
+which leads to more system load.
+
+Instead, the map is being expanded if the outer-most zone/road has come to
+close ("city border threashold") to the border (default: 10). If that value
+has reached or surpassed (to close, e.g. by constructing a long road) the map
+is expanded (default: 10+100 from outer-most).
+
+[EOF]