当前位置: 首页>>代码示例>>Java>>正文


Java VisitReport.getWorstStatus方法代码示例

本文整理汇总了Java中net.sf.taverna.t2.visit.VisitReport.getWorstStatus方法的典型用法代码示例。如果您正苦于以下问题:Java VisitReport.getWorstStatus方法的具体用法?Java VisitReport.getWorstStatus怎么用?Java VisitReport.getWorstStatus使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.sf.taverna.t2.visit.VisitReport的用法示例。


在下文中一共展示了VisitReport.getWorstStatus方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: visit

import net.sf.taverna.t2.visit.VisitReport; //导入方法依赖的package包/类
@Override
public VisitReport visit(A activity, List<Object> ancestry) {
    // Get configuration
    C config = activity.getConfiguration();

    // Create List of subreports
    List<VisitReport> subReports = new ArrayList<VisitReport>();

    // Warn if no measurements selected
    if (config.getMeasurementURIs().size() == 0) {
        subReports.add(new VisitReport(HealthCheck.getInstance(), activity, "No measurements specified",
            HealthCheck.NO_CONFIGURATION, Status.WARNING));
    }

    // The default explanation here will be used if the subreports list is
    // empty
    Status status = VisitReport.getWorstStatus(subReports);
    return new VisitReport(HealthCheck.getInstance(), activity, "MeasurementURI report", HealthCheck.NO_PROBLEM,
        status, subReports);
}
 
开发者ID:datascience,项目名称:photohawk,代码行数:21,代码来源:MeasurementURIHealthChecker.java

示例2: visit

import net.sf.taverna.t2.visit.VisitReport; //导入方法依赖的package包/类
@Override
public VisitReport visit(SimpleSSIMActivity activity, List<Object> ancestry) {
    List<VisitReport> subReports = new ArrayList<VisitReport>();

    SimpleSSIMActivityConfigurationBean config = activity.getConfiguration();

    // Check target size
    if (config.getTargetSize() <= 0) {
        subReports.add(new VisitReport(HealthCheck.getInstance(), activity, "Target size must be larger than 0",
            HealthCheck.NO_CONFIGURATION, Status.SEVERE));
    }

    Status status = VisitReport.getWorstStatus(subReports);
    return new VisitReport(HealthCheck.getInstance(), activity, "SSIM report", HealthCheck.NO_PROBLEM, status,
        subReports);
}
 
开发者ID:datascience,项目名称:photohawk,代码行数:17,代码来源:SimpleSSIMActivityHealthChecker.java

示例3: visit

import net.sf.taverna.t2.visit.VisitReport; //导入方法依赖的package包/类
@Override
public VisitReport visit(EqualActivity activity, List<Object> ancestry) {
    List<VisitReport> subReports = new ArrayList<VisitReport>();
    Status status = VisitReport.getWorstStatus(subReports);
    return new VisitReport(HealthCheck.getInstance(), activity, "Equal report", HealthCheck.NO_PROBLEM, status,
        subReports);
}
 
开发者ID:datascience,项目名称:photohawk,代码行数:8,代码来源:EqualActivityHealthChecker.java

示例4: visit

import net.sf.taverna.t2.visit.VisitReport; //导入方法依赖的package包/类
@Override
public VisitReport visit(AEActivity activity, List<Object> ancestry) {
    List<VisitReport> subReports = new ArrayList<VisitReport>();
    Status status = VisitReport.getWorstStatus(subReports);
    return new VisitReport(HealthCheck.getInstance(), activity, "AE report", HealthCheck.NO_PROBLEM, status,
        subReports);
}
 
开发者ID:datascience,项目名称:photohawk,代码行数:8,代码来源:AEActivityHealthChecker.java


注:本文中的net.sf.taverna.t2.visit.VisitReport.getWorstStatus方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。