Adds pump-off logic
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user