本文整理了Java中org.embl.ebi.escience.scufl.Processor.removePort()
方法的一些代码示例,展示了Processor.removePort()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Processor.removePort()
方法的具体详情如下:
包路径:org.embl.ebi.escience.scufl.Processor
类名称:Processor
方法名:removePort
暂无
代码示例来源:origin: uk.org.mygrid.taverna.scufl/scufl-ui-api
private void remove(Object object) {
Class clazz = object.getClass();
if (clazz.isArray()) {
Object[] array = (Object[]) object;
for (int index = 0; index < array.length; index++) {
remove(array[index]);
}
} else {
if (object instanceof Collection) {
Iterator iterator = ((Collection) object).iterator();
while (iterator.hasNext()) {
remove(iterator.next());
}
} else if (object instanceof Processor) {
model.destroyProcessor((Processor) object);
} else if (object instanceof Port) {
Port port = (Port) object;
port.getProcessor().removePort(port);
} else if (object instanceof DataConstraint) {
model.destroyDataConstraint((DataConstraint) object);
} else if (object instanceof ConcurrencyConstraint) {
model
.destroyConcurrencyConstraint((ConcurrencyConstraint) object);
}
}
}
}
代码示例来源:origin: uk.org.mygrid.taverna.scufl/scufl-ui
public void remove(Object[] cells)
{
for (int index = 0; index < cells.length; index++)
{
if (cells[index] instanceof Processor)
{
if (cells[index] != model.getWorkflowSinkProcessor()
&& cells[index] != model.getWorkflowSourceProcessor())
{
model.destroyProcessor((Processor) cells[index]);
}
}
else if (cells[index] instanceof DataConstraint)
{
model.destroyDataConstraint((DataConstraint) cells[index]);
}
else if (cells[index] instanceof ConcurrencyConstraint)
{
model.destroyConcurrencyConstraint((ConcurrencyConstraint) cells[index]);
}
else if (cells[index] instanceof Port)
{
// TODO Check port is actually on the workflow edge?
Port port = (Port) cells[index];
port.getProcessor().removePort(port);
}
}
}
内容来源于网络,如有侵权,请联系作者删除!