本文整理汇总了Java中net.sf.taverna.t2.visit.VisitReport类的典型用法代码示例。如果您正苦于以下问题:Java VisitReport类的具体用法?Java VisitReport怎么用?Java VisitReport使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
VisitReport类属于net.sf.taverna.t2.visit包,在下文中一共展示了VisitReport类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: visit
import net.sf.taverna.t2.visit.VisitReport; //导入依赖的package包/类
public VisitReport visit(Object o, List<Object> ancestors) {
Element biomartQueryElement = null;
Activity activity = (Activity) o;
if (activity instanceof BiomartActivity) {
String martQueryText = ((BiomartActivity)activity).getConfiguration().get("martQuery").asText();
SAXBuilder builder = new SAXBuilder();
try {
Document document = builder.build(new StringReader(martQueryText));
biomartQueryElement = document.getRootElement();
} catch (JDOMException | IOException e) {
e.printStackTrace();
}
} else if (activity instanceof DisabledActivity) {
biomartQueryElement = (Element) ((DisabledActivity) activity).getActivityConfiguration();
}
MartQuery biomartQuery = MartServiceXMLHandler.elementToMartQuery(biomartQueryElement, null);
return contactEndpoint(activity, biomartQuery.getMartService().getLocation());
}
开发者ID:apache,项目名称:incubator-taverna-plugin-bioinformatics,代码行数:19,代码来源:BiomartActivityHealthChecker.java
示例2: visit
import net.sf.taverna.t2.visit.VisitReport; //导入依赖的package包/类
public VisitReport visit(BridgeDbActivity activity, List<Object> ancestry) {
BridgeDbActivityConfigurationBean config = activity.getConfiguration();
// We'll build a list of subreports
List<VisitReport> subReports = new ArrayList<VisitReport>();
// if (!config.getExampleUri().isAbsolute()) {
// // Report Severe problems we know won't work
// VisitReport report = new VisitReport(HealthCheck.getInstance(),
// activity, "Example URI must be absolute", HealthCheck.INVALID_URL,
// Status.SEVERE);
// subReports.add(report);
// }
//
// if (config.getExampleString().equals("")) {
// // Warning on possible problems
// subReports.add(new VisitReport(HealthCheck.getInstance(), activity,
// "Example string empty", HealthCheck.NO_CONFIGURATION,
// Status.WARNING));
// }
// The default explanation here will be used if the subreports list is
// empty
return new VisitReport(HealthCheck.getInstance(), activity,
"Example service OK", HealthCheck.NO_PROBLEM, subReports);
}
示例3: visit
import net.sf.taverna.t2.visit.VisitReport; //导入依赖的package包/类
public VisitReport visit(RAWvernaActivity activity, List<Object> ancestry) {
RAWvernaActivityConfigurationBean config = activity.getConfiguration();
// We'll build a list of subreports
List<VisitReport> subReports = new ArrayList<VisitReport>();
if (!config.getExampleUri().isAbsolute()) {
// Report Severe problems we know won't work
VisitReport report = new VisitReport(HealthCheck.getInstance(), activity, "Example URI must be absolute",
HealthCheck.INVALID_URL, Status.SEVERE);
subReports.add(report);
}
if (config.getExampleString().equals("")) {
// Warning on possible problems
subReports.add(new VisitReport(HealthCheck.getInstance(), activity, "Example string empty",
HealthCheck.NO_CONFIGURATION, Status.WARNING));
}
// The default explanation here will be used if the subreports list is
// empty
return new VisitReport(HealthCheck.getInstance(), activity, "RAWverna service OK", HealthCheck.NO_PROBLEM,
subReports);
}
示例4: 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);
}
示例5: 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);
}
示例6: visit
import net.sf.taverna.t2.visit.VisitReport; //导入依赖的package包/类
public VisitReport visit(Object o, List<Object> ancestors) {
Activity activity = (Activity) o;
MobyParseDatatypeActivityConfigurationBean configuration = null;
if (activity instanceof MobyParseDatatypeActivity) {
configuration = (MobyParseDatatypeActivityConfigurationBean) activity.getConfiguration();
} else if (activity instanceof DisabledActivity) {
configuration = (MobyParseDatatypeActivityConfigurationBean) ((DisabledActivity) activity).getActivityConfiguration();
}
return contactEndpoint(activity, configuration.getRegistryEndpoint());
}
开发者ID:apache,项目名称:incubator-taverna-plugin-bioinformatics,代码行数:11,代码来源:MobyParseDatatypeActivityHealthChecker.java
示例7: visit
import net.sf.taverna.t2.visit.VisitReport; //导入依赖的package包/类
public VisitReport visit(Object o, List<Object> ancestors) {
Activity activity = (Activity) o;
BiomobyObjectActivityConfigurationBean configuration = null;
if (activity instanceof BiomobyObjectActivity) {
configuration = (BiomobyObjectActivityConfigurationBean) activity.getConfiguration();
} else if (activity instanceof DisabledActivity) {
configuration = (BiomobyObjectActivityConfigurationBean) ((DisabledActivity) activity).getActivityConfiguration();
}
return contactEndpoint(activity, configuration.getMobyEndpoint());
}
开发者ID:apache,项目名称:incubator-taverna-plugin-bioinformatics,代码行数:12,代码来源:BiomobyObjectActivityHealthChecker.java
示例8: visit
import net.sf.taverna.t2.visit.VisitReport; //导入依赖的package包/类
public VisitReport visit(Object o, List<Object> ancestors) {
Activity activity = (Activity) o;
BiomobyActivityConfigurationBean configuration = null;
if (activity instanceof BiomobyActivity) {
configuration = (BiomobyActivityConfigurationBean) activity.getConfiguration();
} else if (activity instanceof DisabledActivity) {
configuration = (BiomobyActivityConfigurationBean) ((DisabledActivity) activity).getActivityConfiguration();
}
return contactEndpoint(activity, configuration.getMobyEndpoint());
}
开发者ID:apache,项目名称:incubator-taverna-plugin-bioinformatics,代码行数:11,代码来源:BiomobyActivityHealthChecker.java
示例9: visit
import net.sf.taverna.t2.visit.VisitReport; //导入依赖的package包/类
public VisitReport visit(Object o, List<Object> ancestors) {
SoaplabActivityConfigurationBean configuration = null;
Activity activity = (Activity) o;
if (activity instanceof SoaplabActivity) {
configuration = (SoaplabActivityConfigurationBean) activity.getConfiguration();
} else if (activity instanceof DisabledActivity) {
configuration = (SoaplabActivityConfigurationBean) ((DisabledActivity) activity).getActivityConfiguration();
}
return contactEndpoint(activity, configuration.getEndpoint());
}
开发者ID:apache,项目名称:incubator-taverna-plugin-bioinformatics,代码行数:11,代码来源:SoaplabActivityHealthChecker.java
示例10: 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);
}
示例11: 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);
}
示例12: visit
import net.sf.taverna.t2.visit.VisitReport; //导入依赖的package包/类
@Override
public VisitReport visit(JavaFITSEvaluatorActivity activity, List<Object> ancestry) {
VisitReport report = super.visit(activity, ancestry);
report.setMessage("JavaImageEvaluator report");
return report;
}
示例13: visit
import net.sf.taverna.t2.visit.VisitReport; //导入依赖的package包/类
@Override
public VisitReport visit(JavaImageEvaluatorActivity activity, List<Object> ancestry) {
VisitReport report = super.visit(activity, ancestry);
report.setMessage("JavaImageEvaluator report");
return report;
}