Adds pump-off logic

This commit is contained in:
Patrick McDonagh
2017-02-22 14:57:56 -06:00
parent 88d30e5a9b
commit 6b60d0f806
5 changed files with 137 additions and 5 deletions

View File

@@ -21,7 +21,16 @@ class CLScanner implements Runnable {
poc.thisWell.stop("commandline");
}
private void pumpoffWell(){
poc.thisWell.pumpOff("commandline");
}
private void restartWell(){
poc.thisWell.restart("commandline");
}
private void exitPOC(){
poc.thisWell.db.newRunStatus("Shutdown", "commandline");
System.exit(99);
}
@@ -49,6 +58,8 @@ class CLScanner implements Runnable {
System.out.println("POSSIBLE COMMANDS");
System.out.println("start -- Issues the start command");
System.out.println("stop -- Issues the stop command");
System.out.println("pumpoff -- Issues the pumpoff command");
System.out.println("restart -- Issues the restart command");
System.out.println("status -- Gets the current run status");
System.out.println("showtapers -- Gets the current taper and well parameters");
System.out.println("showtotals -- Gets the current totals and averages");
@@ -76,6 +87,12 @@ class CLScanner implements Runnable {
case "stop":
stopWell();
break;
case "pumpoff":
pumpoffWell();
break;
case "restart":
restartWell();
break;
case "exit":
exitPOC();
break;