當前位置: 首頁>>代碼示例>>Java>>正文


Java AbstractAlgorithmStatus類代碼示例

本文整理匯總了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);
}
 
開發者ID:KeepTheBeats,項目名稱:alevin-svn2,代碼行數:37,代碼來源:ProgressBarDialog.java

示例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());
    }
}
 
開發者ID:liruixpc11,項目名稱:crucian,代碼行數:8,代碼來源:QualityChartDialog.java

示例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())));
    }
}
 
開發者ID:liruixpc11,項目名稱:crucian,代碼行數:8,代碼來源:ConsoleReporter.java

示例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);
}
 
開發者ID:liruixpc11,項目名稱:crucian,代碼行數:37,代碼來源:ProgressBarDialog.java

示例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;
}
 
開發者ID:KeepTheBeats,項目名稱:alevin-svn2,代碼行數:43,代碼來源:ProgressBarDemo.java

示例6: getStati

import mulavito.algorithms.AbstractAlgorithmStatus; //導入依賴的package包/類
@Override
public List<AbstractAlgorithmStatus> getStati() {
	return null;
}
 
開發者ID:KeepTheBeats,項目名稱:alevin-svn2,代碼行數:5,代碼來源:SubgraphIsomorphismStackAlgorithm.java

示例7: getStati

import mulavito.algorithms.AbstractAlgorithmStatus; //導入依賴的package包/類
@Override
public List<AbstractAlgorithmStatus> getStati() {
    return null;
}
 
開發者ID:liruixpc11,項目名稱:crucian,代碼行數:5,代碼來源:SubgraphIsomorphismStackAlgorithm.java

示例8: getStats

import mulavito.algorithms.AbstractAlgorithmStatus; //導入依賴的package包/類
@Override
public List<AbstractAlgorithmStatus> getStats() {
    return new ArrayList<AbstractAlgorithmStatus>(metricResultMap.values());
}
 
開發者ID:liruixpc11,項目名稱:crucian,代碼行數:5,代碼來源:MetricStatsProvider.java

示例9: getStatus

import mulavito.algorithms.AbstractAlgorithmStatus; //導入依賴的package包/類
@Override
public AbstractAlgorithmStatus getStatus(String key) {
    return metricResultMap.get(key);
}
 
開發者ID:liruixpc11,項目名稱:crucian,代碼行數:5,代碼來源:MetricStatsProvider.java

示例10: getStats

import mulavito.algorithms.AbstractAlgorithmStatus; //導入依賴的package包/類
@Override
public List<AbstractAlgorithmStatus> getStats() {
    return new ArrayList<AbstractAlgorithmStatus>(statusMap.values());
}
 
開發者ID:liruixpc11,項目名稱:crucian,代碼行數:5,代碼來源:AbstractBenchmark.java

示例11: getStatus

import mulavito.algorithms.AbstractAlgorithmStatus; //導入依賴的package包/類
@Override
public AbstractAlgorithmStatus getStatus(String key) {
    return statusMap.get(key);
}
 
開發者ID:liruixpc11,項目名稱:crucian,代碼行數:5,代碼來源:AbstractBenchmark.java

示例12: putStatus

import mulavito.algorithms.AbstractAlgorithmStatus; //導入依賴的package包/類
protected void putStatus(AbstractAlgorithmStatus status) {
    statusMap.put(status.getLabel(), status);
}
 
開發者ID:liruixpc11,項目名稱:crucian,代碼行數:4,代碼來源:AbstractBenchmark.java

示例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;
}
 
開發者ID:liruixpc11,項目名稱:crucian,代碼行數:43,代碼來源:ProgressBarDemo.java

示例14: getStatus

import mulavito.algorithms.AbstractAlgorithmStatus; //導入依賴的package包/類
/**
 * 獲取評測結果
 *
 * @return 評測結果
 */
public List<AbstractAlgorithmStatus> getStatus();
 
開發者ID:liruixpc11,項目名稱:crucian,代碼行數:7,代碼來源:Benchmark.java

示例15: getStats

import mulavito.algorithms.AbstractAlgorithmStatus; //導入依賴的package包/類
public List<AbstractAlgorithmStatus> getStats(); 
開發者ID:liruixpc11,項目名稱:crucian,代碼行數:2,代碼來源:IStatsProvider.java


注:本文中的mulavito.algorithms.AbstractAlgorithmStatus類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。