當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。