AnalogIn, DigitalIn, DigitalOut, Simulation, and Card classes all working correctly so far
This commit is contained in:
53
src/main/java/com/henrypump/poc/Card.java
Normal file
53
src/main/java/com/henrypump/poc/Card.java
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user