diff --git a/README.md b/README.md deleted file mode 100644 index a567783..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Projet_Java -Projet de java IGI452 2015 -Heheee diff --git a/src/NewTrainingEvent.java b/src/NewTrainingEvent.java new file mode 100644 index 0000000..864c098 --- /dev/null +++ b/src/NewTrainingEvent.java @@ -0,0 +1,18 @@ +import java.util.EventObject; +import java.util.GregorianCalendar; + +public class NewTrainingEvent extends EventObject { + + private GregorianCalendar date; + private String nom_sportif; + private int Creneau; + + public NewTrainingEvent(Object arg0, GregorianCalendar date, String nom_sportif, int Creneau){ + super(arg0); + + this.date = date; + this.nom_sportif = nom_sportif; + this.Creneau = Creneau; + } + +} diff --git a/src/main.java b/src/main.java index 665eca8..df0d1e5 100644 --- a/src/main.java +++ b/src/main.java @@ -1,4 +1,22 @@ public class main { - + static public void main(String [] args){ + Velo v1 = new Velo(28,02,2015,11,30,100,90, 120); +// v1.affiche(); + + Course c1 = new Course(1,03,2015,20,00,10,180, "Montagne", "Pluie"); +// c1.affiche(); + + Course c2 = new Course(3,05,2015,06,30,20,300,"Plage", "Soleil"); + + Agenda MyAgenda = new Agenda(); + MyAgenda.add(c1); + MyAgenda.add(v1); + MyAgenda.add(c2); + + MyAgenda.affiche(1); + MyAgenda.longueseance().affiche(); + MyAgenda.courteseance().affiche(); + MyAgenda.distanceDsplne("course"); + } }