AnalogIn, DigitalIn, DigitalOut, Simulation, and Card classes all working correctly so far

This commit is contained in:
Patrick McDonagh
2017-02-01 14:24:35 -06:00
commit a7073aae9c
46 changed files with 2240 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
package com.henrypump.poc;
/**
* Created by patrickjmcd on 1/31/17.
*/
public class Card {
// Card Points
private int maxPoints = 1500;
private double[] surfacePosition = new double[maxPoints];
private double[] downholePosition = new double[maxPoints];
private double[] surfaceLoad = new double[maxPoints];
private double[] downholeLoad = new double[maxPoints];
//Card
private int strokeNumber;
private LPPair surfacePositionMax;
public void setSurfacePosition(int i, double position){
this.surfacePosition[i] = position;
};
public void setDownholePosition(int i, double position){
this.downholePosition[i] = position;
};
public void setSurfaceLoad(int i, double load){
this.surfaceLoad[i] = load;
};
public void setDownholeLoad(int i, double load){
this.downholeLoad[i] = load;
};
public double[] getSurfacePosition() {
return this.surfacePosition;
}
public double[] getDownholePosition() {
return this.downholePosition;
}
public double[] getSurfaceLoad() {
return this.surfaceLoad;
}
public double[] getDownholeLoad() {
return this.downholeLoad;
}
public LPPair getSurfacePositionMax() {
return this.surfacePositionMax;
}
}