ajour de l'api v1
This commit is contained in:
BIN
dragon.gif
BIN
dragon.gif
Binary file not shown.
|
Before Width: | Height: | Size: 2.0 MiB |
9
fr/istic/nplouzeau/cartaylor/api/Category.java
Normal file
9
fr/istic/nplouzeau/cartaylor/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();
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
12
fr/istic/nplouzeau/cartaylor/api/CompatibilityManager.java
Normal file
12
fr/istic/nplouzeau/cartaylor/api/CompatibilityManager.java
Normal file
@@ -0,0 +1,12 @@
|
||||
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
fr/istic/nplouzeau/cartaylor/api/Configuration.java
Normal file
11
fr/istic/nplouzeau/cartaylor/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
fr/istic/nplouzeau/cartaylor/api/Configurator.java
Normal file
8
fr/istic/nplouzeau/cartaylor/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
fr/istic/nplouzeau/cartaylor/api/PartType.java
Normal file
5
fr/istic/nplouzeau/cartaylor/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