| 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 String outputFile = null; |
|---|
| 14 | |
|---|
| 15 | public String getOutputFile() { |
|---|
| 16 | return outputFile; |
|---|
| 17 | } |
|---|
| 18 | |
|---|
| 19 | public void setOutputFile(String outputFile) { |
|---|
| 20 | this.outputFile = outputFile; |
|---|
| 21 | } |
|---|
| 22 | |
|---|
| 23 | private static Configuration instance = null; |
|---|
| 24 | |
|---|
| 25 | private Configuration() { |
|---|
| 26 | |
|---|
| 27 | } |
|---|
| 28 | |
|---|
| 29 | public static Configuration instance() { |
|---|
| 30 | if(instance == null) |
|---|
| 31 | instance = new Configuration(); |
|---|
| 32 | return instance; |
|---|
| 33 | } |
|---|
| 34 | |
|---|
| 35 | public boolean isRandomBisection() { |
|---|
| 36 | return randomBisection; |
|---|
| 37 | } |
|---|
| 38 | |
|---|
| 39 | public void setRandomBisection(boolean randomBisection) { |
|---|
| 40 | this.randomBisection = randomBisection; |
|---|
| 41 | } |
|---|
| 42 | |
|---|
| 43 | public int getVerboseLevel() { |
|---|
| 44 | return verboseLevel; |
|---|
| 45 | } |
|---|
| 46 | |
|---|
| 47 | public void setVerboseLevel(int verboseLevel) { |
|---|
| 48 | this.verboseLevel = verboseLevel; |
|---|
| 49 | } |
|---|
| 50 | |
|---|
| 51 | public int getSizeFinerGraph() { |
|---|
| 52 | return sizeFinerGraph; |
|---|
| 53 | } |
|---|
| 54 | |
|---|
| 55 | public void setSizeFinerGraph(int sizeFinerGraph) { |
|---|
| 56 | this.sizeFinerGraph = sizeFinerGraph; |
|---|
| 57 | } |
|---|
| 58 | |
|---|
| 59 | public int getNumberOfClusters() { |
|---|
| 60 | return numberOfClusters; |
|---|
| 61 | } |
|---|
| 62 | |
|---|
| 63 | public void setNumberOfClusters(int numberOfClusters) { |
|---|
| 64 | this.numberOfClusters = numberOfClusters; |
|---|
| 65 | } |
|---|
| 66 | |
|---|
| 67 | |
|---|
| 68 | |
|---|
| 69 | } |
|---|