ports = processor.getOutputPorts(); if (ports.length > 0) { linkMenu
if ((startPort instanceof InputPort && processor.getOutputPorts().length > 0) || processor.getInputPorts().length > 0)
Map outputMap = new HashMap(); OutputPort myOutput = proc.getOutputPorts()[0]; String outputType = myOutput.getSyntacticType();
OutputPort[] originalPorts = ap.getOriginalProcessor().getOutputPorts(); for (int i = 0; i < originalPorts.length; i++) { JMenuItem item = new JMenuItem(originalPorts[i].getName(), TavernaIcons.outputPortIcon);
private void populatePortSymanticTypeDetails(Processor processor, RshellActivityConfigurationBean bean) throws ActivityTranslationException { List<RShellPortSymanticTypeBean> inputDefinitions = new ArrayList<RShellPortSymanticTypeBean>(); List<RShellPortSymanticTypeBean> outputDefinitions = new ArrayList<RShellPortSymanticTypeBean>(); for (InputPort inputPort : processor.getInputPorts()) { RShellPortSymanticTypeBean symanticTypeBean = new RShellPortSymanticTypeBean(); symanticTypeBean.setName(inputPort.getName()); symanticTypeBean.setSymanticType(getSymanticType(inputPort)); inputDefinitions.add(symanticTypeBean); } for (OutputPort outPort : processor.getOutputPorts()) { RShellPortSymanticTypeBean symanticTypeBean = new RShellPortSymanticTypeBean(); symanticTypeBean.setName(outPort.getName()); symanticTypeBean.setSymanticType(getSymanticType(outPort)); outputDefinitions.add(symanticTypeBean); } bean.setInputSymanticTypes(inputDefinitions); bean.setOutputSymanticTypes(outputDefinitions); }
private void populatePortSymanticTypeDetails(Processor processor, RshellActivityConfigurationBean bean) throws ActivityTranslationException { List<RShellPortSymanticTypeBean> inputDefinitions = new ArrayList<RShellPortSymanticTypeBean>(); List<RShellPortSymanticTypeBean> outputDefinitions = new ArrayList<RShellPortSymanticTypeBean>(); for (InputPort inputPort : processor.getInputPorts()) { RShellPortSymanticTypeBean symanticTypeBean = new RShellPortSymanticTypeBean(); symanticTypeBean.setName(inputPort.getName()); symanticTypeBean.setSymanticType(getSymanticType(inputPort)); inputDefinitions.add(symanticTypeBean); } for (OutputPort outPort : processor.getOutputPorts()) { RShellPortSymanticTypeBean symanticTypeBean = new RShellPortSymanticTypeBean(); symanticTypeBean.setName(outPort.getName()); symanticTypeBean.setSymanticType(getSymanticType(outPort)); outputDefinitions.add(symanticTypeBean); } bean.setInputSymanticTypes(inputDefinitions); bean.setOutputSymanticTypes(outputDefinitions); }
if (startPort instanceof InputPort) ports = processor.getOutputPorts();
for (OutputPort outPort : processor.getOutputPorts()) { ActivityOutputPortDefinitionBean bean = new ActivityOutputPortDefinitionBean(); bean.setName(outPort.getName());
m.addDataConstraint(new DataConstraint(m, port, ip[i])); OutputPort[] op = p.getOutputPorts(); for (int i = 0; i < op.length; i++) { String portName = op[i].getName();
DataConstraint constraint = new DataConstraint( scuflModel, stringConstantProcessor .getOutputPorts()[0], t1InputPort); scuflModel.addDataConstraint(constraint); } catch (ProcessorCreationException e) {
DataConstraint constraint = new DataConstraint( scuflModel, stringConstantProcessor .getOutputPorts()[0], t1InputPort); scuflModel.addDataConstraint(constraint); } catch (ProcessorCreationException e) {