EMlab-generation Documentation  1.0
Documentation of the EMLab-Generation model.
PowerGeneratingTechnologyNodeLimit.java
1 /*******************************************************************************
2  * Copyright 2013 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.data.neo4j.annotation.NodeEntity;
20 import org.springframework.data.neo4j.annotation.RelatedTo;
21 
32 @NodeEntity
34 
35  @RelatedTo(type = "NODEPGTLIMIT_PGT", elementClass = PowerGeneratingTechnology.class, direction = Direction.OUTGOING)
36  private PowerGeneratingTechnology powerGeneratingTechnology;
37 
38  @RelatedTo(type = "NODEPGTLIMIT_NODE", elementClass = PowerGridNode.class, direction = Direction.OUTGOING)
39  private PowerGridNode powerGridNode;
40 
41  private double permanentUpperCapacityLimit;
42 
43  public PowerGeneratingTechnology getPowerGeneratingTechnology() {
44  return powerGeneratingTechnology;
45  }
46 
47  public void setPowerGeneratingTechnology(PowerGeneratingTechnology powerGeneratingTechnology) {
48  this.powerGeneratingTechnology = powerGeneratingTechnology;
49  }
50 
51  public PowerGridNode getPowerGridNode() {
52  return powerGridNode;
53  }
54 
55  public void setPowerGridNode(PowerGridNode powerGridNode) {
56  this.powerGridNode = powerGridNode;
57  }
58 
59  public double getPermanentUpperCapacityLimit() {
60  return permanentUpperCapacityLimit;
61  }
62 
63  public void setPermanentUpperCapacityLimit(double permanentUpperCapacityLimit) {
64  this.permanentUpperCapacityLimit = permanentUpperCapacityLimit;
65  }
66 
70  public double getUpperCapacityLimit(long time) {
71  return getPermanentUpperCapacityLimit();
72  }
73 
74 }