Package net.sf.parteg.base.testcasetree.generated

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


    m_oOptions.put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);

    // create TestCaseGraphTree
    m_oTCG = GeneratedFactory.eINSTANCE.createTestCaseGraph();
    // insert initial root node
    TCGNode oRootNode = GeneratedFactory.eINSTANCE.createTCGNode();
    oRootNode.setDistanceToRoot(0);
    m_oTCG.getNodes().add(oRootNode);
    m_oTCG.setRoot(oRootNode);

    m_nActualStateMachineDepth = 0;
    m_oHistory = new SystemModelStateHistory();
View Full Code Here


    return m_oTCG.getRoot();
  }
 
  public TCGNode addNode()
  {
    TCGNode oNode = GeneratedFactory.eINSTANCE.createTCGNode();
    m_oTCG.getNodes().add(oNode);
    return oNode;
  }
View Full Code Here

    }
  }
 
  public void removeTransition(TCGTransition in_oTransition)
  {
    TCGNode oNode = in_oTransition.getTargetNode();
    if(oNode != null)
    {
      removeNode(oNode);
    }
   
    oNode = in_oTransition.getSourceNode();
    if(oNode != null)
    {
      oNode.getOutgoingTransitions().remove(in_oTransition);
      in_oTransition.setSourceNode(null);
    }

    if(m_oTCG.getTransitions().contains(in_oTransition))
      m_oTCG.getTransitions().remove(in_oTransition);
View Full Code Here

      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

   * @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

      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

   
    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

   * <!-- 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

   * <!-- 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

   * <!-- 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

Related Classes of net.sf.parteg.base.testcasetree.generated.TCGNode

Copyright © 2018 www.massapicom. 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.