/**
  * Init configuration
  */
 protected function initConfiguration()
 {
     $Distances = new PluginConfigurationValueArray('distances', __('Distances to predict'));
     $Distances->setDefaultValue(array(1, 3, 5, 10, 21.1, 42.2));
     $Model = new PluginConfigurationValueSelect('model', __('Prediction model'));
     $Model->setOptions(array('jd' => 'Jack Daniels', 'cpp' => 'Robert Bock (CPP)', 'steffny' => 'Herbert Steffny', 'cameron' => 'David Cameron'));
     $Model->setDefaultValue('jd');
     $BasicEndurance = new PluginConfigurationValueBool('use_be', __('Use basic endurance'), __('Use basic endurance factor to adapt prognosis for long distances (Jack Daniels only).'));
     $BasicEndurance->setDefaultValue(true);
     $Configuration = new PluginConfiguration($this->id());
     $Configuration->addValue($Distances);
     $Configuration->addValue($Model);
     $Configuration->addValue($BasicEndurance);
     $this->setConfiguration($Configuration);
 }