Commit 182093b9 authored by Gaetan's avatar Gaetan

Implémentation de la classe garage

parent 03eab045
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<bytecodeTargetLevel>
<module name="geometry.main" target="1.8" />
<module name="geometry.test" target="1.8" />
</bytecodeTargetLevel>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id="geometry" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="geometry" external.system.module.version="1.0-SNAPSHOT" type="JAVA_MODULE" version="4">
<module external.linked.project.id="geometry" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
......
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="11" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="12" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/classes" />
</component>
</project>
\ No newline at end of file
......@@ -3,8 +3,6 @@
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/geometry.iml" filepath="$PROJECT_DIR$/.idea/geometry.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/modules/geometry.main.iml" filepath="$PROJECT_DIR$/.idea/modules/geometry.main.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/modules/geometry.test.iml" filepath="$PROJECT_DIR$/.idea/modules/geometry.test.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id="geometry:main" external.linked.project.path="$MODULE_DIR$/../.." external.root.project.path="$MODULE_DIR$/../.." external.system.id="GRADLE" external.system.module.group="geometry" external.system.module.type="sourceSet" external.system.module.version="1.0-SNAPSHOT" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
<output url="file://$MODULE_DIR$/../../build/classes/java/main" />
<exclude-output />
<content url="file://$MODULE_DIR$/../../src/main" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id="geometry:test" external.linked.project.path="$MODULE_DIR$/../.." external.root.project.path="$MODULE_DIR$/../.." external.system.id="GRADLE" external.system.module.group="geometry" external.system.module.type="sourceSet" external.system.module.version="1.0-SNAPSHOT" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
<output-test url="file://$MODULE_DIR$/../../build/classes/java/test" />
<exclude-output />
<content url="file://$MODULE_DIR$/../../src/test" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="geometry.main" />
<orderEntry type="library" name="Gradle: junit:junit:4.12" level="project" />
<orderEntry type="library" name="Gradle: org.hamcrest:hamcrest-core:1.3" level="project" />
</component>
<component name="TestModuleProperties" production-module="geometry.main" />
</module>
\ No newline at end of file
package garage;
import vehicle.Vehicle;
import java.util.*;
public class Garage {
}
private LinkedList<Vehicle> stock;
private String owner;
private String garageName;
// CONSTRUCTOR **********************************************************************
public Garage() {
this.stock = new LinkedList<Vehicle>();
this.owner = "Owner";
this.garageName = "Name garage";
}
public Garage(LinkedList<Vehicle> stockEnregistrer) {
this.stock = stockEnregistrer;
this.owner = "Owner";
this.garageName = "Nom du garage";
}
// Accesseur : ***********************************************************************************
public LinkedList<Vehicle> getStock() {
return this.stock;
}
public String getOwner() {
return this.owner;
}
public String getGarageName() {
return this.garageName;
}
public void addVoiture(Vehicle car){
this.stock.add(car);
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment