EMlab-generation Documentation  1.0
Documentation of the EMLab-Generation model.
Substance.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.springframework.data.neo4j.annotation.NodeEntity;
19 
29 @NodeEntity
30 public class Substance {
31 
32  private String name;
33  private double quality;
34  private double energyDensity;
35  private double co2Density;
36  private String unit;
37 
38  public String getName() {
39  return name;
40  }
41 
42  public void setName(String label) {
43  this.name = label;
44  }
45 
46  public double getQuality() {
47  return quality;
48  }
49 
50  public void setQuality(double quality) {
51  this.quality = quality;
52  }
53 
54  public double getEnergyDensity() {
55  return energyDensity;
56  }
57 
58  public void setEnergyDensity(double energyDensity) {
59  this.energyDensity = energyDensity;
60  }
61 
62  public double getCo2Density() {
63  return co2Density;
64  }
65 
66  public void setCo2Density(double co2Density) {
67  this.co2Density = co2Density;
68  }
69 
70  public String getUnit() {
71  return unit;
72  }
73 
74  public void setUnit(String unit) {
75  this.unit = unit;
76  }
77 
78  public String toString(){
79  return this.getName();
80  }
81 }