control the well from a text-based cli

This commit is contained in:
Patrick McDonagh
2017-02-08 17:15:04 -06:00
parent a65597d3e1
commit 419f42cf17
33 changed files with 1176 additions and 359 deletions

View File

@@ -1,6 +1,8 @@
package com.henrypump.poc;
import org.bson.Document;
import java.time.ZonedDateTime;
import java.util.Date;
/**
@@ -8,13 +10,13 @@ import java.util.Date;
*/
public class WellTest {
private double testHours;
private Date testStart;
private ZonedDateTime testStart;
private double totalFluidBBL, testOilBBL, testWaterBBL, testGasMCF;
private double kFactor, oilRatio, waterRatio, gasMCFRatio;
public WellTest(Date testStart, double testHours, double totalFluidBBL, double testOilBBL, double testWaterBBL, double testGasMCF, double prevDailyTotal) {
public WellTest(ZonedDateTime testStart, double testHours, double totalFluidBBL, double testOilBBL, double testWaterBBL, double testGasMCF, double prevDailyTotal) {
this.testStart = testStart;
this.testHours = testHours;
this.totalFluidBBL = totalFluidBBL;
@@ -39,7 +41,7 @@ public class WellTest {
return testHours;
}
public Date getTestStart() {
public ZonedDateTime getTestStart() {
return testStart;
}
@@ -75,4 +77,14 @@ public class WellTest {
return gasMCFRatio;
}
public void print(){
System.out.println("Well Test started at " + testStart.toString() + " lasting " + testHours + " hours");
System.out.println("Fluid BBL: " + totalFluidBBL);
System.out.println("Oil BBL: " + testOilBBL);
System.out.println("Water BBL: " + testWaterBBL);
System.out.println("Gas MCF: " + testGasMCF);
System.out.printf("New Ratio Oil/Water/Gas: %.2f/%.2f/%.2f\n", oilRatio, waterRatio, gasMCFRatio);
System.out.println("New Correction Factor: " + kFactor);
}
}