Examples of TCGParameter


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

      if(oParameter.isReturnParameter()) {
        continue;
      }

      TCGParameter oSuperParam = TCGParameterHelperClass.getSuperParameter(
          oParameter.getParameter());
     
      // the super parameter is not the original parameter and was not used yet
      if(!oSuperParam.equals(oParameter.getParameter()))
      {
        if(!colRealParameter.contains(oSuperParam))
        {
          colRealParameter.add(oSuperParam);
          // print all complex parameters
          m_oFormattedOutput.append(getClassName(oSuperParam.getValueType()) + " ");
          m_oFormattedOutput.appendln(oSuperParam.getName()
              + oParameter.getTransitionInstance().getName() + " = new " +
              getClassName(oSuperParam.getValueType()) + "();");
        }
        // print the referenced attribute properties
        printParameterValue(in_colParameters, oParameter);
      }
      else
View Full Code Here

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

      if(oParameter.isReturnParameter()) {
        continue;
      }

      TCGParameter oSuperParam = TCGParameterHelperClass.getSuperParameter(
          oParameter.getParameter());
     
      // the super parameter is not the original parameter and was not used yet
      if(!oSuperParam.equals(oParameter.getParameter()))
      {
        if(!colRealParameter.contains(oSuperParam))
        {
          colRealParameter.add(oSuperParam);
          // print all complex parameters
          m_oFormattedOutputMethods.append(getClassName(oSuperParam.getValueType()) + " ");
          m_oFormattedOutputMethods.appendln(oSuperParam.getName()
              + oParameter.getTransitionInstance().getName() + ";");
        }
        // print the referenced attribute properties
        printParameterValue(in_colParameters, oParameter,
            m_oFormattedOutputMethods);
View Full Code Here

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

     
      if(oParameter.isReturnParameter()) {
        continue;
      }
     
      TCGParameter oSuperParam = TCGParameterHelperClass.getSuperParameter(
          oParameter.getParameter());

      // idea: check if super parameters have to be declared:
      // the super parameter is not the original parameter and was not used yet
      // furthermore, both used parameters were used at the same transition instance
      if(!oSuperParam.equals(oParameter.getParameter())) {
        if(!(colRealParameter.get(oSuperParam) != null &&
            colRealParameter.get(oSuperParam).equals(oParameter.getTransitionInstance()))) {
          colRealParameter.put(oSuperParam, oParameter.getTransitionInstance());
          // print all complex parameters
          m_oFormattedOutput.append(getClassName(oSuperParam.getValueType()) + " ");
          m_oFormattedOutput.appendln(oSuperParam.getName()
              + oParameter.getTransitionInstance().getName() + " = new " +
              getClassName(oSuperParam.getValueType()) + "();");
        }
        // print the referenced attribute properties
        printParameterValue(in_colParameters, oParameter);
      }
      else
View Full Code Here

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

      if(oParameter.isReturnParameter()) {
        continue;
      }

      TCGParameter oSuperParam = TCGParameterHelperClass.getSuperParameter(
          oParameter.getParameter());
     
      // the super parameter is not the original parameter and was not used yet
      if(!oSuperParam.equals(oParameter.getParameter()))
      {
        if(!colRealParameter.contains(oSuperParam))
        {
          colRealParameter.add(oSuperParam);
          // print all complex parameters
          m_oFormattedOutput.append(getClassName(oSuperParam.getValueType()) + " ");
          m_oFormattedOutput.appendln(oSuperParam.getName()
              + oParameter.getTransitionInstance().getName() + " = new " +
              getClassName(oSuperParam.getValueType()) + "();");
        }
        // print the referenced attribute properties
        printParameterValue(in_colParameters, oParameter);
      }
      else
View Full Code Here

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

    // collect real parameters - and their sub attributes
    HashSet<TCGParameter> colRealParameter = new HashSet<TCGParameter>();
   
    // iterate through all collected parameter instances
    for(EventParameterInstance oParameter : in_colParameters.keySet()) {
      TCGParameter oSuperParam = TCGParameterHelperClass.getSuperParameter(
          oParameter.getParameter());
     
      if(!oParameter.isReturnParameter()) {

        // the super parameter is not the original parameter and was not used yet
        if(!oSuperParam.equals(oParameter.getParameter())) {
          if(!colRealParameter.contains(oSuperParam)) {
            colRealParameter.add(oSuperParam);
            // print all complex parameters
            Variable oVar = TestsuiteexportFactory.eINSTANCE.createVariable();
            oVar.setName(oSuperParam.getName()
                + oParameter.getTransitionInstance().getName());
            oVar.setType(getClassName(oSuperParam.getValueType()));
            oVar.setValue("");
            m_oCurrentTestCase.getDefine().add(oVar);
          }
          // print the referenced attribute properties
          boolean define = false; // only assign parameter values
View Full Code Here

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

      if(oParameter.isReturnParameter()) {
        continue;
      }

      TCGParameter oSuperParam = TCGParameterHelperClass.getSuperParameter(
          oParameter.getParameter());
     
      // the super parameter is not the original parameter and was not used yet
      if(!oSuperParam.equals(oParameter.getParameter()))
      {
        if(!colRealParameter.contains(oSuperParam))
        {
          colRealParameter.add(oSuperParam);
          // print all complex parameters
          m_oFormattedOutput.append(getClassName(oSuperParam.getValueType()) + " ");
          m_oFormattedOutput.appendln(oSuperParam.getName()
              + oParameter.getTransitionInstance().getName() + " = new " +
              getClassName(oSuperParam.getValueType()) + "();");
        }
        // print the referenced attribute properties
        printParameterValue(in_colParameters, oParameter);
      }
      else
View Full Code Here

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

      if(oParameter.isReturnParameter()) {
        continue;
      }

      TCGParameter oSuperParam = TCGParameterHelperClass.getSuperParameter(
          oParameter.getParameter());
     
      // the super parameter is not the original parameter and was not used yet
      if(!oSuperParam.equals(oParameter.getParameter())) {
        if(!colRealParameter.contains(oSuperParam)) {
          colRealParameter.add(oSuperParam);
          // print all complex parameters
          m_oFormattedOutput.append(getClassName(oSuperParam.getValueType()) + " ");
          m_oFormattedOutput.appendln(oSuperParam.getName()
              + oParameter.getTransitionInstance().getName() + " = new " +
              getClassName(oSuperParam.getValueType()) + "();");
        }
        // print the referenced attribute properties
        printParameterValue(in_colParameters, oParameter);
      }
      else {
View Full Code Here

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

      if(oParameter.isReturnParameter()) {
        continue;
      }

      TCGParameter oSuperParam = TCGParameterHelperClass.getSuperParameter(
          oParameter.getParameter());
     
      // the super parameter is not the original parameter and was not used yet
      if(!oSuperParam.equals(oParameter.getParameter()))
      {
        if(!colRealParameter.contains(oSuperParam))
        {
          colRealParameter.add(oSuperParam);
          // print all complex parameters
          m_oFormattedOutput.append(getClassName(oSuperParam.getValueType()) + " ");
          m_oFormattedOutput.appendln(oSuperParam.getName()
              + oParameter.getTransitionInstance().getName() + ";");
        }
        // print the referenced attribute properties
        printParameterValue(in_colParameters, oParameter,
            m_oFormattedOutput);
View Full Code Here

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

        if (result == null) result = caseTCGOCLExpression(tcgoclIfThenElse);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case GeneratedPackage.TCG_PARAMETER: {
        TCGParameter tcgParameter = (TCGParameter)theEObject;
        T result = caseTCGParameter(tcgParameter);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case GeneratedPackage.TCG_PRIMITIVE_PARAMETER: {
View Full Code Here

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

  public TCGParameter getCorrespondingParameterCopyInNode(TCGParameter in_oParameter, TCGNode in_oNode)
  {
    for(TCGParameter oParam : in_oNode.getParameters())
    {
      //if(oParam.getReference().equals(in_oParameter.getReference()))
      TCGParameter oMatchingParam = TCGParameterHelperClass.findParameterElementMatchingToReference(
          oParam, in_oParameter.getReference());
      if (oMatchingParam != null)
      {
        // properties von Parametern haben keine Namen ... warum eigentlich nicht?
        //if(oMatchingParam.getName().compareTo(in_oParameter.getName()) == 0)
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.