add more error
Merci de corriger stp
This commit is contained in:
@@ -3,20 +3,31 @@ 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 {
|
||||
private Set<PartType> partTypes;
|
||||
private Engine e;
|
||||
private Exterior ex;
|
||||
private Interior in;
|
||||
private Transmission tr;
|
||||
|
||||
private CompatibilityManager compatibilityManager;
|
||||
private
|
||||
|
||||
@Override
|
||||
public boolean isValid() {
|
||||
if ( this.isComplete()){
|
||||
/*TODO*/
|
||||
}else{
|
||||
//TODO
|
||||
return true;
|
||||
|
||||
}
|
||||
else{
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isComplete() {
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
|
||||
package src;
|
||||
public class Engine extends PartType{
|
||||
public Engine (String name){
|
||||
super(name, E)
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package src;
|
||||
|
||||
public class Exterior extends PartType{
|
||||
|
||||
}
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
package src;
|
||||
public class Interior extends PartType{
|
||||
public Interior (String name) {
|
||||
this.super(name);
|
||||
this.
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package src;
|
||||
|
||||
public class Transmission extends PartType{
|
||||
public Transmission( String nom){
|
||||
super (nom);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user