push src
This commit is contained in:
13
src/Category.java
Normal file
13
src/Category.java
Normal 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
43
src/Configuration.java
Normal 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
20
src/PartType.java
Normal 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user