EMlab-generation Documentation  1.0
Documentation of the EMLab-Generation model.
LongTermContract.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 
14 
20 @NodeEntity
21 public class LongTermContract extends Contract {
22 
23  private double capacity;
24 
25  @RelatedTo(type = "LONGTERMCONTRACT_TYPE", elementClass = LongTermContractType.class, direction = Direction.OUTGOING)
26  private LongTermContractType longTermContractType;
27 
28  @RelatedTo(type = "LONGTERMCONTRACT_ZONE", elementClass = Zone.class, direction = Direction.OUTGOING)
29  private Zone zone;
30 
31  @RelatedTo(type = "LONGTERMCONTRACT_MAINFUEL", elementClass = Substance.class, direction = Direction.OUTGOING)
32  private Substance mainFuel;
33 
34  @RelatedTo(type = "LONGTERMCONTRACT_POWERPLANT", elementClass = PowerPlant.class, direction = Direction.OUTGOING)
35  private PowerPlant underlyingPowerPlant;
36 
37  @RelatedTo(type = "LONGTERMCONTRACT_DURATION", elementClass = LongTermContractDuration.class, direction = Direction.OUTGOING)
38  private LongTermContractDuration duration;
39 
40  private double fuelPassThroughFactor;
41  private double co2PassThroughFactor;
42  private double fuelPriceStart;
43  private double co2PriceStart;
44 
45 
46  public Substance getMainFuel() {
47  return mainFuel;
48  }
49 
50  public void setMainFuel(Substance mainFuel) {
51  this.mainFuel = mainFuel;
52  }
53 
54  public double getFuelPassThroughFactor() {
55  return fuelPassThroughFactor;
56  }
57 
58  public void setFuelPassThroughFactor(double fuelPassThroughFactor) {
59  this.fuelPassThroughFactor = fuelPassThroughFactor;
60  }
61 
62  public double getCo2PassThroughFactor() {
63  return co2PassThroughFactor;
64  }
65 
66  public void setCo2PassThroughFactor(double co2PassThroughFactor) {
67  this.co2PassThroughFactor = co2PassThroughFactor;
68  }
69 
70  public double getFuelPriceStart() {
71  return fuelPriceStart;
72  }
73 
74  public void setFuelPriceStart(double fuelPriceStart) {
75  this.fuelPriceStart = fuelPriceStart;
76  }
77 
78  public double getCo2PriceStart() {
79  return co2PriceStart;
80  }
81 
82  public void setCo2PriceStart(double co2PriceStart) {
83  this.co2PriceStart = co2PriceStart;
84  }
85 
86  public Zone getZone() {
87  return zone;
88  }
89 
90  public void setZone(Zone zone) {
91  this.zone = zone;
92  }
93 
94  public double getCapacity() {
95  return capacity;
96  }
97 
98  public void setCapacity(double capacity) {
99  this.capacity = capacity;
100  }
101 
102  public LongTermContractType getLongTermContractType() {
103  return longTermContractType;
104  }
105 
106  public void setLongTermContractType(LongTermContractType longTermContractType) {
107  this.longTermContractType = longTermContractType;
108  }
109  public PowerPlant getUnderlyingPowerPlant() {
110  return underlyingPowerPlant;
111  }
112 
113  public void setUnderlyingPowerPlant(PowerPlant underlyingPowerPlant) {
114  this.underlyingPowerPlant = underlyingPowerPlant;
115  }
116 
117  public LongTermContractDuration getDuration() {
118  return duration;
119  }
120 
121  public void setDuration(LongTermContractDuration duration) {
122  this.duration = duration;
123  }
124 
125 
126 }