From 304984893127ca390542ae4d8eca7f12efa456a3 Mon Sep 17 00:00:00 2001 From: Minh VU Date: Thu, 10 Oct 2024 10:41:27 +0200 Subject: [PATCH] push src --- .idea/workspace.xml | 51 ++++++++++++++++++++++++++++++++++++++++++ src/Category.java | 13 +++++++++++ src/Configuration.java | 43 +++++++++++++++++++++++++++++++++++ src/PartType.java | 20 +++++++++++++++++ 4 files changed, 127 insertions(+) create mode 100644 .idea/workspace.xml create mode 100644 src/Category.java create mode 100644 src/Configuration.java create mode 100644 src/PartType.java diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..9b8edce --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + 1728547786554 + + + + \ No newline at end of file diff --git a/src/Category.java b/src/Category.java new file mode 100644 index 0000000..5192653 --- /dev/null +++ b/src/Category.java @@ -0,0 +1,13 @@ +package src; + +public class Category implements fr.istic.nplouzeau.cartaylor.api.Category { + private String name; + + public Category(String name){ + this.name= name; + } + + public String getName(){ + return this.name; + } +} diff --git a/src/Configuration.java b/src/Configuration.java new file mode 100644 index 0000000..744ae13 --- /dev/null +++ b/src/Configuration.java @@ -0,0 +1,43 @@ +package src.; + +import fr.istic.nplouzeau.cartaylor.api.Category; +import fr.istic.nplouzeau.cartaylor.api.PartType; + +import java.util.Set; + +public class Configuration implements fr.istic.nplouzeau.cartaylor.api.Configuration { + @Override + public boolean isValid() { + return false; + } + + @Override + public boolean isComplete() { + return false; + } + + @Override + public Set getSelectedParts() { + return Set.of(); + } + + @Override + public void selectPart(PartType chosenPart) { + + } + + @Override + public PartType getSelectionForCategory(Category category) { + return null; + } + + @Override + public void unselectPartType(Category categoryToClear) { + + } + + @Override + public void clear() { + + } +} diff --git a/src/PartType.java b/src/PartType.java new file mode 100644 index 0000000..e4accc8 --- /dev/null +++ b/src/PartType.java @@ -0,0 +1,20 @@ +package src; +import fr.istic.nplouzeau.cartaylor.api.PartType; + +public class PartType implements fr.istic.nplouzeau.cartaylor.api.PartType { + private String name; + private Category category; + + public PartType(String name, Category category ) { + this.name = name; + this.category = category; + } + + public String getName(){ + return this.name; + } + + public Category getCategory(){ + return + } +}