Examples of TestCaseGraph


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

      }
    }
    // in_oNode could have changed value
    if(in_oNode instanceof TCGRealNode) {
      TCGRealNode oRealNode = (TCGRealNode)in_oNode;
      TestCaseGraph oSubGraph = oRealNode.getSubGraph();
      if(oSubGraph != null) {
        for(TestCaseRegion oRegion : oSubGraph.getRegions()) {
          int nRegionCounter = searchForMaxDistanceInRegion(
              oRegion, in_nCounter, in_colVisitedNodes);
          if(nRegionCounter > nMaxCounter)
            nMaxCounter = nRegionCounter;
        }
      }
       
      TestCaseGraph oRefSubGraph = oRealNode.getReferencedSubmachine();
      if(oRefSubGraph != null) {
        System.err.println("BasicDistanceSetter does not support referenced submachines");
      }
    }
   
View Full Code Here

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

        T result = caseTestCaseRegion(testCaseRegion);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case GeneratedPackage.TEST_CASE_GRAPH: {
        TestCaseGraph testCaseGraph = (TestCaseGraph)theEObject;
        T result = caseTestCaseGraph(testCaseGraph);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case GeneratedPackage.TCG_TRANSITION: {
View Full Code Here

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

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setSubGraph(TestCaseGraph newSubGraph) {
    TestCaseGraph oldSubGraph = subGraph;
    subGraph = newSubGraph;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, GeneratedPackage.TCG_REAL_NODE__SUB_GRAPH, oldSubGraph, subGraph));
  }
View Full Code Here

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

  public static List<TCGIntermediateNode> getInitialNodesOfState(TCGNode in_oCompositeNode) {
    List<TCGIntermediateNode> colIntNodes = new ArrayList<TCGIntermediateNode>();
   
    if(in_oCompositeNode instanceof TCGRealNode) {
      TCGRealNode oRealNode = (TCGRealNode)in_oCompositeNode;
      TestCaseGraph oSubGraph = oRealNode.getSubGraph();
      if(oSubGraph != null) {
        for(TestCaseRegion oRegion : oSubGraph.getRegions()) {
          for(TCGNode oNode : oRegion.getNodes()) {
            if(oNode instanceof TCGIntermediateNode) {
              TCGIntermediateNode oIntMedNode = (TCGIntermediateNode)oNode;
              if(oIntMedNode.getNodeType().equals(TCGNodeType.INITIAL)) {
                colIntNodes.add(oIntMedNode);
View Full Code Here

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

    }
    return null;
  }
   
  public static TCGRealNode getSuperState(TCGNode in_oNode) {
    TestCaseGraph oTCG = getContainingTestGraph(in_oNode);
    if(oTCG != null)
      return oTCG.getCompositeSuperState();
    return null;
  }
View Full Code Here

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

     
      for(TCGNode oNode : colSearchNewNodes)
      {
        // check composite states
        if(oNode instanceof TCGRealNode) {
          TestCaseGraph oSubGraph = ((TCGRealNode)oNode).getSubGraph();
          if(oSubGraph != null)
          {
            for(TestCaseRegion oRegion : oSubGraph.getRegions())
            {
              // TODO Parallelit�t beachten !!! -> Knotenkombinationen!
              for(TCGNode oSubNode : oRegion.getNodes())
              {
//              if((!TCGNodeHelperClass.
View Full Code Here

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

    int nOldSize = -1;
    int nNewSize = 0;
   
    while(nNewSize != nOldSize) {
      nOldSize = nNewSize;
      TestCaseGraph oTCG = getContainingTestGraph(in_oNode);
      if(oTCG != null) {
       
        // check all super states
        TCGNode oNode = oTCG.getCompositeSuperState();
        if(!out_colNodes.contains(oNode) && oNode != null)
          out_colNodes.add(oNode);
       
        // check for referenced states (via connectionpointreferences)
        for(TCGIntermediateNode oConnectionNode : oTCG.getContainedConnectionPoints()) {
          for(TCGNode oConnectionPointReference : oConnectionNode.getReferencedConnectionPointReferences()) {
            if(!out_colNodes.contains(oConnectionPointReference)) {
              out_colNodes.add(oConnectionPointReference);
            }
          }
View Full Code Here

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

  public static boolean isTopmostInitialNode(TCGNode in_oNode)
  {
    boolean bIsSuperInitialNode = false;
    if(in_oNode instanceof TCGIntermediateNode) {
      TCGIntermediateNode oInterNode = (TCGIntermediateNode)in_oNode;
      TestCaseGraph oTCG = TCGNodeHelperClass.getContainingTestGraph(oInterNode);
      if(oTCG != null) {
        if(oInterNode.getNodeType().equals(TCGNodeType.INITIAL) &&
            oTCG.getCompositeSuperState() == null)
          bIsSuperInitialNode = true;
      }
    }
    return bIsSuperInitialNode;
  }
View Full Code Here

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

  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) {
                colRetValues.addAll(getAllSubNodes(oNode));
              }
View Full Code Here

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

    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
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.