]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.district.network/src/org/simantics/district/network/visualisations/model/StaticInformationContribution.java
a76e6765c0967e0720bb7ef9f1c0bdcf6fcddb58
[simantics/district.git] / org.simantics.district.network / src / org / simantics / district / network / visualisations / model / StaticInformationContribution.java
1 package org.simantics.district.network.visualisations.model;
2
3 public class StaticInformationContribution {
4
5     private String label;
6     private String moduleName;
7     private String attributeName;
8     private String unit;
9     private String format;
10     
11     // for graph persistence only
12     private boolean used;
13     private boolean useDefault;
14
15     public StaticInformationContribution(String label, String moduleName, String attributeName, String unit, String format) {
16         this.label = label;
17         this.moduleName = moduleName;
18         this.attributeName = attributeName;
19         this.unit = unit;
20         this.format = format;
21     }
22
23     public String getLabel() {
24         return label;
25     }
26     
27     public String getModuleName() {
28         return moduleName;
29     }
30     
31     public String getAttributeName() {
32         return attributeName;
33     }
34
35     public String getUnit() {
36         return unit;
37     }
38
39     public String getFormat() {
40         return format;
41     }
42
43     public boolean isUsed() {
44         return used;
45     }
46     
47     public void setUsed(boolean used) {
48         this.used = used;
49     }
50     
51     public boolean isUseDefault() {
52         return useDefault;
53     }
54     
55     public void setUseDefault(boolean useDefault) {
56         this.useDefault = useDefault;
57     }
58 }