EMlab-generation Documentation  1.0
Documentation of the EMLab-Generation model.
EnergyConsumer.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.agent;
17 
18 import org.springframework.data.neo4j.annotation.NodeEntity;
19 
20 import agentspring.agent.Agent;
21 import agentspring.simulation.SimulationParameter;
22 
23 @NodeEntity
24 public class EnergyConsumer extends DecarbonizationAgent implements Agent {
25 
26  @SimulationParameter(label = "Maximum coverage fraction of long-term contracts", from = 0, to = 0.25)
27  private double ltcMaximumCoverageFraction;
28 
29  @SimulationParameter(label = "Contract duration preference factor", from = 0, to = 1)
30  private double contractDurationPreferenceFactor;
31 
32  @SimulationParameter(label = "Contract willingness to pay factor", from = 1, to = 2)
33  private double contractWillingnessToPayFactor;
34 
35  public double getLtcMaximumCoverageFraction() {
36  return ltcMaximumCoverageFraction;
37  }
38 
39  public void setLtcMaximumCoverageFraction(double ltcMaximumCoverageFraction) {
40  this.ltcMaximumCoverageFraction = ltcMaximumCoverageFraction;
41  }
42 
43  public double getContractDurationPreferenceFactor() {
44  return contractDurationPreferenceFactor;
45  }
46 
47  public void setContractDurationPreferenceFactor(double contractDurationPreferenceFactor) {
48  this.contractDurationPreferenceFactor = contractDurationPreferenceFactor;
49  }
50 
51  public double getContractWillingnessToPayFactor() {
52  return contractWillingnessToPayFactor;
53  }
54 
55  public void setContractWillingnessToPayFactor(double contractWillingnessToPayFactor) {
56  this.contractWillingnessToPayFactor = contractWillingnessToPayFactor;
57  }
58 }