4 package emlab.gen.domain.contract;
6 import org.springframework.data.neo4j.annotation.NodeEntity;
7 import org.springframework.data.neo4j.annotation.RelatedTo;
8 import org.neo4j.graphdb.Direction;
23 private double capacity;
25 @RelatedTo(type =
"LONGTERMCONTRACT_TYPE", elementClass =
LongTermContractType.class, direction = Direction.OUTGOING)
28 @RelatedTo(type =
"LONGTERMCONTRACT_ZONE", elementClass =
Zone.class, direction = Direction.OUTGOING)
31 @RelatedTo(type =
"LONGTERMCONTRACT_MAINFUEL", elementClass =
Substance.class, direction = Direction.OUTGOING)
34 @RelatedTo(type =
"LONGTERMCONTRACT_POWERPLANT", elementClass =
PowerPlant.class, direction = Direction.OUTGOING)
37 @RelatedTo(type =
"LONGTERMCONTRACT_DURATION", elementClass =
LongTermContractDuration.class, direction = Direction.OUTGOING)
40 private double fuelPassThroughFactor;
41 private double co2PassThroughFactor;
42 private double fuelPriceStart;
43 private double co2PriceStart;
50 public void setMainFuel(
Substance mainFuel) {
51 this.mainFuel = mainFuel;
54 public double getFuelPassThroughFactor() {
55 return fuelPassThroughFactor;
58 public void setFuelPassThroughFactor(
double fuelPassThroughFactor) {
59 this.fuelPassThroughFactor = fuelPassThroughFactor;
62 public double getCo2PassThroughFactor() {
63 return co2PassThroughFactor;
66 public void setCo2PassThroughFactor(
double co2PassThroughFactor) {
67 this.co2PassThroughFactor = co2PassThroughFactor;
70 public double getFuelPriceStart() {
71 return fuelPriceStart;
74 public void setFuelPriceStart(
double fuelPriceStart) {
75 this.fuelPriceStart = fuelPriceStart;
78 public double getCo2PriceStart() {
82 public void setCo2PriceStart(
double co2PriceStart) {
83 this.co2PriceStart = co2PriceStart;
86 public Zone getZone() {
90 public void setZone(
Zone zone) {
94 public double getCapacity() {
98 public void setCapacity(
double capacity) {
99 this.capacity = capacity;
103 return longTermContractType;
107 this.longTermContractType = longTermContractType;
110 return underlyingPowerPlant;
113 public void setUnderlyingPowerPlant(
PowerPlant underlyingPowerPlant) {
114 this.underlyingPowerPlant = underlyingPowerPlant;
122 this.duration = duration;