Examples of TCGRealNode


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

  }
 
  public static List<TCGRealNode> getSuperStates(TCGNode in_oNode) {
 
    List<TCGRealNode> colSuperStates = new ArrayList<TCGRealNode>();
    TCGRealNode oSuperNode = getSuperState(in_oNode);
    while(oSuperNode != null) {
      colSuperStates.add(0, oSuperNode);
      oSuperNode = getSuperState(oSuperNode);
    }
    return colSuperStates;
View Full Code Here

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

    else {
      TCGIntermediateNode oNode = (TCGIntermediateNode)in_oNode;
      if(oNode == null) {
      }
      if(oNode.getContainer() instanceof TestCaseGraph) {
        TCGRealNode oRetNode = ((TestCaseGraph)oNode.getContainer()).getCompositeSuperState();
        if(oRetNode != null)
          return oRetNode.getContainer();
      }
      else if(oNode.getContainer() instanceof TestCaseRegion) {
        return ((TestCaseRegion)oNode.getContainer());
      }
      else if(oNode.getContainer() instanceof TCGRealNode) {
View Full Code Here

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

  }

 
  public static boolean nodeHasNoSubNodes(TCGNode in_oNode) {
    if(in_oNode instanceof TCGRealNode) {
      TCGRealNode oRN = (TCGRealNode)in_oNode;
      return oRN.getSubGraph() == null && oRN.getContainedConnectionPointReferences().isEmpty();
    }
    return true;
  }
View Full Code Here

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

 
  public static List<TCGNode> getAllSubNodes(TCGNode in_oSuperNode) {
    List<TCGNode> colRetValues = new ArrayList<TCGNode>();
   
    if(in_oSuperNode instanceof TCGRealNode) {
      TCGRealNode oRealNode = (TCGRealNode)in_oSuperNode;
      TestCaseGraph oTCG = oRealNode.getSubGraph();
      if(oTCG != null) {
        for(TestCaseRegion oRegion : oTCG.getRegions()) {
          for(TCGNode oNode : oRegion.getNodes()) {
            if(oNode instanceof TCGRealNode) {
              if(((TCGRealNode)oNode).getSubGraph() != null) {
View Full Code Here

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

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setCompositeSuperState(TCGRealNode newCompositeSuperState) {
    TCGRealNode oldCompositeSuperState = compositeSuperState;
    compositeSuperState = newCompositeSuperState;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, GeneratedPackage.TEST_CASE_GRAPH__COMPOSITE_SUPER_STATE, oldCompositeSuperState, compositeSuperState));
  }
View Full Code Here

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

    return colEvents;
  }
 
  public static List<TCGNode> findNodesWithOutOutgoingTransitions(TCGNode in_oSuperNode) {
    if(in_oSuperNode instanceof TCGRealNode) {
      TCGRealNode oNode = (TCGRealNode)in_oSuperNode;
      if(oNode.getSubGraph() != null) {
        if(oNode.getSubGraph().getRegions().size() == 1) {
          // TODO configuration f�r parallele Substatemachines
          return TCGRegionHelperClass.findNodesWithOutOutgoingTransitions(
              oNode.getSubGraph().getRegions().get(0));
        }
      }
      else if(oNode.getReferencedSubmachine() != null) {
        // TODO referenzierte Zustandsmaschinen einbauen
      }
    }
    return new ArrayList<TCGNode>();
  }
View Full Code Here

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

  public static TCGNode copyNodeWithoutTransitions(
      TestCaseGraphHelper in_oTCGHelper,
      TCGNode in_oNode) {
    TCGNode oCopy = null;
    if(in_oNode instanceof TCGRealNode) {
      TCGRealNode oOriginal = (TCGRealNode)in_oNode;
      TCGRealNode oRealNode = in_oTCGHelper.addRealNode(oOriginal.getContainer());
      oRealNode.setCondition(
          TCGDisjunctiveNormalFormHelperClass.copyDNFDeep(oOriginal.getCondition()));
      oRealNode.setContainer(oOriginal.getContainer());
      oRealNode.setSubGraph(oOriginal.getSubGraph());
      oCopy = oRealNode;
    }
    else if(in_oNode instanceof TCGIntermediateNode) {
      TCGIntermediateNode oOriginal = (TCGIntermediateNode)in_oNode;
      TCGIntermediateNode oIntNode =
View Full Code Here

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

    // recursion ...
    List<TCGNode> colNodes = new ArrayList<TCGNode>();
    colNodes.addAll(in_oRegion.getNodes());
    for(TCGNode oNode : colNodes) {
      if(oNode instanceof TCGRealNode) {
        TCGRealNode oRealNode = (TCGRealNode)oNode;
        TestCaseGraph oTCG = oRealNode.getSubGraph();
        if(oTCG == null)
          oTCG = oRealNode.getReferencedSubmachine();
        if(oTCG != null) {
          splitNodes(oTCG);
        }
      }
    }
View Full Code Here

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

      in_colRegions.add(oTCRegion);
      for(Vertex oVertex : in_oRegion.getSubvertices())
      { 
        if(oVertex instanceof State)
        {
          TCGRealNode oTCGRealNode = m_oTCGHelper.addRealNode(oTCRegion);
          oTCGRealNode.setName(UMLVertexHelperClass.getFullName(oVertex));
          m_colVertex2Node.put(oVertex, oTCGRealNode);
          oTCGRealNode.setOriginalNode(oVertex); // used for event parameter instances
         
          // handle state invariants
          addStateInvariant((State)oVertex, oTCGRealNode,
              Configuration.getSplitInequationsBeforeTestGoalDefinition());
         
          // copy also states from composite states and submachine states
          State oState = (State)oVertex;
          if(!oState.getRegions().isEmpty())
          {
            oTCGRealNode.setSubGraph(GeneratedFactory.eINSTANCE.createTestCaseGraph());
            oTCGRealNode.getSubGraph().setCompositeSuperState(oTCGRealNode);
            for(Region oRegion : oState.getRegions())
            {
              copyAllStatesForRegion(oRegion, oTCGRealNode.getSubGraph().getRegions(),
                  io_colStateMachineRegions, io_colSubmachineMapping);
            }
            copyAllConnectionPointsAndReferences(oState, oTCGRealNode);
          } else if(oState.getSubmachine() != null)
          {
            // was the submachine already copied? Then just reference it.
            TestCaseGraph oReferencedTCG = io_colSubmachineMapping.get(oState.getSubmachine());
            if(oReferencedTCG != null)
            {
              oTCGRealNode.setSubGraph(oReferencedTCG);
  //            oReferencedTCG.getSuperStates().add(oTCGNode);
              oReferencedTCG.setCompositeSuperState(oTCGRealNode);
              copyAllConnectionPointsAndReferences(oState, oTCGRealNode);
            } else
            {
              oTCGRealNode.setSubGraph(GeneratedFactory.eINSTANCE.createTestCaseGraph());
  //            oTCGNode.getSubGraph().getSuperStates().add(oTCGNode);
              oTCGRealNode.getSubGraph().setCompositeSuperState(oTCGRealNode);
              io_colSubmachineMapping.put(oState.getSubmachine(), oTCGRealNode.getSubGraph());
              copyAllConnectionPoints(oState.getSubmachine(), oTCGRealNode.getSubGraph());
              copyAllConnectionPointsAndReferences(oState, oTCGRealNode);
              for(Region oRegion : oState.getSubmachine().getRegions())
              {
                copyAllStatesForRegion(oRegion, oTCGRealNode.getSubGraph().getRegions(),
                    io_colStateMachineRegions, io_colSubmachineMapping);
              }         
            }
          }
        }
View Full Code Here

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

      tcgTransitionVisitor(oTransition);
    }
   
    for (TCGNode oNode : oSM.getAllNodes()) {
      if(oNode instanceof TCGRealNode){
        TCGRealNode oRealNode = (TCGRealNode) oNode;
        if(oRealNode.getCondition() != null && !oRealNode.getCondition().getConjunctions().isEmpty()){
          if(oRealNode.getCondition().getOriginalExpression() != null)
            constraintVisitor(oRealNode.getCondition().getOriginalExpression());
        }
      }
    }   
  }
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.