Beispiel #1
0
  public String getPigScript() {
    String result = "";
    Diagram2 diagram = (Diagram2) this.getParent();
    Port sourcePort = (Port) diagram.incomingLinks.get(inport).get(0).getStartNode();
    Component sourceComponent = (Component) sourcePort.getParentNode();

    result += "-- Store Component: " + getDescription().replaceAll("\n", " ") + "\n";
    result += "STORE T_" + sourceComponent.getComponentID() + "\n";
    result += "INTO '" + fileName + "';" + "\n";
    result += "\n";

    return result;
  }
Beispiel #2
0
 @Override
 public void setTop(double top) {
   // TODO Auto-generated method stub
   super.setTop(top);
   outport.setTop((getTop() + getBottom()) / 2.0);
   inport.setTop((getTop() + getBottom()) / 2.0);
 }
Beispiel #3
0
 @Override
 public void setLeft(double left) {
   super.setLeft(left);
   outport.setLeft(this.getRight());
   inport.setLeft(getLeft() - 16);
 }