From: Jérôme Benoit Date: Thu, 5 Apr 2018 09:36:18 +0000 (+0200) Subject: exo4: add ClassPreamble class annotation. X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=2b29b63e80b9df1d9dfeb952a804a1dd4c3fa3bf;p=Project_POO.git exo4: add ClassPreamble class annotation. Signed-off-by: Jérôme Benoit --- diff --git a/exo4/TP2/Cercle.java b/exo4/TP2/Cercle.java index 68e6289..ba4e103 100644 --- a/exo4/TP2/Cercle.java +++ b/exo4/TP2/Cercle.java @@ -1,4 +1,8 @@ +@ClassPreamble ( + author = "Jérôme Benoit", + date = "01/03/2001" +) class Cercle extends Forme { private double rayon; diff --git a/exo4/TP2/ClassPreamble.java b/exo4/TP2/ClassPreamble.java new file mode 100644 index 0000000..59c7fd9 --- /dev/null +++ b/exo4/TP2/ClassPreamble.java @@ -0,0 +1,10 @@ +import java.lang.annotation.Documented; + +@Documented +public @interface ClassPreamble { + String author(); + String date(); + int currentRevision() default 1; + String lastModified() default "N/A"; + String lastModifiedBy() default "N/A"; +} diff --git a/exo4/TP2/Entiers.java b/exo4/TP2/Entiers.java index 602ec8f..83d983f 100644 --- a/exo4/TP2/Entiers.java +++ b/exo4/TP2/Entiers.java @@ -1,4 +1,8 @@ +@ClassPreamble ( + author = "Jérôme Benoit", + date = "05/03/2009" +) class Entiers extends Structure { private int int_array[]; private int array_size; diff --git a/exo4/TP2/Forme.java b/exo4/TP2/Forme.java index c90aa31..cdef6b5 100644 --- a/exo4/TP2/Forme.java +++ b/exo4/TP2/Forme.java @@ -1,4 +1,8 @@ +@ClassPreamble ( + author = "Jérôme Benoit", + date = "11/17/2008" +) public abstract class Forme implements Affichable { private Point pOri; diff --git a/exo4/TP2/Image.java b/exo4/TP2/Image.java index 65d0929..c2b0b84 100644 --- a/exo4/TP2/Image.java +++ b/exo4/TP2/Image.java @@ -1,5 +1,9 @@ import java.util.Comparator; +@ClassPreamble ( + author = "Jérôme Benoit", + date = "09/11/2009" +) public class Image extends Forme implements Compactable, Comparable, Comparator { diff --git a/exo4/TP2/Liste.java b/exo4/TP2/Liste.java index e042612..6928b00 100644 --- a/exo4/TP2/Liste.java +++ b/exo4/TP2/Liste.java @@ -1,5 +1,8 @@ - +@ClassPreamble ( + author = "Jérôme Benoit", + date = "05/12/2011" +) public class Liste extends Structure { private class IntNode { diff --git a/exo4/TP2/Makefile b/exo4/TP2/Makefile index d8fc6bd..849e82a 100644 --- a/exo4/TP2/Makefile +++ b/exo4/TP2/Makefile @@ -46,6 +46,7 @@ JVM = java # NAME = Camilo Juan CLASSES = \ + ClassPreamble.java \ Compactable.java \ Affichable.java \ Structure.java \ diff --git a/exo4/TP2/Piletransformations.java b/exo4/TP2/Piletransformations.java index 5e53ddd..2d7874c 100644 --- a/exo4/TP2/Piletransformations.java +++ b/exo4/TP2/Piletransformations.java @@ -1,4 +1,8 @@ +@ClassPreamble ( + author = "Jérôme Benoit", + date = "06/21/2009" +) class Piletransformations { private Point[] transformations; private int currentTransformation; diff --git a/exo4/TP2/Point.java b/exo4/TP2/Point.java index 13ce27f..89382d5 100644 --- a/exo4/TP2/Point.java +++ b/exo4/TP2/Point.java @@ -1,4 +1,8 @@ +@ClassPreamble ( + author = "Jérôme Benoit", + date = "11/02/2012" +) class Point { private double x; private double y; diff --git a/exo4/TP2/Segment.java b/exo4/TP2/Segment.java index 2ec075c..4010120 100644 --- a/exo4/TP2/Segment.java +++ b/exo4/TP2/Segment.java @@ -1,4 +1,8 @@ +@ClassPreamble ( + author = "Jérôme Benoit", + date = "04/25/2014" +) class Segment extends Forme { private Point pDest; diff --git a/exo4/TP2/Structure.java b/exo4/TP2/Structure.java index 7c1ce9f..617eba2 100644 --- a/exo4/TP2/Structure.java +++ b/exo4/TP2/Structure.java @@ -1,4 +1,8 @@ +@ClassPreamble ( + author = "Jérôme Benoit", + date = "05/02/2009" +) public abstract class Structure implements Affichable, Compactable { public abstract boolean inserer(int value);