View Javadoc
1   package org.woehlke.computer.kurzweil.kochsnowflake;
2   
3   import org.woehlke.computer.kurzweil.kochsnowflake.config.ComputerKurzweilProperties;
4   import org.woehlke.computer.kurzweil.kochsnowflake.view.KochSnowflakeFrame;
5   
6   /**
7    * Koch Snowflake. A Fractal with self self-similarity.
8    * (C) 2006 - 2022 Thomas Woehlke
9    * @author Thomas Woehlke
10   *
11   * @see KochSnowflakeFrame
12   * @see ComputerKurzweilProperties
13   *
14   * @see <a href="https://github.com/Computer-Kurzweil/kochsnowflake">Github Repository</a>
15   * @see <a href="https://java.woehlke.org/kochsnowflake/">Maven Project Reports</a>
16   */
17  public class KochSnowflakeApplication {
18  
19      private final KochSnowflakeFrame frame;
20  
21      private KochSnowflakeApplication() {
22          String conf = "application.yml";
23          String jarPath = "target/koch-snowflake.jar";
24          ComputerKurzweilProperties config = ComputerKurzweilProperties.propertiesFactory(conf,jarPath);
25          frame = new KochSnowflakeFrame(config);
26      }
27  
28      public void start(){
29          this.frame.start();
30      }
31  
32      /**
33       * Starting the Application.
34       * @param args CLI Parameter
35       */
36      public static void main(String[] args) {
37          KochSnowflakeApplication application = new KochSnowflakeApplication();
38          application.start();
39      }
40  }