Add field for algorithm type, methods to set algorithm type
This commit is contained in:
@@ -13,6 +13,7 @@ public class BiGpairSEQ {
|
|||||||
private static boolean cacheCells = false;
|
private static boolean cacheCells = false;
|
||||||
private static boolean cachePlate = false;
|
private static boolean cachePlate = false;
|
||||||
private static boolean cacheGraph = false;
|
private static boolean cacheGraph = false;
|
||||||
|
private static AlgorithmType matchingAlgoritmType = AlgorithmType.HUNGARIAN;
|
||||||
private static HeapType priorityQueueHeapType = HeapType.FIBONACCI;
|
private static HeapType priorityQueueHeapType = HeapType.FIBONACCI;
|
||||||
private static boolean outputBinary = true;
|
private static boolean outputBinary = true;
|
||||||
private static boolean outputGraphML = false;
|
private static boolean outputGraphML = false;
|
||||||
@@ -108,7 +109,6 @@ public class BiGpairSEQ {
|
|||||||
return graphFilename;
|
return graphFilename;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static boolean cacheCells() {
|
public static boolean cacheCells() {
|
||||||
return cacheCells;
|
return cacheCells;
|
||||||
}
|
}
|
||||||
@@ -157,10 +157,16 @@ public class BiGpairSEQ {
|
|||||||
BiGpairSEQ.cacheGraph = cacheGraph;
|
BiGpairSEQ.cacheGraph = cacheGraph;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getPriorityQueueHeapType() {
|
public static HeapType getPriorityQueueHeapType() {
|
||||||
return priorityQueueHeapType.name();
|
return priorityQueueHeapType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static AlgorithmType getMatchingAlgoritmType() { return matchingAlgoritmType; }
|
||||||
|
|
||||||
|
public static void setHungarianAlgorithm() { matchingAlgoritmType = AlgorithmType.HUNGARIAN; }
|
||||||
|
|
||||||
|
public static void setAuctionAlgorithm() { matchingAlgoritmType = AlgorithmType.AUCTION; }
|
||||||
|
|
||||||
public static void setPairingHeap() {
|
public static void setPairingHeap() {
|
||||||
priorityQueueHeapType = HeapType.PAIRING;
|
priorityQueueHeapType = HeapType.PAIRING;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user