View Javadoc
1   package org.woehlke.computer.kurzweil;
2   
3   import lombok.extern.log4j.Log4j2;
4   import org.woehlke.computer.kurzweil.application.ComputerKurzweilProperties;
5   import org.woehlke.computer.kurzweil.tabs.simulatedevolution.SimulatedEvolutionTab;
6   
7   import java.io.File;
8   import java.net.URL;
9   
10  /**
11   * Class with main Method for Starting the Desktop Application.
12   *
13   * @see SimulatedEvolutionTab
14   *
15   * © 2006 - 2008 Thomas Woehlke.
16   * http://thomas-woehlke.de/p/simulated-evolution/
17   * @author Thomas Woehlke
18   */
19  @Log4j2
20  public class SimulatedEvolutionApplication {
21  
22      private SimulatedEvolutionApplication(String[] args) {
23  
24          String configFileName = "/application.yml";
25          URL fileUrl = getClass().getResource(configFileName);
26          File configFile = new File(fileUrl.getFile());
27          ComputerKurzweilProperties properties = ComputerKurzweilProperties.propertiesFactory(configFile);
28          SimulatedEvolutionTablatedEvolutionTab.html#SimulatedEvolutionTab">SimulatedEvolutionTab simulatedEvolutionTab = new SimulatedEvolutionTab(properties);
29      }
30  
31      /**
32       * Starting the Desktop Application
33       * @param args CLI Parameter
34       */
35      public static void main(String[] args) {
36          SimulatedEvolutionApplicationion.html#SimulatedEvolutionApplication">SimulatedEvolutionApplication application = new SimulatedEvolutionApplication(args);
37      }
38  }