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
8
9
10
11
12
13
14
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
33
34
35 public static void main(String[] args) {
36 DiffusionLimitedAggregationApplication app = new DiffusionLimitedAggregationApplication();
37 app.start();
38 }
39 }