Event.java [src/java/crlmod/nodes] Revision: Date:
/*
* $Id: 1.0+62 Event.java a170e1637ffa 2021-12-20 od $
*
* This file is part of the Cloud Services Integration Platform (CSIP),
* a Model-as-a-Service framework, API, and application suite.
*
* 2012-2024, OMSLab, Colorado State University.
*
* OMSLab licenses this file to you under the MIT license.
* See the LICENSE file in the project root for more information.
*/
package crlmod.nodes;
import java.util.Date;
/**
*
* @author User
*/
public class Event {
public Date date;
public Operation operation;
public Crop crop;
public Residue residue;
public Double res_added;
public Double yield;
public Event() {
}
public Event(Date d, Operation o, Crop c, Residue r, Double ra, double y) {
date = d;
operation = o;
crop = c;
residue = r;
res_added = ra;
yield = y;
}
public Date getDate() {
return date;
}
public Operation getOpperation() {
return operation;
}
public Crop getCrop() {
return crop;
}
public double getyield() {
return yield;
}
@Override
public String toString() {
return "Date: " + this.date
+ " | Operation: " + (this.operation == null ? "Operation Missing" : this.operation.name)
+ " | Crop: " + (this.crop == null ? "No Crop" : this.crop.name)
+ " | Residue: " + (this.residue == null ? "No Residue" : this.residue.name);
}
}