本文整理匯總了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();