Package org.eclipse.ocl.uml

Examples of org.eclipse.ocl.uml.RealLiteralExp


    /*else if (tcgOCLAtomConstraint.getElement() instanceof EReferenceImpl) {
      EReferenceImpl oRef = (EReferenceImpl) tcgOCLAtomConstraint.getElement();
      Integer.valueOf(oRef.getDefaultValueLiteral());
    }*/
    else if(tcgOCLAtomConstraint.getElement() instanceof RealLiteralExp){
      RealLiteralExp oRealExp = (RealLiteralExp) tcgOCLAtomConstraint.getElement();
      result.append(oRealExp.getRealSymbol());
    }
    else if(tcgOCLAtomConstraint.getElement() instanceof BooleanLiteralExp){
      BooleanLiteralExp oBoolExp = (BooleanLiteralExp) tcgOCLAtomConstraint.getElement();
      if(oBoolExp.getBooleanSymbol().booleanValue())
        result.append("1");
View Full Code Here


        oTCGOCLExpression = oAtom;
        oTCGOCLExpression.setClassification(VariableClassification.INDEPENDENT);       
      }
      //@author Amin Rezaee
      else if(in_oExpression instanceof RealLiteralExp){
        RealLiteralExp oRealExp = (RealLiteralExp)in_oExpression;
        TCGOCLAtom oAtom = GeneratedFactory.eINSTANCE.createTCGOCLAtom();
        oAtom.setElement(oRealExp);
        oTCGOCLExpression = oAtom;
        oTCGOCLExpression.setClassification(VariableClassification.INDEPENDENT)
      }
View Full Code Here

    /*else if (tcgOCLAtomConstraint.getElement() instanceof EReferenceImpl) {
      EReferenceImpl oRef = (EReferenceImpl) tcgOCLAtomConstraint.getElement();
      Integer.valueOf(oRef.getDefaultValueLiteral());
    }*/
    else if(tcgOCLAtomConstraint.getElement() instanceof RealLiteralExp){
      RealLiteralExp oRealExp = (RealLiteralExp) tcgOCLAtomConstraint.getElement();
      result.append(oRealExp.getRealSymbol());
    }
    else if(tcgOCLAtomConstraint.getElement() instanceof BooleanLiteralExp){
      BooleanLiteralExp oBoolExp = (BooleanLiteralExp) tcgOCLAtomConstraint.getElement();
      result.append(oBoolExp.getBooleanSymbol());
    }
View Full Code Here

      if (oPropExp.getElement() instanceof EReferenceImpl) {
        EReferenceImpl oRef = (EReferenceImpl) oPropExp.getElement();
        return Double.valueOf(oRef.getDefaultValueLiteral());
      }
      if (oPropExp.getElement() instanceof RealLiteralExp) {
        RealLiteralExp oRealExp = (RealLiteralExp) oPropExp.getElement();
        return oRealExp.getRealSymbol();
      }
    } else if (in_oTCGOCLExpression instanceof TCGOCLOperation) {
      TCGOCLOperation oOpExp = (TCGOCLOperation) in_oTCGOCLExpression;
      if (oOpExp.getOperationName().compareTo("+") == 0) {
        return getDoubleValue(oOpExp.getLeft()) + getDoubleValue(oOpExp.getRight());
View Full Code Here

      if (oPropExp.getElement() instanceof EReferenceImpl) {
        EReferenceImpl oRef = (EReferenceImpl) oPropExp.getElement();
        return Double.valueOf(oRef.getDefaultValueLiteral());
      }
      if (oPropExp.getElement() instanceof RealLiteralExp) {
        RealLiteralExp oRealExp = (RealLiteralExp) oPropExp.getElement();
        return oRealExp.getRealSymbol();
      }
    } else if (in_oTCGOCLExpression instanceof TCGOCLOperation) {
      TCGOCLOperation oOpExp = (TCGOCLOperation) in_oTCGOCLExpression;
      if (oOpExp.getOperationName().compareTo("+") == 0) {
        return getDoubleValue(oOpExp.getLeft(), in_colValueAssignments) +
View Full Code Here

TOP

Related Classes of org.eclipse.ocl.uml.RealLiteralExp

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.