reorginazise
This commit is contained in:
9
src/fr/api/Category.java
Normal file
9
src/fr/api/Category.java
Normal file
@@ -0,0 +1,9 @@
|
||||
package fr.istic.nplouzeau.cartaylor.api;
|
||||
/**
|
||||
* @author plouzeau
|
||||
* <p>
|
||||
* A public type to organize part types in categories
|
||||
*/
|
||||
public interface Category {
|
||||
String getName();
|
||||
}
|
||||
6
src/fr/api/CompatibilityChecker.java
Normal file
6
src/fr/api/CompatibilityChecker.java
Normal file
@@ -0,0 +1,6 @@
|
||||
package fr.istic.nplouzeau.cartaylor.api;
|
||||
import java.util.Set;
|
||||
public interface CompatibilityChecker {
|
||||
Set<PartType> getIncompatibilities(PartType reference);
|
||||
Set<PartType> getRequirements(PartType reference);
|
||||
}
|
||||
8
src/fr/api/CompatibilityManager.java
Normal file
8
src/fr/api/CompatibilityManager.java
Normal file
@@ -0,0 +1,8 @@
|
||||
package fr.istic.nplouzeau.cartaylor.api;
|
||||
import java.util.Set;
|
||||
public interface CompatibilityManager extends CompatibilityChecker {
|
||||
void addIncompatibilities(PartType reference,Set<PartType> target);
|
||||
void removeIncompatibility(PartType reference, PartType target);
|
||||
void addRequirements(PartType reference, Set<PartType> target);
|
||||
void removeRequirement(PartType reference, PartType target);
|
||||
}
|
||||
11
src/fr/api/Configuration.java
Normal file
11
src/fr/api/Configuration.java
Normal file
@@ -0,0 +1,11 @@
|
||||
package fr.istic.nplouzeau.cartaylor.api;
|
||||
import java.util.Set;
|
||||
public interface Configuration {
|
||||
boolean isValid();
|
||||
boolean isComplete();
|
||||
Set<PartType> getSelectedParts();
|
||||
void selectPart(PartType chosenPart);
|
||||
PartType getSelectionForCategory(Category category);
|
||||
void unselectPartType(Category categoryToClear);
|
||||
void clear();
|
||||
}
|
||||
8
src/fr/api/Configurator.java
Normal file
8
src/fr/api/Configurator.java
Normal file
@@ -0,0 +1,8 @@
|
||||
package fr.istic.nplouzeau.cartaylor.api;
|
||||
import java.util.Set;
|
||||
public interface Configurator {
|
||||
Set<Category> getCategories();
|
||||
Set<PartType> getVariants(Category category);
|
||||
Configuration getConfiguration();
|
||||
CompatibilityChecker getCompatibilityChecker();
|
||||
}
|
||||
5
src/fr/api/PartType.java
Normal file
5
src/fr/api/PartType.java
Normal file
@@ -0,0 +1,5 @@
|
||||
package fr.istic.nplouzeau.cartaylor.api;
|
||||
public interface PartType {
|
||||
String getName();
|
||||
Category getCategory();
|
||||
}
|
||||
Reference in New Issue
Block a user