1   package eu.fbk.shell.mdfsa.data.structures;
2   
3   import java.io.Serializable;
4   import java.util.ArrayList;
5   import java.util.HashMap;
6   import java.util.Properties;
7   
8   public class SerializableDomainGraph implements Serializable {
9     
10    private static final long serialVersionUID = 1L;
11    
12    private Properties prp;
13    private Graph graph;
14    private HashMap<Long, FuzzyMembership> polarities;
15    private HashMap<Long, ArrayList<Double>> conceptsConvergenceIterationsValues;
16    private HashMap<Long, Double> startPolarities;
17    private HashMap<Long, Double> tempInDomainStartPolarities;
18    private HashMap<Long, Double> tempOutDomainStartPolarities;
19    private HashMap<Long, Double> currentPolarities;
20    private HashMap<Long, Double> tokensCounter;
21    private HashMap<Long, Double> inDomainTokensCounter;
22    private HashMap<Long, Double> outDomainTokensCounter;
23    private double currentGraphConvergenceValue;
24    private double currentAveragePolarity;
25    private int iteration;
26    private double propagationRate;
27    private double convergenceLimit;
28    private double deadzone;
29    private double annealingRate;
30    
31    public SerializableDomainGraph() {}
32  
33    public Properties getPrp() {
34      return prp;
35    }
36  
37    public void setPrp(Properties prp) {
38      this.prp = prp;
39    }
40  
41    public Graph getGraph() {
42      return graph;
43    }
44  
45    public void setGraph(Graph graph) {
46      this.graph = graph;
47    }
48  
49    public HashMap<Long, FuzzyMembership> getPolarities() {
50      return polarities;
51    }
52  
53    public void setPolarities(HashMap<Long, FuzzyMembership> polarities) {
54      this.polarities = polarities;
55    }
56  
57    public HashMap<Long, ArrayList<Double>> getConceptsConvergenceIterationsValues() {
58      return conceptsConvergenceIterationsValues;
59    }
60  
61    public void setConceptsConvergenceIterationsValues(HashMap<Long, ArrayList<Double>> conceptsConvergenceIterationsValues) {
62      this.conceptsConvergenceIterationsValues = conceptsConvergenceIterationsValues;
63    }
64  
65    public HashMap<Long, Double> getStartPolarities() {
66      return startPolarities;
67    }
68  
69    public void setStartPolarities(HashMap<Long, Double> startPolarities) {
70      this.startPolarities = startPolarities;
71    }
72  
73    public HashMap<Long, Double> getTempInDomainStartPolarities() {
74      return tempInDomainStartPolarities;
75    }
76  
77    public void setTempInDomainStartPolarities(HashMap<Long, Double> tempInDomainStartPolarities) {
78      this.tempInDomainStartPolarities = tempInDomainStartPolarities;
79    }
80  
81    public HashMap<Long, Double> getTempOutDomainStartPolarities() {
82      return tempOutDomainStartPolarities;
83    }
84  
85    public void setTempOutDomainStartPolarities(HashMap<Long, Double> tempOutDomainStartPolarities) {
86      this.tempOutDomainStartPolarities = tempOutDomainStartPolarities;
87    }
88  
89    public HashMap<Long, Double> getCurrentPolarities() {
90      return currentPolarities;
91    }
92  
93    public void setCurrentPolarities(HashMap<Long, Double> currentPolarities) {
94      this.currentPolarities = currentPolarities;
95    }
96  
97    public HashMap<Long, Double> getTokensCounter() {
98      return tokensCounter;
99    }
100 
101   public void setTokensCounter(HashMap<Long, Double> tokensCounter) {
102     this.tokensCounter = tokensCounter;
103   }
104 
105   public HashMap<Long, Double> getInDomainTokensCounter() {
106     return inDomainTokensCounter;
107   }
108 
109   public void setInDomainTokensCounter(HashMap<Long, Double> inDomainTokensCounter) {
110     this.inDomainTokensCounter = inDomainTokensCounter;
111   }
112 
113   public HashMap<Long, Double> getOutDomainTokensCounter() {
114     return outDomainTokensCounter;
115   }
116 
117   public void setOutDomainTokensCounter(HashMap<Long, Double> outDomainTokensCounter) {
118     this.outDomainTokensCounter = outDomainTokensCounter;
119   }
120 
121   public double getCurrentGraphConvergenceValue() {
122     return currentGraphConvergenceValue;
123   }
124 
125   public void setCurrentGraphConvergenceValue(double currentGraphConvergenceValue) {
126     this.currentGraphConvergenceValue = currentGraphConvergenceValue;
127   }
128 
129   public double getCurrentAveragePolarity() {
130     return currentAveragePolarity;
131   }
132 
133   public void setCurrentAveragePolarity(double currentAveragePolarity) {
134     this.currentAveragePolarity = currentAveragePolarity;
135   }
136 
137   public int getIteration() {
138     return iteration;
139   }
140 
141   public void setIteration(int iteration) {
142     this.iteration = iteration;
143   }
144 
145   public double getPropagationRate() {
146     return propagationRate;
147   }
148 
149   public void setPropagationRate(double propagationRate) {
150     this.propagationRate = propagationRate;
151   }
152 
153   public double getConvergenceLimit() {
154     return convergenceLimit;
155   }
156 
157   public void setConvergenceLimit(double convergenceLimit) {
158     this.convergenceLimit = convergenceLimit;
159   }
160 
161   public double getDeadzone() {
162     return deadzone;
163   }
164 
165   public void setDeadzone(double deadzone) {
166     this.deadzone = deadzone;
167   }
168 
169   public double getAnnealingRate() {
170     return annealingRate;
171   }
172 
173   public void setAnnealingRate(double annealingRate) {
174     this.annealingRate = annealingRate;
175   }
176 
177   public static long getSerialversionuid() {
178     return serialVersionUID;
179   }
180 }