1 package org.simantics.district.network.visualisations.model;
3 public class DynamicSizeContribution {
6 private String moduleName;
7 private String attributeName;
9 private double variableGain;
10 private double variableBias;
11 private DynamicSizeMap defaultSizeMap;
12 private double defaultMin;
13 private double defaultMax;
15 // for graph persistence only
17 private boolean useDefault;
19 public DynamicSizeContribution(String label, String moduleName, String attributeName, String unit,
20 double variableGain, double variableBias, DynamicSizeMap defaultSizeMap, double defaultMin, double defaultMax) {
22 this.moduleName = moduleName;
23 this.attributeName = attributeName;
25 this.variableGain = variableGain;
26 this.variableBias = variableBias;
27 this.defaultSizeMap = defaultSizeMap;
28 this.defaultMin = defaultMin;
29 this.defaultMax = defaultMax;
32 public String getLabel() {
36 public String getModuleName() {
40 public String getAttributeName() {
44 public String getUnit() {
48 public double getVariableGain() {
52 public double getVariableBias() {
56 public DynamicSizeMap getDefaultSizeMap() {
57 return defaultSizeMap;
60 public double getDefaultMin() {
64 public double getDefaultMax() {
68 public boolean isUsed() {
72 public void setUsed(boolean used) {
76 public boolean isUseDefault() {
80 public void setUseDefault(boolean useDefault) {
81 this.useDefault = useDefault;