当前位置: 首页>>代码示例>>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;未经允许,请勿转载。