Implémentation compatibility checker
This commit is contained in:
@@ -1,28 +1,29 @@
|
||||
package src;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Set;
|
||||
import fr.istic.nplouzeau.cartaylor.api.PartType;
|
||||
|
||||
|
||||
|
||||
public class CompatibilityChecker implements fr.istic.nplouzeau.cartaylor.api.CompatibilityChecker {
|
||||
|
||||
private Set<PartType> incompatibilities;
|
||||
private Set<PartType> requirements;
|
||||
private HashMap<PartType, Set<PartType>> incompatibilites;
|
||||
private HashMap<PartType, Set<PartType>> requirements;
|
||||
|
||||
public CompatibilityChecker(Set<PartType> incompatibilities, Set<PartType> requirements){
|
||||
this.requirements=requirements;
|
||||
this.incompatibilities=incompatibilities;
|
||||
}
|
||||
@Override
|
||||
public Set<PartType> getIncompatibilities(PartType reference){
|
||||
/*TODO*/
|
||||
return this.incompatibilities;
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public Set<PartType> getRequirements(PartType reference){
|
||||
/*TODO*/
|
||||
return this.requirements;
|
||||
public Set<PartType> getIncompatibilities(PartType reference) {
|
||||
return this.incompatibilites.get(reference);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Set<PartType> getRequirements(PartType reference) {
|
||||
return this.requirements.get(reference);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user