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 cachePlate = false;
|
||||
private static boolean cacheGraph = false;
|
||||
private static AlgorithmType matchingAlgoritmType = AlgorithmType.HUNGARIAN;
|
||||
private static HeapType priorityQueueHeapType = HeapType.FIBONACCI;
|
||||
private static boolean outputBinary = true;
|
||||
private static boolean outputGraphML = false;
|
||||
@@ -108,7 +109,6 @@ public class BiGpairSEQ {
|
||||
return graphFilename;
|
||||
}
|
||||
|
||||
|
||||
public static boolean cacheCells() {
|
||||
return cacheCells;
|
||||
}
|
||||
@@ -157,10 +157,16 @@ public class BiGpairSEQ {
|
||||
BiGpairSEQ.cacheGraph = cacheGraph;
|
||||
}
|
||||
|
||||
public static String getPriorityQueueHeapType() {
|
||||
return priorityQueueHeapType.name();
|
||||
public static HeapType getPriorityQueueHeapType() {
|
||||
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() {
|
||||
priorityQueueHeapType = HeapType.PAIRING;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user