TP2: add class annotations.
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 5 Apr 2018 21:39:46 +0000 (23:39 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 5 Apr 2018 21:39:46 +0000 (23:39 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
TP2/Cercle.java
TP2/ClassPreamble.java [new file with mode: 0644]
TP2/Entiers.java
TP2/Forme.java
TP2/Image.java
TP2/Liste.java
TP2/Makefile
TP2/Piletransformations.java
TP2/Point.java
TP2/Segment.java
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;
 
 class Cercle extends Forme {
     private double rayon;
 
diff --git a/TP2/ClassPreamble.java b/TP2/ClassPreamble.java
new file mode 100644 (file)
index 0000000..523ea4f
--- /dev/null
@@ -0,0 +1,13 @@
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+
+@Retention(RetentionPolicy.RUNTIME)
+@Documented
+public @interface ClassPreamble {
+   String author();
+   String date();
+   int currentRevision() default 1;
+   String lastModified() default "N/A";
+   String lastModifiedBy() default "N/A";
+}
index 602ec8f573cda8a2de272e71a5ea58109c8d6a4e..b11f364ac9016a23dd947448f9e459dd6e753d06 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;
 class Entiers extends Structure {
     private int int_array[];
     private int array_size;
@@ -112,5 +116,4 @@ class Entiers extends Structure {
             current_size = 0;
         }
     }
             current_size = 0;
         }
     }
-
 }
 }
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;
 
 public abstract class Forme implements Affichable {
     private Point pOri;
 
index 65d0929e69f9cadae3daa7096ad43b3f9d5d2edf..c2b0b84d7f758b70e7bcc0d66675bf954ec9ba64 100644 (file)
@@ -1,5 +1,9 @@
 import java.util.Comparator;
 
 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> {
 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 {
 public class Liste extends Structure {
 
     private class IntNode {
index d8fc6bd9dfaccc05f8f1d4b91bfd898a609efb5b..849e82a46fa7f130e2172acacb1791a8457cd723 100644 (file)
@@ -46,6 +46,7 @@ JVM = java
 # NAME = Camilo        Juan
 
 CLASSES = \
 # NAME = Camilo        Juan
 
 CLASSES = \
+               ClassPreamble.java \
                Compactable.java \
                Affichable.java \
                Structure.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;
 class Piletransformations {
     private Point[] transformations;
     private int currentTransformation;
index 5a591c6e03049979f35547329becc0bf246f1bd0..89382d521e57f9bc6479bc0006a69d9c10eaf961 100644 (file)
@@ -1,11 +1,15 @@
 
 
+@ClassPreamble (
+    author = "Jérôme Benoit",
+    date = "11/02/2012"
+)
 class Point {
     private double x;
     private double y;
 
     Point() {
         /*
 class Point {
     private double x;
     private double y;
 
     Point() {
         /*
-         * FIXME: init to (0,0)?
+         * FIXME?: init to (0,0)
          */
     }
 
          */
     }
 
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;
 
 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);
 public abstract class Structure implements Affichable, Compactable {
 
     public abstract boolean inserer(int value);