001package myproject.main;
002
003import myproject.model.Model;
004import myproject.model.swing.SwingAnimatorBuilder;
005import myproject.model.text.TextAnimatorBuilder;
006
007/**
008 * A static class to demonstrate the visualization aspect of
009 * simulation.
010 */
011public class Main {
012        private Main() {}
013        public static void main(String[] args) {
014                {
015                        Model m = new Model(new TextAnimatorBuilder(), 0, 1);
016                        m.run(1000);
017                        m.dispose();
018                }
019                {
020                        Model m = new Model(new SwingAnimatorBuilder(), 0, 1);
021                        m.run(1000);
022                        m.dispose();
023                }
024                {
025                        Model m = new Model(new TextAnimatorBuilder(), 1, 1);
026                        m.run(10);
027                        m.dispose();
028                }
029                {
030                        Model m = new Model(new SwingAnimatorBuilder(), 1, 1);
031                        m.run(10);
032                        m.dispose();
033                }
034                {
035                        Model m = new Model(new TextAnimatorBuilder(), 2, 3);
036                        m.run(500);
037                        m.run(500);
038                        m.dispose();
039                }
040                System.exit(0);
041        }
042}
043