This commit is contained in:
Minh VU
2024-10-10 10:41:27 +02:00
parent 01ff7abe04
commit 3049848931
4 changed files with 127 additions and 0 deletions

13
src/Category.java Normal file
View File

@@ -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;
}
}

43
src/Configuration.java Normal file
View File

@@ -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<PartType> 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() {
}
}

20
src/PartType.java Normal file
View File

@@ -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
}
}