Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dev-qu
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hugo Debuyser
dev-qu
Commits
3d69feca
Commit
3d69feca
authored
1 year ago
by
Hugo Debuyser
Browse files
Options
Downloads
Patches
Plain Diff
Création du fichier Event.java
parent
e954360b
No related branches found
No related tags found
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/tpQU/tp02/Event.java
+38
-0
38 additions, 0 deletions
src/tpQU/tp02/Event.java
with
38 additions
and
0 deletions
src/tpQU/tp02/Event.java
0 → 100644
+
38
−
0
View file @
3d69feca
import
tpOO.tp03.Task
;
import
tpOO.tp03.TaskStatus
;
import
tpOO.tp03.ToDoList
;
import
java.time.*
;
import
java.util.*
;
/**
* Un évènement est un fait qui survient à un moment donné, et pour une certaine durée.
* @author Hugo D
*/
public
class
Event
{
/*** Attribut label pour la classe*/
private
String
label
;
/*** Attribut place pour la classe */
private
String
place
;
/***Attribut start pour la classe */
private
LocalDate
start
;
/***Attribut end pour la classe */
private
LocalDate
end
;
/***Liste de tache de type ToDoList */
private
ToDoList
tasks
;
/**
* Constructeur de la classe Event avec les attributs suivants :
* @param label Attribut label de la classe
* @param place Attribut place de la classe
* @param start Attribut start de la classe
* @param end Attribut end de la classe
* @param tasks Nouvelle tache assigné à la classe
*/
public
Event
(
String
label
,
String
place
,
LocalDate
start
,
LocalDate
end
,
ToDoList
tasks
){
this
.
label
=
label
;
this
.
place
=
place
;
this
.
start
=
start
;
this
.
end
=
end
;
this
.
tasks
=
tasks
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment