Examples of TCGIntermediateNode


Examples of net.sf.parteg.base.testcasegraph.generated.TCGIntermediateNode

      oRealNode.setContainer(oOriginal.getContainer());
      oRealNode.setSubGraph(oOriginal.getSubGraph());
      oCopy = oRealNode;
    }
    else if(in_oNode instanceof TCGIntermediateNode) {
      TCGIntermediateNode oOriginal = (TCGIntermediateNode)in_oNode;
      TCGIntermediateNode oIntNode =
        in_oTCGHelper.addIntermediateNode(
            oOriginal.getContainer(), oOriginal.getNodeType());
//      oIntNode.setContainer(oOriginal.getContainer());
//      oIntNode.setNodeType(oOriginal.getNodeType());
      oIntNode.getReferencedConnectionPointReferences().addAll(
          oOriginal.getReferencedConnectionPointReferences());
      oIntNode.getReferencedConnectionPoints().addAll(
          oOriginal.getReferencedConnectionPoints());
      oCopy = oIntNode;
    }
   
    if(oCopy != null) {
View Full Code Here

Examples of net.sf.parteg.base.testcasegraph.generated.TCGIntermediateNode

    List<TCGIntermediateNode> colIntermediateNodes =
      TCGRegionHelperClass.findDecisionNodes(in_oRegion);

    //for(TCGIntermediateNode oIntNode : colIntermediateNodes) {
    while(!colIntermediateNodes.isEmpty()) {
      TCGIntermediateNode oIntNode = colIntermediateNodes.get(0);
      // split up decision nodes
      splitNodes(oIntNode, colIntermediateNodes);
      colIntermediateNodes.remove(oIntNode);
    }
View Full Code Here

Examples of net.sf.parteg.base.testcasegraph.generated.TCGIntermediateNode

          Pseudostate oPseudostate = (Pseudostate)oVertex;
         
          // do not copy pseudo states here ...
          if(!(oPseudostate.getKind().equals(PseudostateKind.ENTRY_POINT_LITERAL) ||
              oPseudostate.getKind().equals(PseudostateKind.EXIT_POINT_LITERAL))) {
            TCGIntermediateNode oTCGIntermediateNode =
              m_oTCGHelper.addIntermediateNode(oTCRegion, TCGNodeType.UNKNOWN);
            oTCGIntermediateNode.setName(UMLVertexHelperClass.getFullName(oPseudostate));
            m_colVertex2Node.put(oPseudostate, oTCGIntermediateNode);
   
            oTCGIntermediateNode.setOriginalNode(oVertex);
           
           
            if(oPseudostate.getKind().equals(PseudostateKind.INITIAL_LITERAL)) {
              oTCGIntermediateNode.setNodeType(TCGNodeType.INITIAL);
            }
            else if(oPseudostate.getKind().equals(PseudostateKind.CHOICE_LITERAL) ||
                oPseudostate.getKind().equals(PseudostateKind.JUNCTION_LITERAL)) {
              oTCGIntermediateNode.setNodeType(TCGNodeType.DECISION);
            }
          }
        }
      }
    }
View Full Code Here

Examples of net.sf.parteg.base.testcasegraph.generated.TCGIntermediateNode

  private void copyAllConnectionPoints(StateMachine in_oStateMachine,
      TestCaseGraph in_oTCG)
  {
    for(Pseudostate oPseudoState : in_oStateMachine.getConnectionPoints())
    {
      TCGIntermediateNode oNode = GeneratedFactory.eINSTANCE.createTCGIntermediateNode();
      oNode.setOriginalNode(null); // is pseudostate
      oNode.setUseAllTransitionsInParallel(true);
      oNode.setContainer(in_oTCG);
      in_oTCG.getContainedConnectionPoints().add(oNode);
      m_colVertex2Node.put(oPseudoState, oNode);
      if(oPseudoState.getKind().equals(PseudostateKind.ENTRY_POINT_LITERAL)) {
        oNode.setNodeType(TCGNodeType.ENTRY);
      }
      else if(oPseudoState.getKind().equals(PseudostateKind.EXIT_POINT_LITERAL)) {
        oNode.setNodeType(TCGNodeType.EXIT);
      }
    }   
  }
View Full Code Here

Examples of net.sf.parteg.base.testcasegraph.generated.TCGIntermediateNode

      }
     
      // create nodes for the connectionpoints
//      for(Pseudostate oPseudoState : in_oState.getConnectionPoints()) {
      for(Pseudostate oPseudoState : colPseudoStates) {
        TCGIntermediateNode oNode = GeneratedFactory.eINSTANCE.createTCGIntermediateNode();
        oNode.setOriginalNode(oPseudoState);
        oNode.setUseAllTransitionsInParallel(true);
        in_oNode.getContainedConnectionPoints().add(oNode);
        oNode.setContainer(in_oNode);
        m_colVertex2Node.put(oPseudoState, oNode);
        oNode.setName(oPseudoState.getName());
       
        if(oPseudoState.getKind().equals(PseudostateKind.ENTRY_POINT_LITERAL)) {
          oNode.setNodeType(TCGNodeType.ENTRY);
        }
        else if(oPseudoState.getKind().equals(PseudostateKind.EXIT_POINT_LITERAL)) {
          oNode.setNodeType(TCGNodeType.EXIT);
        }
      }
      // create connectionpointreferences that reference the connectionpoints
      // the following part should be unused - no connectionpointreferences are used for composite states
      for(ConnectionPointReference oCPR : in_oState.getConnections())
      {
        TCGIntermediateNode oNode = GeneratedFactory.eINSTANCE.createTCGIntermediateNode();
        in_oNode.getContainedConnectionPoints().add(oNode);
        oNode.setContainer(in_oNode);
        m_colVertex2Node.put(oCPR, oNode);
        for(Pseudostate oPseudoState : oCPR.getEntries())
        {
          connectConnectionPointAndReference(oPseudoState, oNode);
       
        for(Pseudostate oPseudoState : oCPR.getExits())
        {
          connectConnectionPointAndReference(oPseudoState, oNode);
       
      }
    }
   
    // second case: submachine state - contains just the connectionpointreferences
    if(in_oState.getSubmachine() != null)
    {
      for(ConnectionPointReference oCPR : in_oState.getConnections())
      {
        TCGIntermediateNode oNode = GeneratedFactory.eINSTANCE.createTCGIntermediateNode();
        in_oNode.getContainedConnectionPointReferences().add(oNode);
        oNode.setContainer(in_oNode);
        m_colVertex2Node.put(oCPR, oNode);       
        for(Pseudostate oPseudoState : oCPR.getEntries())
        {
          connectConnectionPointAndReference(oPseudoState, oNode);
       
View Full Code Here

Examples of net.sf.parteg.base.testcasegraph.generated.TCGIntermediateNode

      }
    }
  }
 
  private void connectConnectionPointAndReference(Pseudostate in_oPseudoState, TCGIntermediateNode in_oConnectionPointReference) {
    TCGIntermediateNode oReferencedNode = (TCGIntermediateNode)m_colVertex2Node.get(in_oPseudoState);
    in_oConnectionPointReference.getReferencedConnectionPoints().add(oReferencedNode);
    oReferencedNode.getReferencedConnectionPointReferences().add(in_oConnectionPointReference);   
  }
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.