Examples of TCGNode


Examples of net.sf.parteg.base.testcasetree.generated.TCGNode

      return null;
    }
    else
    {
      // new node - set name
      TCGNode oNewTCGNode = oAction.getNode();
      oNewTCGNode.setName("tmp " + String.valueOf(getTestCaseGraph().getNodes().size()));
      oNewTCGNode.setInvariant(null);
     
      // copy all parameters of the predecessor
      TCGParameterHelperClass.copyParameters(in_oTCGNode, oNewTCGNode);
     
      // set name of the new connecting transition
      TCGTransition oTCGTransition = oNewTCGNode.getIncomingTransitions().get(0);
      oTCGTransition.setName(in_sTransitionNamePrefix + "_"
          + getTestCaseGraph().getTransitions().size());
      return oTCGTransition;
    }
  }
View Full Code Here

Examples of net.sf.parteg.base.testcasetree.generated.TCGNode

   * @generated
   */
  protected T doSwitch(int classifierID, EObject theEObject) {
    switch (classifierID) {
      case GeneratedPackage.TCG_NODE: {
        TCGNode tcgNode = (TCGNode)theEObject;
        T result = caseTCGNode(tcgNode);
        if (result == null) result = caseTCGElement(tcgNode);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
View Full Code Here

Examples of net.sf.parteg.base.testcasetree.generated.TCGNode

      io_oBaseEquivalenceClass.setMinIncluded(in_bIncluded);
  }

  public static TCGTransition getPrecedingTransition(TCGTransition in_oTransition)
  {
    TCGNode oNode = in_oTransition.getSourceNode();
    if(oNode.getIncomingTransitions().isEmpty())
      return null;
    else
      return oNode.getIncomingTransitions().get(0);
  }
View Full Code Here

Examples of net.sf.parteg.base.testcasetree.generated.TCGNode

   
    EObject oNode = companyFactory.create(GeneratedPackage.eINSTANCE.getTCGNode());
    oNode.eSet(GeneratedPackage.eINSTANCE.getTCGNode_Name(), "testname");
    */
   
    TCGNode oNode = GeneratedFactory.eINSTANCE.createTCGNode();
    oNode.setName("testname2");
   
    // save instance
    m_oResourceXMIOut.getContents().add(oNode);
    try {
      m_oOptions.put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
View Full Code Here

Examples of net.sf.parteg.base.testcasetree.generated.TCGNode

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setSourceNode(TCGNode newSourceNode) {
    TCGNode oldSourceNode = sourceNode;
    sourceNode = newSourceNode;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, GeneratedPackage.TCG_TRANSITION__SOURCE_NODE, oldSourceNode, sourceNode));
  }
View Full Code Here

Examples of net.sf.parteg.base.testcasetree.generated.TCGNode

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setTargetNode(TCGNode newTargetNode) {
    TCGNode oldTargetNode = targetNode;
    targetNode = newTargetNode;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, GeneratedPackage.TCG_TRANSITION__TARGET_NODE, oldTargetNode, targetNode));
  }
View Full Code Here

Examples of net.sf.parteg.base.testcasetree.generated.TCGNode

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setRoot(TCGNode newRoot) {
    TCGNode oldRoot = root;
    root = newRoot;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, GeneratedPackage.TEST_CASE_GRAPH__ROOT, oldRoot, root));
  }
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.