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


Java Activity类代码示例

本文整理汇总了Java中net.sf.taverna.t2.workflowmodel.processor.activity.Activity的典型用法代码示例。如果您正苦于以下问题:Java Activity类的具体用法?Java Activity怎么用?Java Activity使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Activity类属于net.sf.taverna.t2.workflowmodel.processor.activity包,在下文中一共展示了Activity类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getSinkPort

import net.sf.taverna.t2.workflowmodel.processor.activity.Activity; //导入依赖的package包/类
private EventHandlingInputPort getSinkPort(
		net.sf.taverna.t2.workflowmodel.Processor processor,
		Activity<?> activity, String portName, List<Edit<?>> editList) {
	InputPort activityPort = net.sf.taverna.t2.workflowmodel.utils.Tools
			.getActivityInputPort(activity, portName);
	// check if processor port exists
	EventHandlingInputPort input = net.sf.taverna.t2.workflowmodel.utils.Tools
			.getProcessorInputPort(processor, activity, activityPort);
	if (input == null) {
		// port doesn't exist so create a processor port and map it
		ProcessorInputPort processorInputPort = edits
				.createProcessorInputPort(processor,
						activityPort.getName(), activityPort.getDepth());
		editList.add(edits.getAddProcessorInputPortEdit(processor,
				processorInputPort));
		editList.add(edits.getAddActivityInputPortMappingEdit(activity,
				activityPort.getName(), activityPort.getName()));
		input = processorInputPort;
	}
	return input;
}
 
开发者ID:apache,项目名称:incubator-taverna-plugin-bioinformatics,代码行数:22,代码来源:AddBiomobyConsumingServiceEdit.java

示例2: getSourcePort

import net.sf.taverna.t2.workflowmodel.processor.activity.Activity; //导入依赖的package包/类
private EventForwardingOutputPort getSourcePort(
		net.sf.taverna.t2.workflowmodel.Processor processor,
		Activity<?> activity, String portName, List<Edit<?>> editList) {
	OutputPort activityPort = net.sf.taverna.t2.workflowmodel.utils.Tools
			.getActivityOutputPort(activity, portName);
	// check if processor port exists
	EventForwardingOutputPort output = net.sf.taverna.t2.workflowmodel.utils.Tools
			.getProcessorOutputPort(processor, activity, activityPort);
	if (output == null) {
		// port doesn't exist so create a processor port and map it
		ProcessorOutputPort processorOutputPort = edits
				.createProcessorOutputPort(processor, activityPort
						.getName(), activityPort.getDepth(), activityPort
						.getGranularDepth());
		editList.add(edits.getAddProcessorOutputPortEdit(processor,
				processorOutputPort));
		editList.add(edits.getAddActivityOutputPortMappingEdit(activity,
				activityPort.getName(), activityPort.getName()));
		output = processorOutputPort;
	}
	return output;
}
 
开发者ID:apache,项目名称:incubator-taverna-plugin-bioinformatics,代码行数:23,代码来源:AddBiomobyConsumingServiceEdit.java

示例3: visit

import net.sf.taverna.t2.workflowmodel.processor.activity.Activity; //导入依赖的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

示例4: visit

import net.sf.taverna.t2.workflowmodel.processor.activity.Activity; //导入依赖的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

示例5: visit

import net.sf.taverna.t2.workflowmodel.processor.activity.Activity; //导入依赖的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

示例6: visit

import net.sf.taverna.t2.workflowmodel.processor.activity.Activity; //导入依赖的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

示例7: visit

import net.sf.taverna.t2.workflowmodel.processor.activity.Activity; //导入依赖的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

示例8: BiomobyActivityContextualView

import net.sf.taverna.t2.workflowmodel.processor.activity.Activity; //导入依赖的package包/类
public BiomobyActivityContextualView(Activity<?> activity, EditManager editManager,
		FileManager fileManager, ActivityIconManager activityIconManager,
		ColourManager colourManager) {
	super(activity, colourManager);
	this.editManager = editManager;
	this.editManager = editManager;
	this.fileManager = fileManager;
	this.activityIconManager = activityIconManager;
}
 
开发者ID:apache,项目名称:incubator-taverna-plugin-bioinformatics,代码行数:10,代码来源:BiomobyActivityContextualView.java

示例9: canProvideIconScore

import net.sf.taverna.t2.workflowmodel.processor.activity.Activity; //导入依赖的package包/类
@Override
public int canProvideIconScore(Activity<?> activity) {
    if (activity instanceof QaActivity) {
        return DEFAULT_ICON;
    }
    return NO_ICON;
}
 
开发者ID:datascience,项目名称:photohawk,代码行数:8,代码来源:CommonServiceIcon.java

示例10: BiomobyObjectActivityContextualView

import net.sf.taverna.t2.workflowmodel.processor.activity.Activity; //导入依赖的package包/类
public BiomobyObjectActivityContextualView(Activity<?> activity, EditManager editManager,
		FileManager fileManager, ColourManager colourManager) {
	super(activity, colourManager);
	this.editManager = editManager;
	this.fileManager = fileManager;
}
 
开发者ID:apache,项目名称:incubator-taverna-plugin-bioinformatics,代码行数:7,代码来源:BiomobyObjectActivityContextualView.java

示例11: MobyParseDatatypeContextualView

import net.sf.taverna.t2.workflowmodel.processor.activity.Activity; //导入依赖的package包/类
public MobyParseDatatypeContextualView(Activity<?> activity, ColourManager colourManager) {
	super(activity, colourManager);
}
 
开发者ID:apache,项目名称:incubator-taverna-plugin-bioinformatics,代码行数:4,代码来源:MobyParseDatatypeContextualView.java

示例12: canProvideIconScore

import net.sf.taverna.t2.workflowmodel.processor.activity.Activity; //导入依赖的package包/类
public int canProvideIconScore(Activity<?> activity) {
	if (activity.getClass().getName().equals(BiomobyObjectActivity.class.getName()))
		return DEFAULT_ICON + 1;
	else
		return NO_ICON;
}
 
开发者ID:apache,项目名称:incubator-taverna-plugin-bioinformatics,代码行数:7,代码来源:BiomobyObjectActivityIcon.java

示例13: getIcon

import net.sf.taverna.t2.workflowmodel.processor.activity.Activity; //导入依赖的package包/类
public Icon getIcon(Activity<?> activity) {
	return new ImageIcon(BiomobyObjectActivityIcon.class.getResource("/biomoby_object.png"));
}
 
开发者ID:apache,项目名称:incubator-taverna-plugin-bioinformatics,代码行数:4,代码来源:BiomobyObjectActivityIcon.java

示例14: canProvideIconScore

import net.sf.taverna.t2.workflowmodel.processor.activity.Activity; //导入依赖的package包/类
public int canProvideIconScore(Activity<?> activity) {
	if (activity.getClass().getName().equals(BiomobyActivity.class.getName()))
		return DEFAULT_ICON + 1;
	else
		return NO_ICON;
}
 
开发者ID:apache,项目名称:incubator-taverna-plugin-bioinformatics,代码行数:7,代码来源:BiomobyActivityIcon.java

示例15: getIcon

import net.sf.taverna.t2.workflowmodel.processor.activity.Activity; //导入依赖的package包/类
public Icon getIcon(Activity<?> activity) {
	return getBiomobyIcon();
}
 
开发者ID:apache,项目名称:incubator-taverna-plugin-bioinformatics,代码行数:4,代码来源:BiomobyActivityIcon.java


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