2021-04-23 12:15:36 +02:00
|
|
|
|
|
|
|
package eu.dnetlib.dhp.schema.dump.oaf.graph;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
2021-11-18 11:01:44 +01:00
|
|
|
import com.github.imifou.jsonschema.module.addon.annotation.JsonSchema;
|
|
|
|
|
2021-04-23 12:15:36 +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
|
|
|
|
*/
|
|
|
|
public class Granted implements Serializable {
|
2021-11-18 10:36:00 +01:00
|
|
|
@JsonSchema(description = "The currency of the granted amount (e.g. EUR)")
|
2021-04-23 12:15:36 +02:00
|
|
|
private String currency;
|
2021-11-18 10:36:00 +01:00
|
|
|
|
|
|
|
@JsonSchema(description = "The total cost of the project")
|
2021-04-23 12:15:36 +02:00
|
|
|
private float totalcost;
|
2021-11-18 10:36:00 +01:00
|
|
|
|
|
|
|
@JsonSchema(description = "The funded amount")
|
2021-04-23 12:15:36 +02:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|