Package org.emftrace.metamodel.QUARCModel.Constraints

Examples of org.emftrace.metamodel.QUARCModel.Constraints.LogicCondition


        BaseConditionOperators.EQUALS, null);

    BaseCondition baseCondition6 = createBaseCondition(property2,
        BaseConditionOperators.EQUALS, null);

    LogicCondition logicCondition1 = ConstraintsFactory.eINSTANCE
        .createLogicCondition();
    logicCondition1.setLogicalConnectiveType(LogicalConnectiveTypes.AND);
    logicCondition1.getBaseConditions().add(baseCondition3);
    logicCondition1.getBaseConditions().add(baseCondition4);

    LogicCondition logicCondition2 = ConstraintsFactory.eINSTANCE
        .createLogicCondition();
    logicCondition2.setLogicalConnectiveType(LogicalConnectiveTypes.AND);
    logicCondition2.getBaseConditions().add(baseCondition5);
    logicCondition2.getBaseConditions().add(baseCondition6);

    Constraint constraint1 = createConstraint(property1, "true");
    constraint1.setOperator(BaseConditionOperators.EQUALS);
    assignedConstraintsSet.getAssignedConstraints().add(constraint1);
View Full Code Here


        BaseConditionOperators.EQUALS, "true");

    BaseCondition baseCondition4 = createBaseCondition(property4,
        BaseConditionOperators.EQUALS, "true");
   
    LogicCondition logicCondition1 = ConstraintsFactory.eINSTANCE.createLogicCondition();
    logicCondition1.setLogicalConnectiveType(LogicalConnectiveTypes.AND);
    logicCondition1.getBaseConditions().add(baseCondition1);
    logicCondition1.getBaseConditions().add(baseCondition2);
   
   
    LogicCondition logicCondition2 = ConstraintsFactory.eINSTANCE.createLogicCondition();
    logicCondition2.setLogicalConnectiveType(LogicalConnectiveTypes.AND);
    logicCondition2.getBaseConditions().add(baseCondition3);
    logicCondition2.getBaseConditions().add(baseCondition4);
   

    precondition.setLogicalConnectiveType(LogicalConnectiveTypes.OR);
    precondition.getLogicConditions().add(logicCondition1);
    precondition.getLogicConditions().add(logicCondition2);
View Full Code Here

TOP

Related Classes of org.emftrace.metamodel.QUARCModel.Constraints.LogicCondition

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.