EMlab-generation Documentation  1.0
Documentation of the EMLab-Generation model.
LongTermContractOffer.java
1 
4 package emlab.gen.domain.contract;
5 
6 import org.springframework.data.neo4j.annotation.NodeEntity;
7 import org.springframework.data.neo4j.annotation.RelatedTo;
8 import org.neo4j.graphdb.Direction;
9 
10 
15 
21 @NodeEntity
22 public class LongTermContractOffer {
23 
24  @RelatedTo(type = "LONGTERMCONTRACTOFFER_POWERPLANT", elementClass = PowerPlant.class, direction = Direction.OUTGOING)
25  private PowerPlant underlyingPowerPlant;
26 
27  @RelatedTo(type = "LONGTERMCONTRACTOFFER_DURATION", elementClass = LongTermContractDuration.class, direction = Direction.OUTGOING)
28  private LongTermContractDuration duration;
29 
30  @RelatedTo(type = "LONGTERMCONTRACTOFFER_TYPE", elementClass = LongTermContractType.class, direction = Direction.OUTGOING)
31  private LongTermContractType longTermContractType;
32 
33  @RelatedTo(type = "LONGTERMCONTRACTOFFER_SELLER", elementClass = EnergyProducer.class, direction = Direction.OUTGOING)
34  private EnergyProducer seller;
35 
36  @RelatedTo(type = "LONGTERMCONTRACTOFFER_ZONE", elementClass = Zone.class, direction = Direction.OUTGOING)
37  private Zone zone;
38 
39  private double price;
40  private Substance mainFuel;
41  private double fuelPassThroughFactor;
42  private double co2PassThroughFactor;
43  private double fuelPriceStart;
44  private double co2PriceStart;
45  private double capacity;
46  private double start;
47 
48  public PowerPlant getUnderlyingPowerPlant() {
49  return underlyingPowerPlant;
50  }
51 
52  public void setUnderlyingPowerPlant(PowerPlant underlyingPowerPlant) {
53  this.underlyingPowerPlant = underlyingPowerPlant;
54  }
55 
56  public double getPrice() {
57  return price;
58  }
59 
60  public void setPrice(double price) {
61  this.price = price;
62  }
63 
64  public Substance getMainFuel() {
65  return mainFuel;
66  }
67 
68  public void setMainFuel(Substance mainFuel) {
69  this.mainFuel = mainFuel;
70  }
71 
72  public double getFuelPassThroughFactor() {
73  return fuelPassThroughFactor;
74  }
75 
76  public void setFuelPassThroughFactor(double fuelPassThroughFactor) {
77  this.fuelPassThroughFactor = fuelPassThroughFactor;
78  }
79 
80  public double getCo2PassThroughFactor() {
81  return co2PassThroughFactor;
82  }
83 
84  public void setCo2PassThroughFactor(double co2PassThroughFactor) {
85  this.co2PassThroughFactor = co2PassThroughFactor;
86  }
87 
88  public LongTermContractType getLongTermContractType() {
89  return longTermContractType;
90  }
91 
92  public void setLongTermContractType(
93  LongTermContractType longTermContractType) {
94  this.longTermContractType = longTermContractType;
95  }
96 
97  public double getFuelPriceStart() {
98  return fuelPriceStart;
99  }
100 
101  public void setFuelPriceStart(double fuelPriceStart) {
102  this.fuelPriceStart = fuelPriceStart;
103  }
104 
105  public double getCo2PriceStart() {
106  return co2PriceStart;
107  }
108 
109  public void setCo2PriceStart(double co2PriceStart) {
110  this.co2PriceStart = co2PriceStart;
111  }
112 
113  public EnergyProducer getSeller() {
114  return seller;
115  }
116 
117  public void setSeller(EnergyProducer seller) {
118  this.seller = seller;
119  }
120 
121  public Zone getZone() {
122  return zone;
123  }
124 
125  public void setZone(Zone zone) {
126  this.zone = zone;
127  }
128 
129  public double getCapacity() {
130  return capacity;
131  }
132 
133  public void setCapacity(double capacity) {
134  this.capacity = capacity;
135  }
136 
137  public double getStart() {
138  return start;
139  }
140 
141  public void setStart(double start) {
142  this.start = start;
143  }
144  public LongTermContractDuration getDuration() {
145  return duration;
146  }
147 
148  public void setDuration(LongTermContractDuration duration) {
149  this.duration = duration;
150  }
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();
159  }
160 }