From fb492341a1d05590c5230e8e0bd5e48f530944fe Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Tue, 24 Nov 2015 11:15:53 +0100 Subject: Properly set class authors --- src/ch/epfl/maze/graphics/Animation.java | 1 + src/ch/epfl/maze/graphics/Display.java | 2 ++ src/ch/epfl/maze/graphics/GraphicComponent.java | 2 ++ src/ch/epfl/maze/main/Console.java | 2 ++ src/ch/epfl/maze/main/Program.java | 2 ++ src/ch/epfl/maze/physical/Animal.java | 1 + src/ch/epfl/maze/physical/Daedalus.java | 1 + src/ch/epfl/maze/physical/Maze.java | 1 + src/ch/epfl/maze/physical/Predator.java | 1 + src/ch/epfl/maze/physical/Prey.java | 1 + src/ch/epfl/maze/physical/World.java | 1 + src/ch/epfl/maze/physical/pacman/Blinky.java | 1 + src/ch/epfl/maze/physical/pacman/Clyde.java | 1 + src/ch/epfl/maze/physical/pacman/Inky.java | 1 + src/ch/epfl/maze/physical/pacman/PacMan.java | 1 + src/ch/epfl/maze/physical/pacman/Pinky.java | 1 + src/ch/epfl/maze/physical/zoo/Bear.java | 1 + src/ch/epfl/maze/physical/zoo/Hamster.java | 1 + src/ch/epfl/maze/physical/zoo/Monkey.java | 1 + src/ch/epfl/maze/physical/zoo/Mouse.java | 1 + src/ch/epfl/maze/physical/zoo/Panda.java | 1 + src/ch/epfl/maze/physical/zoo/SpaceInvader.java | 1 + src/ch/epfl/maze/simulation/DaedalusSimulation.java | 2 ++ src/ch/epfl/maze/simulation/MazeSimulation.java | 2 ++ src/ch/epfl/maze/simulation/Simulation.java | 2 ++ src/ch/epfl/maze/tests/AnimalTest.java | 2 ++ src/ch/epfl/maze/tests/Competition.java | 2 ++ src/ch/epfl/maze/tests/DaedalusTest.java | 2 ++ src/ch/epfl/maze/tests/GhostsTest.java | 3 +++ src/ch/epfl/maze/tests/MazeTest.java | 2 ++ src/ch/epfl/maze/tests/WorldTest.java | 2 ++ src/ch/epfl/maze/tests/ZooTest.java | 3 +++ src/ch/epfl/maze/util/Action.java | 2 ++ src/ch/epfl/maze/util/Direction.java | 1 + src/ch/epfl/maze/util/LabyrinthGenerator.java | 2 ++ src/ch/epfl/maze/util/Statistics.java | 2 ++ src/ch/epfl/maze/util/Vector2D.java | 3 +++ 37 files changed, 58 insertions(+) (limited to 'src') diff --git a/src/ch/epfl/maze/graphics/Animation.java b/src/ch/epfl/maze/graphics/Animation.java index a00b6b2..497d417 100644 --- a/src/ch/epfl/maze/graphics/Animation.java +++ b/src/ch/epfl/maze/graphics/Animation.java @@ -20,6 +20,7 @@ import java.util.TreeMap; * Handles the animation of a {@code Simulation} by extrapolating the positions * of animals. * + * @author EPFL * @author Pacien TRAN-GIRARD */ public final class Animation { diff --git a/src/ch/epfl/maze/graphics/Display.java b/src/ch/epfl/maze/graphics/Display.java index baacefa..a0c37f4 100644 --- a/src/ch/epfl/maze/graphics/Display.java +++ b/src/ch/epfl/maze/graphics/Display.java @@ -16,6 +16,8 @@ import java.util.Map; /** * Handles the display of a {@code Simulation} on a window. + * + * @author EPFL */ public final class Display implements Runnable { diff --git a/src/ch/epfl/maze/graphics/GraphicComponent.java b/src/ch/epfl/maze/graphics/GraphicComponent.java index 44b4b1f..e63b145 100644 --- a/src/ch/epfl/maze/graphics/GraphicComponent.java +++ b/src/ch/epfl/maze/graphics/GraphicComponent.java @@ -12,6 +12,8 @@ import java.awt.image.ImageObserver; /** * Graphic component of an animal that will be drawn by an {@link Animation}. + * + * @author EPFL */ public final class GraphicComponent { diff --git a/src/ch/epfl/maze/main/Console.java b/src/ch/epfl/maze/main/Console.java index 931bec4..0c273e1 100644 --- a/src/ch/epfl/maze/main/Console.java +++ b/src/ch/epfl/maze/main/Console.java @@ -21,6 +21,8 @@ import java.util.Map; /** * Mini-project main program that will run the simulations multiple times and * show statistics on the console. + * + * @author EPFL */ public class Console { diff --git a/src/ch/epfl/maze/main/Program.java b/src/ch/epfl/maze/main/Program.java index 043f7e5..347eace 100644 --- a/src/ch/epfl/maze/main/Program.java +++ b/src/ch/epfl/maze/main/Program.java @@ -16,6 +16,8 @@ import ch.epfl.maze.util.Vector2D; /** * Mini-project main program that will run the simulations on a {@code Display}. + * + * @author EPFL */ public class Program { diff --git a/src/ch/epfl/maze/physical/Animal.java b/src/ch/epfl/maze/physical/Animal.java index 0079d11..3697c32 100644 --- a/src/ch/epfl/maze/physical/Animal.java +++ b/src/ch/epfl/maze/physical/Animal.java @@ -7,6 +7,7 @@ import ch.epfl.maze.util.Vector2D; * Animal inside a {@code World} that can move depending on the available * choices it has at its position. * + * @author EPFL * @author Pacien TRAN-GIRARD */ abstract public class Animal { diff --git a/src/ch/epfl/maze/physical/Daedalus.java b/src/ch/epfl/maze/physical/Daedalus.java index 8018b66..4670064 100644 --- a/src/ch/epfl/maze/physical/Daedalus.java +++ b/src/ch/epfl/maze/physical/Daedalus.java @@ -9,6 +9,7 @@ import java.util.stream.Stream; * Daedalus in which predators hunt preys. Once a prey has been caught by a * predator, it will be removed from the daedalus. * + * @author EPFL * @author Pacien TRAN-GIRARD */ public final class Daedalus extends World { diff --git a/src/ch/epfl/maze/physical/Maze.java b/src/ch/epfl/maze/physical/Maze.java index 51b9811..d3ba645 100644 --- a/src/ch/epfl/maze/physical/Maze.java +++ b/src/ch/epfl/maze/physical/Maze.java @@ -8,6 +8,7 @@ import java.util.List; * Every animal added will have its position set to the starting point. The * animal is removed from the maze when it finds the exit. * + * @author EPFL * @author Pacien TRAN-GIRARD */ public final class Maze extends World { diff --git a/src/ch/epfl/maze/physical/Predator.java b/src/ch/epfl/maze/physical/Predator.java index 7d30ce6..0b20ca0 100644 --- a/src/ch/epfl/maze/physical/Predator.java +++ b/src/ch/epfl/maze/physical/Predator.java @@ -6,6 +6,7 @@ import ch.epfl.maze.util.Vector2D; /** * Predator that kills a prey when they meet with each other in the labyrinth. * + * @author EPFL * @author Pacien TRAN-GIRARD */ abstract public class Predator extends ProbabilisticAnimal { diff --git a/src/ch/epfl/maze/physical/Prey.java b/src/ch/epfl/maze/physical/Prey.java index 1f5225f..26fe92b 100644 --- a/src/ch/epfl/maze/physical/Prey.java +++ b/src/ch/epfl/maze/physical/Prey.java @@ -6,6 +6,7 @@ import ch.epfl.maze.util.Vector2D; /** * Prey that is killed by a predator when they meet each other in the labyrinth. * + * @author EPFL * @author Pacien TRAN-GIRARD */ abstract public class Prey extends ProbabilisticAnimal { diff --git a/src/ch/epfl/maze/physical/World.java b/src/ch/epfl/maze/physical/World.java index 9afbd5e..7d33472 100644 --- a/src/ch/epfl/maze/physical/World.java +++ b/src/ch/epfl/maze/physical/World.java @@ -10,6 +10,7 @@ import java.util.List; * World that is represented by a labyrinth of tiles in which an {@code Animal} * can move. * + * @author EPFL * @author Pacien TRAN-GIRARD */ public abstract class World { diff --git a/src/ch/epfl/maze/physical/pacman/Blinky.java b/src/ch/epfl/maze/physical/pacman/Blinky.java index b3ac64e..4e8c4a0 100644 --- a/src/ch/epfl/maze/physical/pacman/Blinky.java +++ b/src/ch/epfl/maze/physical/pacman/Blinky.java @@ -8,6 +8,7 @@ import ch.epfl.maze.util.Vector2D; /** * Red ghost from the Pac-Man game, chases directly its target. * + * @author EPFL * @author Pacien TRAN-GIRARD */ public class Blinky extends GhostPredator { diff --git a/src/ch/epfl/maze/physical/pacman/Clyde.java b/src/ch/epfl/maze/physical/pacman/Clyde.java index 7e8bdd7..40089db 100644 --- a/src/ch/epfl/maze/physical/pacman/Clyde.java +++ b/src/ch/epfl/maze/physical/pacman/Clyde.java @@ -9,6 +9,7 @@ import ch.epfl.maze.util.Vector2D; * Orange ghost from the Pac-Man game, alternates between direct chase if far * from its target and SCATTER if close. * + * @author EPFL * @author Pacien TRAN-GIRARD */ public class Clyde extends GhostPredator { diff --git a/src/ch/epfl/maze/physical/pacman/Inky.java b/src/ch/epfl/maze/physical/pacman/Inky.java index de0466d..05c712c 100644 --- a/src/ch/epfl/maze/physical/pacman/Inky.java +++ b/src/ch/epfl/maze/physical/pacman/Inky.java @@ -11,6 +11,7 @@ import java.util.NoSuchElementException; * Blue ghost from the Pac-Man game, targets the result of two times the vector * from Blinky to its target. * + * @author EPFL * @author Pacien TRAN-GIRARD */ public class Inky extends GhostPredator { diff --git a/src/ch/epfl/maze/physical/pacman/PacMan.java b/src/ch/epfl/maze/physical/pacman/PacMan.java index ee1ee28..6ec7436 100644 --- a/src/ch/epfl/maze/physical/pacman/PacMan.java +++ b/src/ch/epfl/maze/physical/pacman/PacMan.java @@ -9,6 +9,7 @@ import ch.epfl.maze.util.Vector2D; /** * Pac-Man character, from the famous game of the same name. * + * @author EPFL * @author Pacien TRAN-GIRARD */ public class PacMan extends Prey { diff --git a/src/ch/epfl/maze/physical/pacman/Pinky.java b/src/ch/epfl/maze/physical/pacman/Pinky.java index 9c3d2c8..f3e145d 100644 --- a/src/ch/epfl/maze/physical/pacman/Pinky.java +++ b/src/ch/epfl/maze/physical/pacman/Pinky.java @@ -9,6 +9,7 @@ import ch.epfl.maze.util.Vector2D; /** * Pink ghost from the Pac-Man game, targets 4 squares in front of its target. * + * @author EPFL * @author Pacien TRAN-GIRARD */ public class Pinky extends GhostPredator { diff --git a/src/ch/epfl/maze/physical/zoo/Bear.java b/src/ch/epfl/maze/physical/zoo/Bear.java index 2ef9215..803b574 100644 --- a/src/ch/epfl/maze/physical/zoo/Bear.java +++ b/src/ch/epfl/maze/physical/zoo/Bear.java @@ -11,6 +11,7 @@ import java.util.List; /** * Bear A.I. that implements the Pledge Algorithm. * + * @author EPFL * @author Pacien TRAN-GIRARD */ public class Bear extends Animal { diff --git a/src/ch/epfl/maze/physical/zoo/Hamster.java b/src/ch/epfl/maze/physical/zoo/Hamster.java index 7fa0b0d..150880c 100644 --- a/src/ch/epfl/maze/physical/zoo/Hamster.java +++ b/src/ch/epfl/maze/physical/zoo/Hamster.java @@ -14,6 +14,7 @@ import java.util.stream.Collectors; * Hamster A.I. that remembers the previous choice it has made and the dead ends * it has already met. * + * @author EPFL * @author Pacien TRAN-GIRARD */ public class Hamster extends ProbabilisticAnimal { diff --git a/src/ch/epfl/maze/physical/zoo/Monkey.java b/src/ch/epfl/maze/physical/zoo/Monkey.java index 196b028..119781c 100644 --- a/src/ch/epfl/maze/physical/zoo/Monkey.java +++ b/src/ch/epfl/maze/physical/zoo/Monkey.java @@ -11,6 +11,7 @@ import java.util.List; /** * Monkey A.I. that puts its hand on the left wall and follows it. * + * @author EPFL * @author Pacien TRAN-GIRARD */ public class Monkey extends Animal { diff --git a/src/ch/epfl/maze/physical/zoo/Mouse.java b/src/ch/epfl/maze/physical/zoo/Mouse.java index 08d7f3d..f7084d7 100644 --- a/src/ch/epfl/maze/physical/zoo/Mouse.java +++ b/src/ch/epfl/maze/physical/zoo/Mouse.java @@ -7,6 +7,7 @@ import ch.epfl.maze.util.Vector2D; /** * Mouse A.I. that remembers only the previous choice it has made. * + * @author EPFL * @author Pacien TRAN-GIRARD */ public class Mouse extends ProbabilisticAnimal { diff --git a/src/ch/epfl/maze/physical/zoo/Panda.java b/src/ch/epfl/maze/physical/zoo/Panda.java index aa35efe..b794d10 100644 --- a/src/ch/epfl/maze/physical/zoo/Panda.java +++ b/src/ch/epfl/maze/physical/zoo/Panda.java @@ -13,6 +13,7 @@ import java.util.stream.Collectors; /** * Panda A.I. that implements Trémeaux's Algorithm. * + * @author EPFL * @author Pacien TRAN-GIRARD */ public class Panda extends ProbabilisticAnimal { diff --git a/src/ch/epfl/maze/physical/zoo/SpaceInvader.java b/src/ch/epfl/maze/physical/zoo/SpaceInvader.java index d03d280..3fd0513 100644 --- a/src/ch/epfl/maze/physical/zoo/SpaceInvader.java +++ b/src/ch/epfl/maze/physical/zoo/SpaceInvader.java @@ -17,6 +17,7 @@ import ch.epfl.maze.util.Vector2D; * The way we measure efficiency is made by the test case {@code Competition}. * * @see ch.epfl.maze.tests.Competition Competition + * @author EPFL */ public class SpaceInvader extends Animal { diff --git a/src/ch/epfl/maze/simulation/DaedalusSimulation.java b/src/ch/epfl/maze/simulation/DaedalusSimulation.java index 90ff4a7..3a8bf64 100644 --- a/src/ch/epfl/maze/simulation/DaedalusSimulation.java +++ b/src/ch/epfl/maze/simulation/DaedalusSimulation.java @@ -12,6 +12,8 @@ import java.util.*; * Simulation of a predation environment. Handles the next moves of every * predator and prey in a Daedalus, as well as the animation by notifying * changes to it. The simulation finishes when every prey has been caught. + * + * @author EPFL */ public final class DaedalusSimulation implements Simulation { diff --git a/src/ch/epfl/maze/simulation/MazeSimulation.java b/src/ch/epfl/maze/simulation/MazeSimulation.java index 2108f54..0288353 100644 --- a/src/ch/epfl/maze/simulation/MazeSimulation.java +++ b/src/ch/epfl/maze/simulation/MazeSimulation.java @@ -17,6 +17,8 @@ import java.util.TreeMap; * Simulation of a maze solver. Handles the next move of each animal, as well as * the animation by notifying the changes to it. The simulation finishes when * every animal has found the exit. + * + * @author EPFL */ public final class MazeSimulation implements Simulation { diff --git a/src/ch/epfl/maze/simulation/Simulation.java b/src/ch/epfl/maze/simulation/Simulation.java index d373d2f..1c3bf51 100644 --- a/src/ch/epfl/maze/simulation/Simulation.java +++ b/src/ch/epfl/maze/simulation/Simulation.java @@ -10,6 +10,8 @@ import java.util.Map; /** * The {@code Simulation} interface defines a set of rules that must be * fulfilled in order to be displayed. + * + * @author EPFL */ public interface Simulation { diff --git a/src/ch/epfl/maze/tests/AnimalTest.java b/src/ch/epfl/maze/tests/AnimalTest.java index 123c038..67c27e5 100644 --- a/src/ch/epfl/maze/tests/AnimalTest.java +++ b/src/ch/epfl/maze/tests/AnimalTest.java @@ -8,6 +8,8 @@ import org.junit.Test; /** * Test case for {@code Animal} implementation. + * + * @author EPFL */ public class AnimalTest extends TestCase { diff --git a/src/ch/epfl/maze/tests/Competition.java b/src/ch/epfl/maze/tests/Competition.java index 10a6c84..188570f 100644 --- a/src/ch/epfl/maze/tests/Competition.java +++ b/src/ch/epfl/maze/tests/Competition.java @@ -30,6 +30,8 @@ import static org.junit.Assert.assertTrue; * winner against one animal if it obtained a positive score in the rivalry * against it. * + * + * @author EPFL */ public class Competition { diff --git a/src/ch/epfl/maze/tests/DaedalusTest.java b/src/ch/epfl/maze/tests/DaedalusTest.java index 6087338..fdca847 100644 --- a/src/ch/epfl/maze/tests/DaedalusTest.java +++ b/src/ch/epfl/maze/tests/DaedalusTest.java @@ -12,6 +12,8 @@ import org.junit.Test; /** * Test case for {@code Daedalus} implementation. + * + * @author EPFL */ public class DaedalusTest extends TestCase { diff --git a/src/ch/epfl/maze/tests/GhostsTest.java b/src/ch/epfl/maze/tests/GhostsTest.java index f4e0c2e..2195443 100644 --- a/src/ch/epfl/maze/tests/GhostsTest.java +++ b/src/ch/epfl/maze/tests/GhostsTest.java @@ -18,6 +18,9 @@ import org.junit.Test; /** * Test suite for ghosts implementation. + * + * @author EPFL + * @author Pacien TRAN-GIRARD */ public class GhostsTest extends TestCase { diff --git a/src/ch/epfl/maze/tests/MazeTest.java b/src/ch/epfl/maze/tests/MazeTest.java index 52651e1..8de3dbb 100644 --- a/src/ch/epfl/maze/tests/MazeTest.java +++ b/src/ch/epfl/maze/tests/MazeTest.java @@ -9,6 +9,8 @@ import org.junit.Test; /** * Test case for {@code Maze} implementation. + * + * @author EPFL */ public class MazeTest extends TestCase { diff --git a/src/ch/epfl/maze/tests/WorldTest.java b/src/ch/epfl/maze/tests/WorldTest.java index 845c689..7428ba6 100644 --- a/src/ch/epfl/maze/tests/WorldTest.java +++ b/src/ch/epfl/maze/tests/WorldTest.java @@ -14,6 +14,8 @@ import static org.junit.Assert.assertArrayEquals; /** * Test case for {@code World} implementation. + * + * @author EPFL */ public class WorldTest extends TestCase { diff --git a/src/ch/epfl/maze/tests/ZooTest.java b/src/ch/epfl/maze/tests/ZooTest.java index 03a84b3..c0daa61 100644 --- a/src/ch/epfl/maze/tests/ZooTest.java +++ b/src/ch/epfl/maze/tests/ZooTest.java @@ -11,6 +11,9 @@ import org.junit.Test; /** * Test cases for animals implementation. + * + * @author EPFL + * @author Pacien TRAN-GIRARD */ public class ZooTest extends TestCase { diff --git a/src/ch/epfl/maze/util/Action.java b/src/ch/epfl/maze/util/Action.java index 069f135..6634293 100644 --- a/src/ch/epfl/maze/util/Action.java +++ b/src/ch/epfl/maze/util/Action.java @@ -4,6 +4,8 @@ package ch.epfl.maze.util; * Immutable action that encapsulates a choice made by an animal and information * about it, such as if it was successful or not, and if the animal will die * while performing it. + * + * @author EPFL */ public final class Action { diff --git a/src/ch/epfl/maze/util/Direction.java b/src/ch/epfl/maze/util/Direction.java index d2ee4e7..ac172cb 100644 --- a/src/ch/epfl/maze/util/Direction.java +++ b/src/ch/epfl/maze/util/Direction.java @@ -5,6 +5,7 @@ package ch.epfl.maze.util; * points ({@code DOWN, UP, RIGHT, LEFT}) from the frame of reference of the * labyrinth, plus a default one : {@code NONE}. * + * @author EPFL * @author Pacien TRAN-GIRARD */ public enum Direction { diff --git a/src/ch/epfl/maze/util/LabyrinthGenerator.java b/src/ch/epfl/maze/util/LabyrinthGenerator.java index 9e47c25..f753173 100644 --- a/src/ch/epfl/maze/util/LabyrinthGenerator.java +++ b/src/ch/epfl/maze/util/LabyrinthGenerator.java @@ -9,6 +9,8 @@ import java.util.regex.Pattern; /** * Generates a set of pre-computed labyrinth structures + * + * @author EPFL */ public final class LabyrinthGenerator { diff --git a/src/ch/epfl/maze/util/Statistics.java b/src/ch/epfl/maze/util/Statistics.java index 3928859..b7e4d86 100644 --- a/src/ch/epfl/maze/util/Statistics.java +++ b/src/ch/epfl/maze/util/Statistics.java @@ -7,6 +7,8 @@ import java.util.*; /** * Utility class that allows to compute statistics on a list of results. + * + * @author EPFL */ public final class Statistics { diff --git a/src/ch/epfl/maze/util/Vector2D.java b/src/ch/epfl/maze/util/Vector2D.java index 52e1e55..2c0a911 100644 --- a/src/ch/epfl/maze/util/Vector2D.java +++ b/src/ch/epfl/maze/util/Vector2D.java @@ -2,6 +2,9 @@ package ch.epfl.maze.util; /** * Immutable 2-dimensional vector (x, y). + * + * @author EPFL + * @author Pacien TRAN-GIRARD */ public final class Vector2D { -- cgit v1.2.3