exo4: add ClassPreamble class annotation.
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 5 Apr 2018 09:36:18 +0000 (11:36 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 5 Apr 2018 09:36:18 +0000 (11:36 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
exo4/TP2/Cercle.java
exo4/TP2/ClassPreamble.java [new file with mode: 0644]
exo4/TP2/Entiers.java
exo4/TP2/Forme.java
exo4/TP2/Image.java
exo4/TP2/Liste.java
exo4/TP2/Makefile
exo4/TP2/Piletransformations.java
exo4/TP2/Point.java
exo4/TP2/Segment.java
exo4/TP2/Structure.java

index 68e62891de11e4f2e1566a5130ab9c03c9450364..ba4e103e8ff5670294aea770fccd2ef67343dd8c 100644 (file)
@@ -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 (file)
index 0000000..59c7fd9
--- /dev/null
@@ -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";
+}
index 602ec8f573cda8a2de272e71a5ea58109c8d6a4e..83d983f8429e87604f1bfcbc9be39d986ea7f8fd 100644 (file)
@@ -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;
index c90aa31275f2e37ba48b84f01c205187c92489f1..cdef6b5da1443e4c3ebc9c579fbd48c7956050f2 100644 (file)
@@ -1,4 +1,8 @@
 
+@ClassPreamble (
+    author = "Jérôme Benoit",
+    date = "11/17/2008"
+)
 public abstract class Forme implements Affichable {
     private Point pOri;
 
index 65d0929e69f9cadae3daa7096ad43b3f9d5d2edf..c2b0b84d7f758b70e7bcc0d66675bf954ec9ba64 100644 (file)
@@ -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<Image>,
                                             Comparator<Image> {
index e042612b15c0f8abdf4bcc32e8bf48ea3829c14b..6928b00737e0656548f61f6b49cc791812f80b77 100644 (file)
@@ -1,5 +1,8 @@
 
-
+@ClassPreamble (
+    author = "Jérôme Benoit",
+    date = "05/12/2011"
+)
 public class Liste extends Structure {
 
     private class IntNode {
index d8fc6bd9dfaccc05f8f1d4b91bfd898a609efb5b..849e82a46fa7f130e2172acacb1791a8457cd723 100644 (file)
@@ -46,6 +46,7 @@ JVM = java
 # NAME = Camilo        Juan
 
 CLASSES = \
+               ClassPreamble.java \
                Compactable.java \
                Affichable.java \
                Structure.java \
index 5e53ddd7e3500a9fe421ab290b388a4478658075..2d7874ca46b8154883c59c3572f96d0f055847e6 100644 (file)
@@ -1,4 +1,8 @@
 
+@ClassPreamble (
+    author = "Jérôme Benoit",
+    date = "06/21/2009"
+)
 class Piletransformations {
     private Point[] transformations;
     private int currentTransformation;
index 13ce27ffb219f204b2b97494ab1a4475b103edfa..89382d521e57f9bc6479bc0006a69d9c10eaf961 100644 (file)
@@ -1,4 +1,8 @@
 
+@ClassPreamble (
+    author = "Jérôme Benoit",
+    date = "11/02/2012"
+)
 class Point {
     private double x;
     private double y;
index 2ec075c659db70f7720fe77fa39b60c62f0ef98f..40101203e21eefa30eb6dc4ee9cd315082a6f2b3 100644 (file)
@@ -1,4 +1,8 @@
 
+@ClassPreamble (
+    author = "Jérôme Benoit",
+    date = "04/25/2014"
+)
 class Segment extends Forme {
     private Point pDest;
 
index 7c1ce9f3eaf9594ee90f81754045f5e08fb76838..617eba23cd84b78ec2772e713a6db6bfc391d5ea 100644 (file)
@@ -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);