Skip to content
Snippets Groups Projects
Commit 5cd18cb8 authored by Philipp Spohr's avatar Philipp Spohr
Browse files

Cosmetic and fix for wrong gap

parent 1322c5aa
Branches
Tags
No related merge requests found
...@@ -152,7 +152,7 @@ public class AlgorithmTask extends AbstractTask { ...@@ -152,7 +152,7 @@ public class AlgorithmTask extends AbstractTask {
@Override @Override
public void updateGap(double gap) { 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{ ...@@ -88,7 +88,7 @@ public class ResultPanel extends JPanel implements CytoPanelComponent{
marker.add(new JLabel( marker.add(new JLabel(
LocalizationManager.get("instance")+" "+i+" "+ LocalizationManager.get("instance")+" "+i+" "+
LocalizationManager.get("gap")+": "+ 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 ...@@ -57,7 +57,7 @@ continueTimeout = The ILP has exceeded the given time limit. Do you want to cont
timeoutTitle = Timeout timeoutTitle = Timeout
incompleteResult = This run yielded no usable result! incompleteResult = This run yielded no usable result!
optimal = Optimal Solution optimal = Optimal Solution
notOptimal = Not Optimal Solution notOptimal = Non-Optimal Solution
ilpMarker = ILP Properties ilpMarker = ILP Properties
timeoutMarker = Timed Out timeoutMarker = Timed Out
instance = Instance instance = Instance
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment