Skip to content
Snippets Groups Projects
Commit 9a4c0d4e authored by Eilert Tunheim's avatar Eilert Tunheim
Browse files

Added readme file

parent d3611c15
No related branches found
No related tags found
No related merge requests found
Bachelor oppgave vår 2022 #Bachelor Thesis Spring 2022
Awesome teamates:
This application visualize live- and historical data and calculates an estimate based on logistic regression that the drying operator can choose to follow in order to minimize over-drying.
The development team:
* #### Eilert Tunheim
* #### Mads Greni Arnesen
* #### Karin Pettersen
Link to repo: https://git.gvk.idi.ntnu.no/mesji/bacheloroppgave_2022
## Deployment Instructions
The java .jar file is located under `out\artifacts\Bachelor_application`
In order to run the jar file, please use the following command:
`java -jar Bachelor_application.jar`
Karin
Mads
Eilert
...@@ -172,24 +172,17 @@ public class InputPopup { ...@@ -172,24 +172,17 @@ public class InputPopup {
moistureList.setValue(""); moistureList.setValue("");
} }
if (!err) { if (!err) {
setTreeSpeciesText(Constants.TREE_SPECIES); setTreeSpeciesText(Constants.TREE_SPECIES);
setDimensionsText(Constants.DIMENSIONS); setDimensionsText(Constants.DIMENSIONS);
setSawsetText(Constants.SAWSET); setSawsetText(Constants.SAWSET);
setMoistureGoalText(Constants.MOISTURE_GOAL); setMoistureGoalText(Constants.MOISTURE_GOAL);
window.close(); window.close();
NotificationPopUp.displayNotificationWindow("Searching for data...");
// Gather data thread
// Fungerende ny thread!!@@@@@
// Gather data
try { try {
Thread thread = new Thread(() -> { Thread thread = new Thread(() -> {
...@@ -251,94 +244,8 @@ public class InputPopup { ...@@ -251,94 +244,8 @@ public class InputPopup {
} catch (Exception ex) { } catch (Exception ex) {
ex.printStackTrace(); ex.printStackTrace();
} }
}
} else { });
}
}
);
/*
// Fungerende ny thread!!@@@@@
try{
Thread thread = new Thread(new Runnable() {
@Override
public void run() {
try {
// Henter her data fra databasen
loadSingleSeries(setInputParameters());
//loadSingleSeries();
//loadMultipleSeries();
} catch (Exception ex) {
ex.printStackTrace();
}
}
});
thread.start();
} catch (Exception ex) {
ex.printStackTrace();
}
}
);
*/
/*
class KwhThread implements Runnable {
Map<Integer, Map<String, Number>> dataVariable;
private volatile boolean finished;
@Override
public void run() {
try{
dataVariable = setInputParameters();
} catch (Exception ex) {
ex.printStackTrace();
}
finished = true;
synchronized (this){
this.notify();
}
}
public Map<Integer, Map<String, Number>> getDataVariable() throws InterruptedException {
synchronized (this){
if(!finished)
this.wait();
}
return dataVariable;
}
}
KwhThread kwhThread = new KwhThread();
Thread thread = new Thread(kwhThread);
thread.setName("GetKwhThread");
thread.start();
try {
loadSingleSeries(kwhThread.getDataVariable());
} catch (Exception ex) {
ex.printStackTrace();
}
*/
/*
*/
VBox layout = new VBox(10); VBox layout = new VBox(10);
layout.getChildren().addAll(inputLabel, treeSpeciesInputLabel, treeSpeciesList, dimensionsInputLabel, dimensionsList, layout.getChildren().addAll(inputLabel, treeSpeciesInputLabel, treeSpeciesList, dimensionsInputLabel, dimensionsList,
......
Manifest-Version: 1.0
Main-Class: com.application.Main
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment