Skip to content

Commit

Permalink
Merge pull request #34 from Blo0dR0gue/gui_new
Browse files Browse the repository at this point in the history
Version 1.0
  • Loading branch information
Blo0dR0gue authored Jun 14, 2022
2 parents dbe96b8 + 24eee05 commit 2cc59eb
Show file tree
Hide file tree
Showing 73 changed files with 2,950 additions and 665 deletions.
31 changes: 1 addition & 30 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,39 +29,10 @@ hs_err_pid*

### JetBrains ###

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
.idea/artifacts
.idea/compiler.xml
.idea/jarRepositories.xml
.idea/modules.xml
.idea/*.iml
.idea/modules
*.iml
*.ipr

Expand All @@ -78,4 +49,4 @@ crashlytics-build.properties
fabric.properties

modules.xml
.idea/misc.xml

42 changes: 11 additions & 31 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 0 additions & 24 deletions .idea/artifacts/thesim_jar.xml

This file was deleted.

20 changes: 0 additions & 20 deletions .idea/jarRepositories.xml

This file was deleted.

124 changes: 0 additions & 124 deletions .idea/uiDesigner.xml

This file was deleted.

29 changes: 1 addition & 28 deletions src/main/java/com/dhbw/thesim/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,36 +18,9 @@
*/
public class Main {

public static void main(String[] args) throws IOException {
public static void main(String[] args) {
Application.launch(Display.class,args);
JsonHandler.setDirectory();

//------------------------------------------------------------------------------------------------------------------
//Testen von JsonHandler: TODO nur zum Testen, bzw. fürs Verständnis

//ArrayList<String> aller json-Dateien mit Scenario im Namen
System.out.println(JsonHandler.getExistingScenarioFileNames());

JsonHandler.exportDefaultScenarioConfig();
JsonHandler.exportDefaultSimulationObjectsConfig();

HashMap<String,Integer> tempDino = new HashMap<>();
tempDino.put("Abrictosaurus",3);
HashMap<String,Integer> tempPlant = new HashMap<>();
tempPlant.put("Farn",4);
JsonHandler.exportScenarioConfig(tempDino,tempPlant,"landschaftsName", 9.0, "test");

//Testen von Json2Objects: TODO nur zum Testen, bzw. fürs Verständnis
HashMap<String,Integer> testInitDino=new HashMap<>();
testInitDino.put("Abrictosaurus",2);
HashMap<String,Integer> testInitPlant=new HashMap<>();
testInitPlant.put("Farn",4);
Json2Objects.initSimObjects(testInitDino, testInitPlant, 3.0);

Json2Objects.getParamsForGUI(Json2Objects.Type.NO_SCENARIO_FILE, "");
System.out.println("--------------");
Json2Objects.getParamsForGUI(Json2Objects.Type.WITH_SCENARIO_FILE, "testScenarioConfiguration");
//------------------------------------------------------------------------------------------------------------------
}

}
Loading

0 comments on commit 2cc59eb

Please sign in to comment.