From 90bd766f361083f6fd9e39ff080c83fcc606832f Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sat, 21 Nov 2015 10:44:42 +0100 Subject: Reformat imported code --- src/ch/epfl/maze/simulation/Simulation.java | 108 ++++++++++++++-------------- 1 file changed, 53 insertions(+), 55 deletions(-) (limited to 'src/ch/epfl/maze/simulation/Simulation.java') diff --git a/src/ch/epfl/maze/simulation/Simulation.java b/src/ch/epfl/maze/simulation/Simulation.java index c3190b3..ab2fb84 100644 --- a/src/ch/epfl/maze/simulation/Simulation.java +++ b/src/ch/epfl/maze/simulation/Simulation.java @@ -1,84 +1,82 @@ package ch.epfl.maze.simulation; -import java.util.List; -import java.util.Map; - import ch.epfl.maze.graphics.Animation; import ch.epfl.maze.physical.Animal; import ch.epfl.maze.physical.World; +import java.util.List; +import java.util.Map; + /** * The {@code Simulation} interface defines a set of rules that must be * fulfilled in order to be displayed. - * */ public interface Simulation { - /** - * Asks the {@code Simulation} to compute the next move and, if specified, - * notifies the changes to the listener. - * - * @param listener - * The listener to which the function will notify the changes - * (can be null) - */ + /** + * Asks the {@code Simulation} to compute the next move and, if specified, + * notifies the changes to the listener. + * + * @param listener The listener to which the function will notify the changes + * (can be null) + */ - public void move(Animation listener); + public void move(Animation listener); - /** - * Determines if the simulation is over. - * - * @return true if no more moves can be made, false otherwise - */ + /** + * Determines if the simulation is over. + * + * @return true if no more moves can be made, false otherwise + */ - public boolean isOver(); + public boolean isOver(); - /** - * Retrieves the current state of the simulated world. - * - * @return The {@code World} that is being simulated - */ + /** + * Retrieves the current state of the simulated world. + * + * @return The {@code World} that is being simulated + */ - public World getWorld(); + public World getWorld(); - /** - * Retrieves the step counter of the {@code Simulation}. - * - * @return The current step counter - */ + /** + * Retrieves the step counter of the {@code Simulation}. + * + * @return The current step counter + */ - public int getSteps(); + public int getSteps(); - /** - * Retrieves the mapping of the steps done by the animals that have finished - * the simulation. - * - * @return Map of steps done by animals which have accomplished the - * simulation - */ + /** + * Retrieves the mapping of the steps done by the animals that have finished + * the simulation. + * + * @return Map of steps done by animals which have accomplished the + * simulation + */ - public Map> getArrivalTimes(); + public Map> getArrivalTimes(); - /** - * Retrieves the record table of the animals that have finished the - * simulation. - * - * @return A {@code String} containing the top 10 animals which have - * accomplished the simulation - */ + /** + * Retrieves the record table of the animals that have finished the + * simulation. + * + * @return A {@code String} containing the top 10 animals which have + * accomplished the simulation + */ - public String getRecordTable(); + public String getRecordTable(); - /** - * Restarts the simulation from the beginning. - */ + /** + * Restarts the simulation from the beginning. + */ - public void restart(); + public void restart(); - /** - * Stops abruptly the simulation. - */ + /** + * Stops abruptly the simulation. + */ - public void stop(); + public void stop(); } -- cgit v1.2.3