16 package emlab.gen.domain.contract;
19 import org.springframework.data.neo4j.annotation.NodeEntity;
20 import org.springframework.data.neo4j.annotation.RelatedTo;
21 import org.neo4j.graphdb.Direction;
28 @RelatedTo(type =
"CONTRACT_FROM", elementClass =
DecarbonizationAgent.class, direction = Direction.OUTGOING)
31 @RelatedTo(type =
"CONTRACT_TO", elementClass =
DecarbonizationAgent.class, direction = Direction.OUTGOING)
34 private double pricePerUnit;
35 private boolean signed;
39 public double getPricePerUnit() {
43 public void setPricePerUnit(
double pricePerUnit) {
44 this.pricePerUnit = pricePerUnit;
47 public boolean isSigned() {
51 public void setSigned(
boolean signed) {
55 public long getStart() {
59 public void setStart(
long start) {
63 public long getFinish() {
67 public void setFinish(
long finish) {