本文整理了Java中org.embl.ebi.escience.scufl.Processor.getAlternatesList()
方法的一些代码示例,展示了Processor.getAlternatesList()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Processor.getAlternatesList()
方法的具体详情如下:
包路径:org.embl.ebi.escience.scufl.Processor
类名称:Processor
方法名:getAlternatesList
暂无
代码示例来源:origin: uk.org.mygrid.taverna.scufl/scufl-ui
public void actionPerformed(ActionEvent a) {
// Swap this alternate with the one one lower in the
// list
List theList = parentProcessor.getAlternatesList();
Object o = theList.get(alternateIndex);
theList.remove(o);
theList.add(alternateIndex - 1, o);
parentProcessor.fireModelEvent(new ScuflModelEvent(parentProcessor, "Alternates reordered"));
}
});
代码示例来源:origin: uk.org.mygrid.taverna.scufl/scufl-ui
public void actionPerformed(ActionEvent a) {
// Swap this alternate with the one one lower in the
// list
List theList = parentProcessor.getAlternatesList();
Object o = theList.get(alternateIndex);
theList.remove(o);
theList.add(alternateIndex + 1, o);
parentProcessor.fireModelEvent(new ScuflModelEvent(parentProcessor, "Alternates reordered"));
}
});
代码示例来源:origin: uk.org.mygrid.taverna.scufl/scufl-ui
final int numberOfAlternates = parentProcessor.getAlternatesList().size();
final int alternateIndex = parentProcessor.getAlternatesList().indexOf(alternate);
if (numberOfAlternates > 1 && alternateIndex != -1) {
if (alternateIndex > 0) {
代码示例来源:origin: uk.org.mygrid.taverna/taverna-contrib
/**
* The method which is called when the process needs to be executed
*/
public Map execute(Map inputMap, IProcessorTask parentTask)
throws TaskExecutionException {
if (parentTask.getProcessor().getAlternatesList().size() == 0) {
JOptionPane.showMessageDialog(null,
"No implementation for the abstract processor. Add an alternate to "
+ processor.getName(), "Abstract processor "
+ processor.getName() + " incomplete",
JOptionPane.ERROR_MESSAGE);
throw new TaskExecutionException(
"No implementation for the abstract processor. Add an alternate to "
+ processor.getName());
} else {
logger.info("Encountered Abstract Processor, using alternate.");
throw new TaskExecutionException("Using alternate to "
+ processor.getName());
}
}
内容来源于网络,如有侵权,请联系作者删除!