本文整理汇总了Java中mulavito.algorithms.AbstractAlgorithmStatus类的典型用法代码示例。如果您正苦于以下问题:Java AbstractAlgorithmStatus类的具体用法?Java AbstractAlgorithmStatus怎么用?Java AbstractAlgorithmStatus使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AbstractAlgorithmStatus类属于mulavito.algorithms包,在下文中一共展示了AbstractAlgorithmStatus类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: done
import mulavito.algorithms.AbstractAlgorithmStatus; //导入依赖的package包/类
/**
* Executed in event dispatching thread
*/
@Override
public void done() {
cancelBtn.setEnabled(false);
setCursor(null); // turn off the wait cursor
if (throwable == null) {
if (this.isCancelled())
System.err.println("Algorithm was canceled.\n");
else
System.out.println("Algorithm finished normally.\n");
} else {
System.err
.println("Inside of this thread an exception was caused saying:");
throwable.printStackTrace();
}
// Print status.
System.out.println();
for (AbstractAlgorithmStatus status : algo.getStati())
System.out.println(status.getLabel() + ": "
+ Resources.nf.format(status.getValue()) + "("
+ status.getRatio() + "%)");
if (stopTime == -1)
stopTime = System.currentTimeMillis();
System.out.println("Ellapsed time: "
+ Resources.nf.format((stopTime - startTime) / 1000.0)
+ " s");
onDone(algo);
}
示例2: addData
import mulavito.algorithms.AbstractAlgorithmStatus; //导入依赖的package包/类
private void addData(String type, DefaultCategoryDataset dataset, boolean useRate) {
AbstractAlgorithmStatus algorithmStatus = statsProvider.getStatus(type);
if (algorithmStatus != null) {
Number value = useRate ? algorithmStatus.getRatio() : algorithmStatus.getValue();
dataset.addValue(value, type, statsProvider.getTime());
}
}
示例3: report
import mulavito.algorithms.AbstractAlgorithmStatus; //导入依赖的package包/类
@Override
public void report(List<AbstractAlgorithmStatus> statuses) {
System.out.println("=================================================================================");
for (AbstractAlgorithmStatus status : statuses) {
System.out.println(String.format("%s:\t%s", status.getLabel(), new DecimalFormat(",###").format(status.getValue())));
}
}
示例4: done
import mulavito.algorithms.AbstractAlgorithmStatus; //导入依赖的package包/类
/**
* Executed in event dispatching thread
*/
@Override
public void done() {
cancelBtn.setEnabled(false);
setCursor(null); // turn off the wait cursor
if (throwable == null) {
if (this.isCancelled())
System.err.println("Algorithm was canceled.\n");
else
System.out.println("Algorithm finished normally.\n");
} else {
System.err
.println("Inside of this thread an exception was caused saying:");
throwable.printStackTrace();
}
// Print status.
System.out.println();
for (AbstractAlgorithmStatus status : algo.getStati())
System.out.println(status.getLabel() + ": "
+ Resources.nf.format(status.getValue()) + "("
+ status.getRatio() + "%)");
if (stopTime == -1)
stopTime = System.currentTimeMillis();
System.out.println("Ellapsed time: "
+ Resources.nf.format((stopTime - startTime) / 1000.0)
+ " s");
onDone(algo);
}
示例5: getStati
import mulavito.algorithms.AbstractAlgorithmStatus; //导入依赖的package包/类
@Override
public List<AbstractAlgorithmStatus> getStati() {
if (stati == null) {
stati = new LinkedList<AbstractAlgorithmStatus>();
stati.add(new AbstractAlgorithmStatus("Status 1") {
@Override
public Number getValue() {
return status1;
}
@Override
public Number getMaximum() {
return 100;
}
});
stati.add(new AbstractAlgorithmStatus("Status 2") {
@Override
public Number getValue() {
return status2;
}
@Override
public Number getMaximum() {
return 100;
}
});
stati.add(new AbstractAlgorithmStatus("Status 3") {
@Override
public Number getValue() {
return status3;
}
@Override
public Number getMaximum() {
return 100;
}
});
}
return stati;
}
示例6: getStati
import mulavito.algorithms.AbstractAlgorithmStatus; //导入依赖的package包/类
@Override
public List<AbstractAlgorithmStatus> getStati() {
return null;
}
示例7: getStati
import mulavito.algorithms.AbstractAlgorithmStatus; //导入依赖的package包/类
@Override
public List<AbstractAlgorithmStatus> getStati() {
return null;
}
示例8: getStats
import mulavito.algorithms.AbstractAlgorithmStatus; //导入依赖的package包/类
@Override
public List<AbstractAlgorithmStatus> getStats() {
return new ArrayList<AbstractAlgorithmStatus>(metricResultMap.values());
}
示例9: getStatus
import mulavito.algorithms.AbstractAlgorithmStatus; //导入依赖的package包/类
@Override
public AbstractAlgorithmStatus getStatus(String key) {
return metricResultMap.get(key);
}
示例10: getStats
import mulavito.algorithms.AbstractAlgorithmStatus; //导入依赖的package包/类
@Override
public List<AbstractAlgorithmStatus> getStats() {
return new ArrayList<AbstractAlgorithmStatus>(statusMap.values());
}
示例11: getStatus
import mulavito.algorithms.AbstractAlgorithmStatus; //导入依赖的package包/类
@Override
public AbstractAlgorithmStatus getStatus(String key) {
return statusMap.get(key);
}
示例12: putStatus
import mulavito.algorithms.AbstractAlgorithmStatus; //导入依赖的package包/类
protected void putStatus(AbstractAlgorithmStatus status) {
statusMap.put(status.getLabel(), status);
}
示例13: getStati
import mulavito.algorithms.AbstractAlgorithmStatus; //导入依赖的package包/类
@Override
public List<AbstractAlgorithmStatus> getStati() {
if (stati == null) {
stati = new LinkedList<AbstractAlgorithmStatus>();
stati.add(new AbstractAlgorithmStatus("Status 1") {
@Override
public Number getValue() {
return status1;
}
@Override
public Number getMaximum() {
return 100;
}
});
stati.add(new AbstractAlgorithmStatus("Status 2") {
@Override
public Number getValue() {
return status2;
}
@Override
public Number getMaximum() {
return 100;
}
});
stati.add(new AbstractAlgorithmStatus("Status 3") {
@Override
public Number getValue() {
return status3;
}
@Override
public Number getMaximum() {
return 100;
}
});
}
return stati;
}
示例14: getStatus
import mulavito.algorithms.AbstractAlgorithmStatus; //导入依赖的package包/类
/**
* 获取评测结果
*
* @return 评测结果
*/
public List<AbstractAlgorithmStatus> getStatus();
示例15: getStats
import mulavito.algorithms.AbstractAlgorithmStatus; //导入依赖的package包/类
public List<AbstractAlgorithmStatus> getStats();