diff options
Diffstat (limited to 'src/ch/epfl/maze/simulation/Simulation.java')
-rw-r--r-- | src/ch/epfl/maze/simulation/Simulation.java | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/ch/epfl/maze/simulation/Simulation.java b/src/ch/epfl/maze/simulation/Simulation.java index ab2fb84..d373d2f 100644 --- a/src/ch/epfl/maze/simulation/Simulation.java +++ b/src/ch/epfl/maze/simulation/Simulation.java | |||
@@ -11,7 +11,6 @@ import java.util.Map; | |||
11 | * The {@code Simulation} interface defines a set of rules that must be | 11 | * The {@code Simulation} interface defines a set of rules that must be |
12 | * fulfilled in order to be displayed. | 12 | * fulfilled in order to be displayed. |
13 | */ | 13 | */ |
14 | |||
15 | public interface Simulation { | 14 | public interface Simulation { |
16 | 15 | ||
17 | /** | 16 | /** |
@@ -21,7 +20,6 @@ public interface Simulation { | |||
21 | * @param listener The listener to which the function will notify the changes | 20 | * @param listener The listener to which the function will notify the changes |
22 | * (can be null) | 21 | * (can be null) |
23 | */ | 22 | */ |
24 | |||
25 | public void move(Animation listener); | 23 | public void move(Animation listener); |
26 | 24 | ||
27 | /** | 25 | /** |
@@ -29,7 +27,6 @@ public interface Simulation { | |||
29 | * | 27 | * |
30 | * @return <b>true</b> if no more moves can be made, <b>false</b> otherwise | 28 | * @return <b>true</b> if no more moves can be made, <b>false</b> otherwise |
31 | */ | 29 | */ |
32 | |||
33 | public boolean isOver(); | 30 | public boolean isOver(); |
34 | 31 | ||
35 | /** | 32 | /** |
@@ -37,7 +34,6 @@ public interface Simulation { | |||
37 | * | 34 | * |
38 | * @return The {@code World} that is being simulated | 35 | * @return The {@code World} that is being simulated |
39 | */ | 36 | */ |
40 | |||
41 | public World getWorld(); | 37 | public World getWorld(); |
42 | 38 | ||
43 | /** | 39 | /** |
@@ -45,7 +41,6 @@ public interface Simulation { | |||
45 | * | 41 | * |
46 | * @return The current step counter | 42 | * @return The current step counter |
47 | */ | 43 | */ |
48 | |||
49 | public int getSteps(); | 44 | public int getSteps(); |
50 | 45 | ||
51 | /** | 46 | /** |
@@ -55,7 +50,6 @@ public interface Simulation { | |||
55 | * @return Map of steps done by animals which have accomplished the | 50 | * @return Map of steps done by animals which have accomplished the |
56 | * simulation | 51 | * simulation |
57 | */ | 52 | */ |
58 | |||
59 | public Map<Integer, List<Animal>> getArrivalTimes(); | 53 | public Map<Integer, List<Animal>> getArrivalTimes(); |
60 | 54 | ||
61 | /** | 55 | /** |
@@ -65,18 +59,16 @@ public interface Simulation { | |||
65 | * @return A {@code String} containing the top 10 animals which have | 59 | * @return A {@code String} containing the top 10 animals which have |
66 | * accomplished the simulation | 60 | * accomplished the simulation |
67 | */ | 61 | */ |
68 | |||
69 | public String getRecordTable(); | 62 | public String getRecordTable(); |
70 | 63 | ||
71 | /** | 64 | /** |
72 | * Restarts the simulation from the beginning. | 65 | * Restarts the simulation from the beginning. |
73 | */ | 66 | */ |
74 | |||
75 | public void restart(); | 67 | public void restart(); |
76 | 68 | ||
77 | /** | 69 | /** |
78 | * Stops abruptly the simulation. | 70 | * Stops abruptly the simulation. |
79 | */ | 71 | */ |
80 | |||
81 | public void stop(); | 72 | public void stop(); |
73 | |||
82 | } | 74 | } |