2020-07-24 17:21:48 +02:00
|
|
|
|
2020-07-20 17:46:27 +02:00
|
|
|
package eu.dnetlib.dhp.schema.dump.oaf.graph;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
2020-07-24 17:21:48 +02:00
|
|
|
import java.util.Optional;
|
2020-07-20 17:46:27 +02:00
|
|
|
|
2020-08-13 18:23:24 +02:00
|
|
|
/**
|
2020-08-19 10:14:41 +02:00
|
|
|
* To describe the funded amount. It has the following parameters: - private String currency to store the currency of
|
|
|
|
* the fund - private float totalcost to store the total cost of the project - private float fundedamount to store the
|
|
|
|
* funded amount by the funder
|
2020-08-13 18:23:24 +02:00
|
|
|
*/
|
2020-07-20 17:46:27 +02:00
|
|
|
public class Granted implements Serializable {
|
2020-07-24 17:21:48 +02:00
|
|
|
private String currency;
|
|
|
|
private float totalcost;
|
|
|
|
private float fundedamount;
|
|
|
|
|
|
|
|
public String getCurrency() {
|
|
|
|
return currency;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setCurrency(String currency) {
|
|
|
|
this.currency = currency;
|
|
|
|
}
|
|
|
|
|
|
|
|
public float getTotalcost() {
|
|
|
|
return totalcost;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setTotalcost(float totalcost) {
|
|
|
|
this.totalcost = totalcost;
|
|
|
|
}
|
|
|
|
|
|
|
|
public float getFundedamount() {
|
|
|
|
return fundedamount;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setFundedamount(float fundedamount) {
|
|
|
|
this.fundedamount = fundedamount;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static Granted newInstance(String currency, float totalcost, float fundedamount) {
|
|
|
|
Granted granted = new Granted();
|
|
|
|
granted.currency = currency;
|
|
|
|
granted.totalcost = totalcost;
|
|
|
|
granted.fundedamount = fundedamount;
|
|
|
|
return granted;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static Granted newInstance(String currency, float fundedamount) {
|
|
|
|
Granted granted = new Granted();
|
|
|
|
granted.currency = currency;
|
|
|
|
granted.fundedamount = fundedamount;
|
|
|
|
return granted;
|
|
|
|
}
|
2020-07-20 17:46:27 +02:00
|
|
|
}
|