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;
24 @RelatedTo(type =
"LONGTERMCONTRACTOFFER_POWERPLANT", elementClass =
PowerPlant.class, direction = Direction.OUTGOING)
27 @RelatedTo(type =
"LONGTERMCONTRACTOFFER_DURATION", elementClass =
LongTermContractDuration.class, direction = Direction.OUTGOING)
30 @RelatedTo(type =
"LONGTERMCONTRACTOFFER_TYPE", elementClass =
LongTermContractType.class, direction = Direction.OUTGOING)
33 @RelatedTo(type =
"LONGTERMCONTRACTOFFER_SELLER", elementClass =
EnergyProducer.class, direction = Direction.OUTGOING)
36 @RelatedTo(type =
"LONGTERMCONTRACTOFFER_ZONE", elementClass =
Zone.class, direction = Direction.OUTGOING)
41 private double fuelPassThroughFactor;
42 private double co2PassThroughFactor;
43 private double fuelPriceStart;
44 private double co2PriceStart;
45 private double capacity;
49 return underlyingPowerPlant;
52 public void setUnderlyingPowerPlant(
PowerPlant underlyingPowerPlant) {
53 this.underlyingPowerPlant = underlyingPowerPlant;
56 public double getPrice() {
60 public void setPrice(
double price) {
68 public void setMainFuel(
Substance mainFuel) {
69 this.mainFuel = mainFuel;
72 public double getFuelPassThroughFactor() {
73 return fuelPassThroughFactor;
76 public void setFuelPassThroughFactor(
double fuelPassThroughFactor) {
77 this.fuelPassThroughFactor = fuelPassThroughFactor;
80 public double getCo2PassThroughFactor() {
81 return co2PassThroughFactor;
84 public void setCo2PassThroughFactor(
double co2PassThroughFactor) {
85 this.co2PassThroughFactor = co2PassThroughFactor;
89 return longTermContractType;
92 public void setLongTermContractType(
94 this.longTermContractType = longTermContractType;
97 public double getFuelPriceStart() {
98 return fuelPriceStart;
101 public void setFuelPriceStart(
double fuelPriceStart) {
102 this.fuelPriceStart = fuelPriceStart;
105 public double getCo2PriceStart() {
106 return co2PriceStart;
109 public void setCo2PriceStart(
double co2PriceStart) {
110 this.co2PriceStart = co2PriceStart;
118 this.seller = seller;
121 public Zone getZone() {
125 public void setZone(
Zone zone) {
129 public double getCapacity() {
133 public void setCapacity(
double capacity) {
134 this.capacity = capacity;
137 public double getStart() {
141 public void setStart(
double start) {
149 this.duration = duration;
151 public String toString() {
152 return "Offer of " + getSeller() +
" for " + getUnderlyingPowerPlant()
153 +
" price " + getPrice() +
" zone " + getZone() +
" capacity " + getCapacity()
154 +
" type " + getLongTermContractType() +
" start time " + getStart()
155 +
" duration " + getDuration() +
" fuel price start "
156 + getFuelPriceStart() +
" fuel price pass " + getFuelPassThroughFactor()
157 +
" co2PriceStart " + getCo2PriceStart() +
" co2 pass "
158 + getCo2PassThroughFactor();