org.embl.ebi.escience.scufl.Processor.getAlternatesList()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(115)

本文整理了Java中org.embl.ebi.escience.scufl.Processor.getAlternatesList()方法的一些代码示例,展示了Processor.getAlternatesList()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Processor.getAlternatesList()方法的具体详情如下:
包路径:org.embl.ebi.escience.scufl.Processor
类名称:Processor
方法名:getAlternatesList

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());
  }
}

相关文章