本文整理了Java中net.sf.taverna.t2.workflowmodel.Processor.getControlledPreconditionList()
方法的一些代码示例,展示了Processor.getControlledPreconditionList()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Processor.getControlledPreconditionList()
方法的具体详情如下:
包路径:net.sf.taverna.t2.workflowmodel.Processor
类名称:Processor
方法名:getControlledPreconditionList
[英]A processor may control zero or more other processors within the same level of the workflow through preconditions.
[中]一个处理器可以通过先决条件控制同一级别工作流中的零个或多个其他处理器。
代码示例来源:origin: net.sf.taverna.t2.core/workflowmodel-impl
public Element conditionsToXML(List<? extends Processor> processors) {
Element result = new Element(CONDITIONS, T2_WORKFLOW_NAMESPACE);
// gather conditions
Set<Condition> conditions = new HashSet<Condition>();
for (Processor p : processors) {
for (Condition c : p.getControlledPreconditionList()) {
conditions.add(c);
}
}
for (Condition c : conditions) {
Element conditionElement = new Element(CONDITION,
T2_WORKFLOW_NAMESPACE);
conditionElement.setAttribute("control", c.getControl()
.getLocalName());
conditionElement.setAttribute("target", c.getTarget()
.getLocalName());
result.addContent(conditionElement);
}
return result;
}
}
代码示例来源:origin: net.sf.taverna.t2/workflowmodel-impl
public Element conditionsToXML(List<? extends Processor> processors) {
Element result = new Element(CONDITIONS, T2_WORKFLOW_NAMESPACE);
// gather conditions
Set<Condition> conditions = new HashSet<Condition>();
for (Processor p : processors) {
for (Condition c : p.getControlledPreconditionList()) {
conditions.add(c);
}
}
for (Condition c : conditions) {
Element conditionElement = new Element(CONDITION,
T2_WORKFLOW_NAMESPACE);
conditionElement.setAttribute("control", c.getControl()
.getLocalName());
conditionElement.setAttribute("target", c.getTarget()
.getLocalName());
result.addContent(conditionElement);
}
return result;
}
}
代码示例来源:origin: net.sf.taverna.t2.ui-components/workflow-explorer
List<? extends Condition> controllinksList = (List<? extends Condition>) processor.getControlledPreconditionList();
if (!controllinksList.isEmpty()) {
for (Condition controllink: controllinksList) {
代码示例来源:origin: net.sf.taverna.t2.core/workflowmodel-api
Processor processor = (Processor) investigate;
List<? extends Condition> controlledConditions = processor
.getControlledPreconditionList();
for (Condition condition : controlledConditions) {
Processor downstreamProc = condition.getTarget();
代码示例来源:origin: net.sf.taverna.t2/maelstrom-impl
public void testCreation() throws ActivityConfigurationException,
EditException {
create();
assertTrue(p1.getControlledPreconditionList().size() == 1);
assertTrue(p2.getPreconditionList().size() == 1);
}
代码示例来源:origin: net.sf.taverna.t2.ui-components/design-ui
List<? extends ProcessorInputPort> inputPorts = processor.getInputPorts();
List<? extends ProcessorOutputPort> outputPorts = processor.getOutputPorts();
List<? extends Condition> controlledPreconditions = processor.getControlledPreconditionList();
List<? extends Condition> preconditions = processor.getPreconditionList();
List<Edit<?>> editList = new ArrayList<Edit<?>>();
代码示例来源:origin: net.sf.taverna.t2.ui-activities/component-activity-ui
private void considerNearestDownstream(TokenProcessingEntity investigate) {
if (investigate instanceof Processor)
for (Condition condition : ((Processor) investigate)
.getControlledPreconditionList())
considerInclusion(condition.getTarget());
for (EventForwardingOutputPort outputPort : investigate
.getOutputPorts())
for (Datalink datalink : outputPort.getOutgoingLinks()) {
EventHandlingInputPort sink = datalink.getSink();
if (sink instanceof ProcessorInputPort)
considerInclusion(((ProcessorInputPort) sink)
.getProcessor());
else if (sink instanceof MergeInputPort)
considerInclusion(((MergeInputPort) sink).getMerge());
// The merge it self doesn't count as a processor
else {
// Ignore dataflow ports
}
}
}
内容来源于网络,如有侵权,请联系作者删除!