Commit 5cd18cb8 authored by Philipp Spohr's avatar Philipp Spohr
Browse files

Cosmetic and fix for wrong gap

parent 1322c5aa
......@@ -152,7 +152,7 @@ public class AlgorithmTask extends AbstractTask {
@Override
public void updateGap(double gap) {
taskMonitor.setStatusMessage(LocalizationManager.get("currentGap")+": "+gap*100+"%");
taskMonitor.setStatusMessage(LocalizationManager.get("currentGap")+": "+Util.twoDecimals.format(gap)+"%");
}
}
......
package de.hhu.ba.yoshikoWrapper.core;
import java.text.DecimalFormat;
public class Util {
final static DecimalFormat twoDecimals =new DecimalFormat("0.00");
}
......@@ -88,7 +88,7 @@ public class ResultPanel extends JPanel implements CytoPanelComponent{
marker.add(new JLabel(
LocalizationManager.get("instance")+" "+i+" "+
LocalizationManager.get("gap")+": "+
(100*result.flags.getInstances().get(i))+"%")
((int)(100*result.flags.getInstances().get(i)))+"%")
);
}
}
......
......@@ -57,7 +57,7 @@ continueTimeout = The ILP has exceeded the given time limit. Do you want to cont
timeoutTitle = Timeout
incompleteResult = This run yielded no usable result!
optimal = Optimal Solution
notOptimal = Not Optimal Solution
notOptimal = Non-Optimal Solution
ilpMarker = ILP Properties
timeoutMarker = Timed Out
instance = Instance
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment