add more error
Merci de corriger stp
This commit is contained in:
@@ -3,21 +3,32 @@ package src;
|
|||||||
import fr.istic.nplouzeau.cartaylor.api.Category;
|
import fr.istic.nplouzeau.cartaylor.api.Category;
|
||||||
import fr.istic.nplouzeau.cartaylor.api.PartType;
|
import fr.istic.nplouzeau.cartaylor.api.PartType;
|
||||||
|
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
public class Configuration implements fr.istic.nplouzeau.cartaylor.api.Configuration {
|
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
|
@Override
|
||||||
public boolean isValid() {
|
public boolean isValid() {
|
||||||
if ( this.isComplete()){
|
if ( this.isComplete()){
|
||||||
/*TODO*/
|
//TODO
|
||||||
}else{
|
return true;
|
||||||
|
|
||||||
|
}
|
||||||
|
else{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isComplete() {
|
public boolean isComplete() {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
|
package src;
|
||||||
public class Engine extends PartType{
|
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 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