Examples of CepNode


Examples of edu.indiana.extreme.xbaya.graph.dynamic.CepNode

        if (GraphSchema.NODE_TYPE_WS.equals(type)) {
            node = new WSNode(nodeElement);
        } else if(GraphSchema.NODE_TYPE_STREAM_SOURCE.equals(type)){
          node = new StreamSourceNode(nodeElement);
        }else if(GraphSchema.NODE_TYPE_CEP.equals(type)){
          node = new CepNode(nodeElement);
        }else if (GraphSchema.NODE_TYPE_WORKFLOW.equals(type)) {
            node = new WorkflowNode(nodeElement);
        } else if (GraphSchema.NODE_TYPE_INPUT.equals(type)) {
            node = new InputNode(nodeElement);
        } else if (GraphSchema.NODE_TYPE_OUTPUT.equals(type)) {
View Full Code Here

Examples of edu.indiana.extreme.xbaya.graph.dynamic.CepNode

    labelGraph();
    HashMap<String, LinkedList<Node>> graphPartitionSets = getGraphPartitionSets();
    List<Node> joinRequiredNodes = GraphUtil.getJoinRequiredNodes(this);
    for (Node node : joinRequiredNodes) {
      CepNode newCEPJoinNode = (CepNode) new CepComponent()
          .createNode(this);
      String newLabel = GraphUtil.introduceDynamicNode(node,
          newCEPJoinNode, this);
      LinkedList<Node> list = new LinkedList<Node>();
      list.add(newCEPJoinNode);
View Full Code Here

Examples of edu.indiana.extreme.xbaya.graph.dynamic.CepNode

        this.outputs.add(new CepComponentPort(this));
    }
 

    public Node createNode(Graph graph) {
      CepNode node = new CepNode(graph);

        // Copy some infomation from the component

        node.setName(getName());
        node.setComponent(new CepComponent());

        // Creates a unique ID for the node. This has to be after setName().
        node.createID();

        // Creat ports
        createPorts(node);

        return node;
View Full Code Here

Examples of edu.indiana.extreme.xbaya.graph.dynamic.CepNode

      for (DataPort dataPort : outputPorts) {
        wsNode.addOutputPort(new CepPort(dataPort.toXML()));
      }
      return wsNode;
    }else if(node instanceof CepNode){
      CepNode cepNode = new CepNode(((CepNode) node).toXML());
     
      List<DataPort> inputPorts = node.getInputPorts();
      for (DataPort dataPort : inputPorts) {
        CepPort cepPort = new CepPort(dataPort.toXML());
        cepNode.addInputPort(cepPort);
      }
     
      List<DataPort> outputPorts = node.getOutputPorts();
      for (DataPort dataPort : outputPorts) {
        cepNode.addOutputPort(new CepPort(dataPort.toXML()));
      }
      ((NodeImpl)cepNode).setGraph(wsGraph);
      return cepNode;
    }else if(node instanceof InputNode){
      InputNode inputNode = new InputNode(((InputNode) node).toXML());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.