EMlab-generation Documentation  1.0
Documentation of the EMLab-Generation model.
DecarbonizationAgent.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.AbstractAgent;
21 
22 @NodeEntity
23 public class DecarbonizationAgent extends AbstractAgent {
24 
25  private double cash;
26  private double co2Allowances;
27  private String name;
28  private double lastYearsCo2Allowances;
29 
30  @Override
31  public String getName() {
32  return name;
33  }
34 
35  @Override
36  public void setName(String name) {
37  this.name = name;
38  }
39 
40  public double getCash() {
41  return cash;
42  }
43 
44  public void setCash(double cash) {
45  this.cash = cash;
46  }
47 
48  public double getCo2Allowances() {
49  return co2Allowances;
50  }
51 
52  public void setCo2Allowances(double co2Allowances) {
53  this.co2Allowances = co2Allowances;
54  }
55 
56  public double getLastYearsCo2Allowances() {
57  return lastYearsCo2Allowances;
58  }
59 
60  public void setLastYearsCo2Allowances(double lastYearsCo2Allowances) {
61  this.lastYearsCo2Allowances = lastYearsCo2Allowances;
62  }
63 
64  @Override
65  public String toString() {
66  return getName();
67  }
68 }