Last change
on this file since 25 was
24,
checked in by gnappo, 14 years ago
|
Inserita gestione pannelli per la visualizzazione grafi.
|
File size:
1.1 KB
|
Line | |
---|
1 | package weka.clusterers.forMetisMQI.util; |
---|
2 | |
---|
3 | public class Configuration { |
---|
4 | |
---|
5 | private boolean randomBisection = false; |
---|
6 | |
---|
7 | private int verboseLevel = 1; |
---|
8 | |
---|
9 | private int sizeFinerGraph = 100; |
---|
10 | |
---|
11 | private int numberOfClusters = 2; |
---|
12 | |
---|
13 | private static Configuration instance = null; |
---|
14 | |
---|
15 | private Configuration() { |
---|
16 | |
---|
17 | } |
---|
18 | |
---|
19 | public static Configuration instance() { |
---|
20 | if(instance == null) |
---|
21 | instance = new Configuration(); |
---|
22 | return instance; |
---|
23 | } |
---|
24 | |
---|
25 | public boolean isRandomBisection() { |
---|
26 | return randomBisection; |
---|
27 | } |
---|
28 | |
---|
29 | public void setRandomBisection(boolean randomBisection) { |
---|
30 | this.randomBisection = randomBisection; |
---|
31 | } |
---|
32 | |
---|
33 | public int getVerboseLevel() { |
---|
34 | return verboseLevel; |
---|
35 | } |
---|
36 | |
---|
37 | public void setVerboseLevel(int verboseLevel) { |
---|
38 | this.verboseLevel = verboseLevel; |
---|
39 | } |
---|
40 | |
---|
41 | public int getSizeFinerGraph() { |
---|
42 | return sizeFinerGraph; |
---|
43 | } |
---|
44 | |
---|
45 | public void setSizeFinerGraph(int sizeFinerGraph) { |
---|
46 | this.sizeFinerGraph = sizeFinerGraph; |
---|
47 | } |
---|
48 | |
---|
49 | public int getNumberOfClusters() { |
---|
50 | return numberOfClusters; |
---|
51 | } |
---|
52 | |
---|
53 | public void setNumberOfClusters(int numberOfClusters) { |
---|
54 | this.numberOfClusters = numberOfClusters; |
---|
55 | } |
---|
56 | |
---|
57 | |
---|
58 | |
---|
59 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.