Package net.sf.parteg.base.testcasegraph.helperclasses

Examples of net.sf.parteg.base.testcasegraph.helperclasses.VariableReferencer


  public boolean findNodeForConditionToSatisfy(RuntimeState in_oRuntimeState,
      List<TCGOCLExpression> in_colConditionsToBeSatisfied,
      TestCaseGraphHelper in_oTCGHelper,
      List<TCGNode> out_oSelectedNodeList)
  {
    VariableReferencer oReferencer = in_oTCGHelper.getVariableReferencer();
    List<EObject> colReferencedVariables = new ArrayList<EObject>();
    boolean bFoundNodeInExistingRegion = true;
   
    for(TCGOCLExpression oExpression : in_colConditionsToBeSatisfied)
    {
      getPassiveDependentElements(oExpression, colReferencedVariables);
      for(EObject oObject : colReferencedVariables)
      {
        List<TCGElement> colElements = oReferencer.getValuesForKey(oObject);
        if(colElements != null) {
          // evaluate all found references
          for(TCGElement oElement : colElements)
          {
            TestCaseRegion oRegion = null;
View Full Code Here


   
    // prioritize transitions that satisfy some guard conditions
    if(!m_oTestCaseRunnerState.getConditionsToBeSatisfied().isEmpty()) {
      List<Pair<TCGNode, TCGTransition>> oTmpSortList =
        new ArrayList<Pair<TCGNode, TCGTransition>>();
      VariableReferencer oReferencer = m_oTCGHelper.getVariableReferencer();
      List<EObject> colReferencedVariables = new ArrayList<EObject>();
     
      for(TCGOCLExpression oExpression : m_oTestCaseRunnerState.getConditionsToBeSatisfied()) {
        CurrentStateNodeSelector.getPassiveDependentElements(oExpression, colReferencedVariables);
        for(EObject oObject : colReferencedVariables)
        {
          List<TCGElement> colElements = oReferencer.getValuesForKey(oObject);
          if(colElements == null) {
//            System.err.println("no value for variableReferencer ???"); // no transition that influences this parameter
          }
          else {
            for(TCGElement oElement : colElements) {
View Full Code Here

    // create TestCaseGraphTree
    m_oTCG = GeneratedFactory.eINSTANCE.createTestCaseGraph();

    m_oHistory = new SystemModelStateHistory();
    m_colOCLReferencingElements = new VariableReferencer();
    m_colAttributeGetterReferencer = new AttributeGetterReferencer();
    m_oLogger = new Logger();
  }
View Full Code Here

TOP

Related Classes of net.sf.parteg.base.testcasegraph.helperclasses.VariableReferencer

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.