EMlab-generation Documentation  1.0
Documentation of the EMLab-Generation model.
PowerGridNode.java
1 /*******************************************************************************
2  * Copyright 2012 the original author or authors.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  ******************************************************************************/
16 package emlab.gen.domain.technology;
17 
18 import org.neo4j.graphdb.Direction;
19 import org.springframework.beans.factory.annotation.Value;
20 import org.springframework.data.neo4j.annotation.NodeEntity;
21 import org.springframework.data.neo4j.annotation.RelatedTo;
22 
25 
26 @NodeEntity
27 public class PowerGridNode {
28 
29  String name;
30 
31  @RelatedTo(type = "REGION", elementClass = Zone.class, direction = Direction.OUTGOING)
32  private Zone zone;
33 
34  @RelatedTo(type = "HOURLYDEMAND", elementClass = HourlyCSVTimeSeries.class, direction = Direction.OUTGOING)
35  private HourlyCSVTimeSeries hourlyDemand;
36 
37  private double capacityMultiplicationFactor;
38 
39  public String getName() {
40  return name;
41  }
42 
43  public void setName(String name) {
44  this.name = name;
45  }
46 
47  public HourlyCSVTimeSeries getHourlyDemand() {
48  return hourlyDemand;
49  }
50 
51  public void setHourlyDemand(HourlyCSVTimeSeries hourlydemand) {
52  this.hourlyDemand = hourlydemand;
53  }
54 
55  public void setZone(Zone zone) {
56  this.zone = zone;
57  }
58 
59  public Zone getZone() {
60  return zone;
61  }
62 
63  @Value("1.0")
64  public double getCapacityMultiplicationFactor() {
65  return capacityMultiplicationFactor;
66  }
67 
68  public void setCapacityMultiplicationFactor(double capacityMultiplicationFactor) {
69  this.capacityMultiplicationFactor = capacityMultiplicationFactor;
70  }
71 
72 }