16 package emlab.gen.domain.contract;
19 import org.neo4j.graphdb.Direction;
20 import org.springframework.data.neo4j.annotation.NodeEntity;
21 import org.springframework.data.neo4j.annotation.RelatedTo;
29 @RelatedTo(type =
"LEND_TO_AGENT", elementClass =
DecarbonizationAgent.class, direction = Direction.OUTGOING)
32 @RelatedTo(type =
"LEND_BY_AGENT", elementClass =
DecarbonizationAgent.class, direction = Direction.OUTGOING)
35 @RelatedTo(type =
"LOAN_POWERPLANT", elementClass =
PowerPlant.class, direction = Direction.OUTGOING)
38 private double amountPerPayment;
39 private long totalNumberOfPayments;
40 private long numberOfPaymentsDone;
41 private long loanStartTime;
43 public long getLoanStartTime() {
47 public void setLoanStartTime(
long loanStartTime) {
48 this.loanStartTime = loanStartTime;
51 public long getTotalNumberOfPayments() {
52 return totalNumberOfPayments;
55 public double getAmountPerPayment() {
56 return amountPerPayment;
59 public void setAmountPerPayment(
double amountPerPayment) {
60 this.amountPerPayment = amountPerPayment;
63 public void setTotalNumberOfPayments(
long totalNumberOfPayments) {
64 this.totalNumberOfPayments = totalNumberOfPayments;
67 public long getNumberOfPaymentsDone() {
68 return numberOfPaymentsDone;
71 public void setNumberOfPaymentsDone(
long numberOfPaymentsDone) {
72 this.numberOfPaymentsDone = numberOfPaymentsDone;
92 return regardingPowerPlant;
95 public void setRegardingPowerPlant(
PowerPlant regardingPowerPlant) {
96 this.regardingPowerPlant = regardingPowerPlant;