16 package emlab.gen.domain.market.electricity;
18 import org.neo4j.graphdb.Direction;
19 import org.springframework.data.neo4j.annotation.NodeEntity;
20 import org.springframework.data.neo4j.annotation.RelatedTo;
25 @RelatedTo(type =
"SEGMENTLOAD_SEGMENT", elementClass =
Segment.class, direction = Direction.OUTGOING)
28 @RelatedTo(type =
"SEGMENT_LOAD", elementClass =
ElectricitySpotMarket.class, direction = Direction.INCOMING)
31 private double baseLoad;
33 private double currentLoad;
39 public void setSegment(
Segment segment) {
40 this.segment = segment;
44 return electricitySpotMarket;
48 this.electricitySpotMarket = electricitySpotMarket;
51 public double getBaseLoad() {
55 public void setBaseLoad(
double baseLoad) {
56 this.baseLoad = baseLoad;
60 public double getCurrentLoad() {
64 public void setCurrentLoad(
double currentLoad) {
65 this.currentLoad = currentLoad;
69 public String toString() {
70 return "segment: " + segment +
" load: " + getBaseLoad();