correction nom des Impl
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
package src.fr.impl;
|
package src.fr.impl;
|
||||||
|
|
||||||
|
|
||||||
public class Category implements src.fr.api.Category {
|
public class CategoryImpl implements src.fr.api.Category {
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
public Category(String name){
|
public CategoryImpl(String name){
|
||||||
this.name= name;
|
this.name= name;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -5,12 +5,12 @@ import java.util.Set;
|
|||||||
import src.fr.api.PartType;
|
import src.fr.api.PartType;
|
||||||
|
|
||||||
|
|
||||||
public class CompatibilityChecker implements src.fr.api.CompatibilityChecker {
|
public class CompatibilityCheckerImpl implements src.fr.api.CompatibilityChecker {
|
||||||
|
|
||||||
private HashMap<PartType, Set<PartType>> incompatibilities;
|
private HashMap<PartType, Set<PartType>> incompatibilities;
|
||||||
private HashMap<PartType, Set<PartType>> requirements;
|
private HashMap<PartType, Set<PartType>> requirements;
|
||||||
|
|
||||||
public CompatibilityChecker( HashMap<PartType, Set<PartType>> incompatibilities, HashMap<PartType, Set<PartType>> requirements){
|
public CompatibilityCheckerImpl( HashMap<PartType, Set<PartType>> incompatibilities, HashMap<PartType, Set<PartType>> requirements){
|
||||||
this.incompatibilities=incompatibilities;
|
this.incompatibilities=incompatibilities;
|
||||||
this.requirements= requirements;
|
this.requirements= requirements;
|
||||||
}
|
}
|
||||||
@@ -4,7 +4,7 @@ import java.util.HashMap;
|
|||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import src.fr.api.PartType;
|
import src.fr.api.PartType;
|
||||||
|
|
||||||
public class CompatibilityManager implements src.fr.api.CompatibilityManager {
|
public class CompatibilityManagerImpl implements src.fr.api.CompatibilityManager {
|
||||||
|
|
||||||
private HashMap<PartType, Set<PartType>> incompatibilities;
|
private HashMap<PartType, Set<PartType>> incompatibilities;
|
||||||
private HashMap<PartType, Set<PartType>> requirements;
|
private HashMap<PartType, Set<PartType>> requirements;
|
||||||
@@ -2,11 +2,11 @@ package src.fr.impl;
|
|||||||
|
|
||||||
import src.fr.api.Category;
|
import src.fr.api.Category;
|
||||||
import src.fr.api.PartType;
|
import src.fr.api.PartType;
|
||||||
|
import src.fr.api.CompatibilityManager;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
public class Configuration implements src.fr.api.Configuration {
|
public class ConfigurationImpl implements src.fr.api.Configuration {
|
||||||
private Set<PartType> selectedParts;
|
private Set<PartType> selectedParts;
|
||||||
private CompatibilityManager compatibilityManager;
|
private CompatibilityManager compatibilityManager;
|
||||||
private static int NB_CATEGORY = 4;
|
private static int NB_CATEGORY = 4;
|
||||||
@@ -8,13 +8,13 @@ import src.fr.api.PartType;
|
|||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
public class Configurator implements src.fr.api.Configurator {
|
public class ConfiguratorImpl implements src.fr.api.Configurator {
|
||||||
private Set<Category> categories;
|
private Set<Category> categories;
|
||||||
private Set<PartType> partTypes;
|
private Set<PartType> partTypes;
|
||||||
private Configuration configuration;
|
private Configuration configuration;
|
||||||
private CompatibilityChecker compatibilityChecker;
|
private CompatibilityChecker compatibilityChecker;
|
||||||
|
|
||||||
public Configurator (Set<Category> cat, Set<PartType> pt, Configuration config) {
|
public ConfiguratorImpl (Set<Category> cat, Set<PartType> pt, Configuration config) {
|
||||||
this.categories= cat;
|
this.categories= cat;
|
||||||
this.partTypes=pt;
|
this.partTypes=pt;
|
||||||
this.configuration=config;
|
this.configuration=config;
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
package src.fr.impl;
|
package src.fr.impl;
|
||||||
|
|
||||||
|
import src.fr.api.Category;
|
||||||
|
|
||||||
public class PartTypeImpl implements src.fr.api.PartType {
|
public class PartTypeImpl implements src.fr.api.PartType {
|
||||||
private String name;
|
private String name;
|
||||||
private Category category;
|
private Category category;
|
||||||
|
|||||||
@@ -9,13 +9,14 @@ import org.junit.Test;
|
|||||||
|
|
||||||
import src.fr.impl.*;
|
import src.fr.impl.*;
|
||||||
import src.fr.api.PartType;
|
import src.fr.api.PartType;
|
||||||
|
import src.fr.api.Category;
|
||||||
|
|
||||||
public class test {
|
public class test {
|
||||||
public static void main(String[] args){
|
public static void main(String[] args){
|
||||||
Category Engine = new Category("Engine");
|
Category Engine = new CategoryImpl("Engine");
|
||||||
Category Transmission = new Category("Transmission");
|
Category Transmission = new CategoryImpl("Transmission");
|
||||||
Category Exterior= new Category("Exterior");
|
Category Exterior= new CategoryImpl("Exterior");
|
||||||
Category Interior= new Category("Interior");
|
Category Interior= new CategoryImpl("Interior");
|
||||||
|
|
||||||
//PartType
|
//PartType
|
||||||
PartType EG100= new PartTypeImpl("EG100", Engine);
|
PartType EG100= new PartTypeImpl("EG100", Engine);
|
||||||
|
|||||||
Reference in New Issue
Block a user