本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}