/*
 * Copyright 2016 Will Knez <wbknez.dev@gmail.com>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.solsticesquared.schelling;

/**
 * The main driver for the Schelling project.
 */
public final class AppEntry {

    /**
     * The application entry point.
     *
     * @param args
     *        The array of command line arguments, if any.
     */
    public static void main(final String[] args) {
    }

    /**
     * Constructor (private).
     */
    private AppEntry() {
    }
}

@@ -650,16 +650,269 @@
 lling;%0A%0A
+import com.solsticesquared.schelling.ui.SchellingExplorerConsole;%0Aimport com.solsticesquared.schelling.ui.SchellingExplorerWithUi;%0Aimport sim.display.Console;%0Aimport sim.display.GUIState;%0Aimport sim.engine.SimState;%0A%0Aimport javax.swing.SwingUtilities;%0A%0A
 /**%0A * T
@@ -1172,24 +1172,634 @@
 g%5B%5D args) %7B%0A
+        SwingUtilities.invokeLater(() -%3E %7B%0A            // The random number generation seed.%0A            final long seed = System.currentTimeMillis();%0A%0A            // The underlying Schelling-based model.%0A            final SimState model =%0A                    SchellingExplorerUtils.createTwoGroupModel(seed);%0A            // The user interface.%0A            final GUIState view = new SchellingExplorerWithUi(model);%0A            // The user interface controller.%0A            final Console controller = new SchellingExplorerConsole(view);%0A%0A            // Run.%0A            controller.setVisible(true);%0A        %7D);%0A
     %7D%0A%0A    /

Update application entry point to use custom controller implementation.