Package edu.indiana.extreme.xbaya.component.ws

Examples of edu.indiana.extreme.xbaya.component.ws.WSComponentPort


     */
    private void copyDefaultConfiguration(WSPort toWSPort) {
        // TODO support recursive search for WSPort in case the input is
        // connected to special nodes.
        setName(toWSPort.getName());
        WSComponentPort componentPort = toWSPort.getComponentPort();
        setDescription(componentPort.getDescription());
        setDefaultValue(componentPort.getDefaultValue());
        setMetadata(componentPort.getAppinfo());
    }
View Full Code Here


    Workflow workflow = getWorkflow(workflowFile);

    List<WSComponentPort> inputs = workflow.getInputs();

    for (Iterator iterator = inputs.iterator(); iterator.hasNext();) {
      WSComponentPort componentPort = (WSComponentPort) iterator.next();
      if ("CrossCuttingConfigurations".equals(componentPort.getName())) {
        componentPort
            .setDefaultValue("<CrossCuttingConfigurations  xmlns:lcp=\"http://lead.extreme.indiana.edu/namespaces/2006/lead-crosscut-parameters/\">"
                + "<lcp:nx>803</lcp:nx>"
                + "<lcp:ny>803</lcp:ny>"
                + "<lcp:dx>1000</lcp:dx>"
                + "<lcp:dy>1000</lcp:dy>"
                + "<lcp:ctrlat>35.746513</lcp:ctrlat>"
                + "<lcp:ctrlon>-89.64844</lcp:ctrlon>"
                + "<lcp:fcst_time>18.0</lcp:fcst_time>"
                + "<lcp:start_date>2010/04/08</lcp:start_date>"
                + "<lcp:start_hour>3</lcp:start_hour>"
                + "<lcp:westbc>-93.2417</lcp:westbc>"
                + "<lcp:eastbc>-86.055176</lcp:eastbc>"
                + "<lcp:northbc>38.620865</lcp:northbc>"
                + "<lcp:southbc>32.763515</lcp:southbc>"
                + "</CrossCuttingConfigurations>");
      } else if ("AssimilatedADASData".equals(componentPort.getName())) {
        componentPort
            .setDefaultValue("gsiftp://gridftp.bigred.iu.teragrid.org:2812//N/dc/projects/lead/ldm/pub/other/lead/ADAS/10kmnet000000/ad2010040803.net000000 gsiftp://gridftp.bigred.iu.teragrid.org:2812//N/dc/projects/lead/ldm/pub/other/lead/ADAS/10kmnetgrdbas/ad2010040803.netgrdbas");
      } else if ("NAMInitialData".equals(componentPort.getName())) {
        componentPort
            .setDefaultValue("gsiftp://gridftp.bigred.iu.teragrid.org:2812//N/dc/projects/lead/ldm/pub/native/grid/NCEP/LEADNAM/2010040800/nam40grb2.2010040800f06 gsiftp://gridftp.bigred.iu.teragrid.org:2812//N/dc/projects/lead/ldm/pub/native/grid/NCEP/LEADNAM/2010040800/nam40grb2.2010040800f09 gsiftp://gridftp.bigred.iu.teragrid.org:2812//N/dc/projects/lead/ldm/pub/native/grid/NCEP/LEADNAM/2010040800/nam40grb2.2010040800f12 gsiftp://gridftp.bigred.iu.teragrid.org:2812//N/dc/projects/lead/ldm/pub/native/grid/NCEP/LEADNAM/2010040800/nam40grb2.2010040800f15 gsiftp://gridftp.bigred.iu.teragrid.org:2812//N/dc/projects/lead/ldm/pub/native/grid/NCEP/LEADNAM/2010040800/nam40grb2.2010040800f18 gsiftp://gridftp.bigred.iu.teragrid.org:2812//N/dc/projects/lead/ldm/pub/native/grid/NCEP/LEADNAM/2010040800/nam40grb2.2010040800f21");
      }
    }

    invoke(userName, password, topic, workflow, inputs);
View Full Code Here

  public static void invoke(String userName, String password, String topic,
      Workflow workflow, List<WSComponentPort> inputs, LeadContextHeader leadContextHeader)
      throws WorkflowEngineException, ComponentException, GraphException {

    for (Iterator iterator = inputs.iterator(); iterator.hasNext();) {
      WSComponentPort componentPort = (WSComponentPort) iterator.next();
      Object value = parseValue(componentPort, componentPort
          .getDefaultValue());
      if (value == null) {
        return;
      }
      componentPort.setValue(value);
    }

    GSSCredential proxy = SecurityUtil.getGSSCredential(userName,
        password, XBayaConstants.DEFAULT_MYPROXY_SERVER);
    UserX509Credential credential = new UserX509Credential(proxy,
View Full Code Here

        System.out.println(expBldrWorkflow.getId());
        System.out.println(expBldrWorkflow.getName());
            System.out.println(expBldrWorkflow.getDescription());
            LinkedList<Pair<WSComponentPort, String>> workflowInputExtensionPairs = expBldrWorkflow.getWorkflowInputExtensionPairs();
            for (Pair<WSComponentPort, String> workflowInputExtensionPair : workflowInputExtensionPairs) {
              WSComponentPort input = workflowInputExtensionPair.getLeft();
              System.out.println(workflowInputExtensionPair.getRight());
              System.out.println(input.getName());
          System.out.println(input.getType());
//          System.out.println(input.getValue());
//          XmlElement metadata = input.getAppinfo();
//          if (input.getType().equals(ExperimentBuilderConstants.CROSSCUT_PARAMS_QNAME)) {
//                        if (metadata != null) {
//                            XmlElement elSupportedDurations = metadata.element(ExperimentBuilderConstants.LEAD_SERVICE_METADATA_NS, "supported-durations");
View Full Code Here

TOP

Related Classes of edu.indiana.extreme.xbaya.component.ws.WSComponentPort

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.