use of org.apache.airavata.workflow.model.component.ComponentDataPort in project airavata by apache.
the class ExitComponent method createPorts.
protected void createPorts(NodeImpl node) {
for (ComponentDataPort input : getInputPorts()) {
DataPort port = input.createPort();
node.addInputPort(port);
}
for (ComponentDataPort output : getOutputPorts()) {
DataPort port = output.createPort();
node.addOutputPort(port);
}
if (this.controlInPort != null) {
ControlPort port = this.controlInPort.createPort();
node.setControlInPort(port);
}
for (ComponentControlPort componentPort : this.controlOutPorts) {
ControlPort port = componentPort.createPort();
node.addControlOutPort(port);
}
if (this.eprPort != null) {
EPRPort port = this.eprPort.createPort();
node.setEPRPort(port);
}
}
use of org.apache.airavata.workflow.model.component.ComponentDataPort in project airavata by apache.
the class TerminateInstanceComponent method toHTML.
/**
* @see org.apache.airavata.workflow.model.component.Component#toHTML()
*/
@Override
public String toHTML() {
StringBuffer buf = new StringBuffer();
buf.append("<html> <h1>" + this.name + " Component</h1>");
buf.append("<h2>Description:</h2> " + this.description);
for (int i = 0; i < this.inputs.size(); i++) {
ComponentDataPort port = this.inputs.get(i);
buf.append("<h3>Input" + (i + 1) + "</h3>");
buf.append("<strong>Name: </strong>");
buf.append("" + port.getName() + "<br>");
buf.append("<strong>Description: </strong>");
buf.append("" + port.getDescription());
}
for (int i = 0; i < this.outputs.size(); i++) {
ComponentDataPort port = this.outputs.get(i);
buf.append("<h3>Output" + (i + 1) + "</h3>");
buf.append("<strong>Name: </strong>");
buf.append("" + port.getName() + "<br>");
buf.append("<strong>Description: </strong>");
buf.append("" + port.getDescription());
}
buf.append("</html>");
return buf.toString();
}
use of org.apache.airavata.workflow.model.component.ComponentDataPort in project airavata by apache.
the class SystemComponent method toHTML.
/**
* @see org.apache.airavata.workflow.model.component.Component#toHTML()
*/
@Override
public String toHTML() {
StringBuffer buf = new StringBuffer();
buf.append("<html> <h1>" + this.name + " Component</h1>");
buf.append("<h2>Description:</h2> " + this.description);
for (int i = 0; i < this.inputs.size(); i++) {
ComponentDataPort port = this.inputs.get(i);
buf.append("<h3>Input" + (i + 1) + "</h3>");
buf.append("<strong>Name: </strong>");
buf.append("" + port.getName() + "<br>");
buf.append("<strong>Description: </strong>");
buf.append("" + port.getDescription());
}
for (int i = 0; i < this.outputs.size(); i++) {
ComponentDataPort port = this.outputs.get(i);
buf.append("<h3>Output" + (i + 1) + "</h3>");
buf.append("<strong>Name: </strong>");
buf.append("" + port.getName() + "<br>");
buf.append("<strong>Description: </strong>");
buf.append("" + port.getDescription());
}
buf.append("</html>");
return buf.toString();
}
use of org.apache.airavata.workflow.model.component.ComponentDataPort in project airavata by apache.
the class DoWhileNode method addInputPort.
/**
* Adds additional input port.
*/
public void addInputPort() {
DoWhileComponent component = getComponent();
ComponentDataPort input = component.getInputPort();
DataPort port = input.createPort();
addInputPort(port);
}
use of org.apache.airavata.workflow.model.component.ComponentDataPort in project airavata by apache.
the class EndBlockNode method addOutputPort.
/**
* Adds additional output port.
*/
public void addOutputPort() {
EndBlockComponent component = getComponent();
ComponentDataPort outputPort = component.getOutputPort();
DataPort port = outputPort.createPort();
addOutputPort(port);
}
Aggregations