Crop.java [src/java/m/wqm/nutappmgtscores] Revision: 7f33ed885f18574fdf1fd17735f99cea81851b03 Date: Thu Jun 11 22:31:06 MDT 2015
package m.wqm.nutappmgtscores;
/**
*
* @author RUMPAL SIDHU
*/
import java.util.Date;
import csip.utils.Dates;
import java.util.ArrayList;
public class Crop {
private int mgtCropId;
private boolean lmod;
private String cropPlantDate;
private double cropYield;
private String cropYieldUnits;
private ArrayList<Nutrient> nutrientApplicationList;
public Crop(int mgtCropId, boolean lmod, String cropPlantDate, double cropYield,
String cropYieldUnits, ArrayList<Nutrient> nutrientApplicationList) {
this.mgtCropId = mgtCropId;
this.lmod = lmod;
this.cropPlantDate = cropPlantDate;
this.cropYield = cropYield;
this.cropYieldUnits = cropYieldUnits;
this.nutrientApplicationList = nutrientApplicationList;
}
public int getMgtCropId() {
return mgtCropId;
}
public boolean getLmod() {
return lmod;
}
public Date getCropPlantDate() throws Exception {
Date date = Dates.parse(cropPlantDate);
return date;
}
public double getCropYield() {
return cropYield;
}
public String getCropYieldUnits() {
return cropYieldUnits;
}
public ArrayList getNutrientApplicationList() {
return nutrientApplicationList;
}
}