@@ -0,0 +1,1644 @@
+/*%0A * Copyright 2016 Will Knez %3Cwbknez.dev@gmail.com%3E%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage com.solsticesquared.schelling.dynamics;%0A%0Aimport com.solsticesquared.schelling.move.MovementMethod;%0A%0A/**%0A * Represents a mechanism for defining the types of dynamics (both allowed%0A * and to use) for an arbitrary simulation.%0A */%0Apublic interface SimulationDynamics %7B%0A%0A    /**%0A     * Returns whether or not the dynamics of a simulation allow empty cells%0A     * in the simulation space.%0A     *%0A     * @return Whether or not empty cells are allowed.%0A     */%0A    boolean allowsEmptyCells();%0A%0A    /**%0A     * Returns whether or not the dynamics of a simulation allow a %22happy%22%0A     * agent to search for a new location whose utility is the same as her%0A     * current neighborhood.%0A     *%0A     * @return Whether or not %22happy%22 agents may relocate.%0A     */%0A    boolean allowsHappyAgentRelocation();%0A%0A    /**%0A     * Returns the %7B@link MovementMethod%7D that represents how agents may move%0A     * around a simulation.%0A     *%0A     * @return How agents may move in a simulation space.%0A     */%0A    MovementMethod getMovementMethod();%0A%7D%0A

Add mechanism for defining simulation dynamics.