View Javadoc
1   package org.woehlke.computer.kurzweil.dla;
2   
3   import org.woehlke.computer.kurzweil.dla.config.ComputerKurzweilProperties;
4   import org.woehlke.computer.kurzweil.dla.view.DiffusionLimitedAggregationFrame;
5   
6   /**
7    * Diffusion Limited Aggregation.
8    *
9    * (C) 2006 - 2022 Thomas Woehlke.
10   * @author Thomas Woehlke
11   *
12   * @see <a href="https://thomas-woehlke.blogspot.com/2016/01/diffusion-limited-aggregation.html">Blog Arrticle</a>
13   * @see <a href="https://java.woehlke.org/diffusion-limited-aggregation">Maven Project Page</a>
14   * @see <a href="https://github.com/Computer-Kurzweil/diffusion-limited-aggregation">Github</a>
15   */
16  public class DiffusionLimitedAggregationApplication {
17  
18      private final DiffusionLimitedAggregationFrame frame;
19  
20      private DiffusionLimitedAggregationApplication() {
21          String conf = "application.yml";
22          String jarPath = "target/diffusion-limited-aggregation.jar";
23          ComputerKurzweilProperties config = ComputerKurzweilProperties.propertiesFactory(conf, jarPath);
24          this.frame = new DiffusionLimitedAggregationFrame(config);
25      }
26  
27      public void start(){
28          this.frame.start();
29      }
30  
31      /**
32       * Starting the App.
33       * @param args CLI Parameter
34       */
35      public static void main(String[] args) {
36          DiffusionLimitedAggregationApplication app = new DiffusionLimitedAggregationApplication();
37          app.start();
38      }
39  }