Package org.emftrace.metamodel.QUARCModel.Constraints

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


    TechnicalProperty property1 = createPropertyWithTypeBoolean();
    TechnicalProperty property2 = createPropertyWithTypeBoolean();
    TechnicalProperty property3 = createPropertyWithTypeBoolean();
    TechnicalProperty property4 = createPropertyWithTypeBoolean();

    BaseCondition baseCondition1 = createBaseCondition(property1,
        BaseConditionOperators.EQUALS, "true");

    BaseCondition baseCondition2 = createBaseCondition(property2,
        BaseConditionOperators.EQUALS, "true");

    precondition.setLogicalConnectiveType(LogicalConnectiveTypes.EQUIVALENT);
    precondition.getBaseConditions().add(baseCondition1);
    precondition.getBaseConditions().add(baseCondition2);
View Full Code Here


    TechnicalProperty property1 = createPropertyWithTypeBoolean();
    TechnicalProperty property2 = createPropertyWithTypeBoolean();


    BaseCondition baseCondition1 = createBaseCondition(property1,
        BaseConditionOperators.EQUALS, null);

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

    // BaseConditions for logicCondition1
    BaseCondition baseCondition3 = createBaseCondition(property2,
        BaseConditionOperators.EQUALS, null);

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

    // BaseCondition for logicCondition2
    BaseCondition baseCondition5 = createBaseCondition(property2,
        BaseConditionOperators.EQUALS, null);

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

    LogicCondition logicCondition1 = ConstraintsFactory.eINSTANCE
        .createLogicCondition();
    logicCondition1.setLogicalConnectiveType(LogicalConnectiveTypes.AND);
View Full Code Here

    TechnicalProperty property5 = createPropertyWithTypeBoolean();
    TechnicalProperty property6 = createPropertyWithTypeBoolean();
    TechnicalProperty property7 = createPropertyWithTypeBoolean();
    TechnicalProperty property8 = createPropertyWithTypeBoolean();

    BaseCondition baseCondition1 = createBaseCondition(property1,
        BaseConditionOperators.EQUALS, "true");

    BaseCondition baseCondition2 = createBaseCondition(property2,
        BaseConditionOperators.EQUALS, "true");
   
    BaseCondition baseCondition3 = createBaseCondition(property3,
        BaseConditionOperators.EQUALS, "true");

    BaseCondition baseCondition4 = createBaseCondition(property4,
        BaseConditionOperators.EQUALS, "true");
   
    LogicCondition logicCondition1 = ConstraintsFactory.eINSTANCE.createLogicCondition();
    logicCondition1.setLogicalConnectiveType(LogicalConnectiveTypes.AND);
    logicCondition1.getBaseConditions().add(baseCondition1);
View Full Code Here

    TechnicalProperty propery = ConstraintsFactory.eINSTANCE
        .createStringTechnicalProperty();
    propery.setName("foo");
    Precondition precondition = ConstraintsFactory.eINSTANCE
        .createPrecondition();
    BaseCondition baseCondition = ConstraintsFactory.eINSTANCE
        .createBaseCondition();
    baseCondition.setTechnicalProperty(propery);
    baseCondition.setValue("true");
    baseCondition.setOperator(BaseConditionOperators.EQUALS);
    precondition.getBaseConditions().add(baseCondition);
    p1.setPrecondition(precondition);

    createDecomposition(gss, p2, p1);
View Full Code Here

    TechnicalProperty propery1 = ConstraintsFactory.eINSTANCE
        .createStringTechnicalProperty();
    propery1.setName("foo");
    Precondition precondition1 = ConstraintsFactory.eINSTANCE
        .createPrecondition();
    BaseCondition baseCondition1 = ConstraintsFactory.eINSTANCE
        .createBaseCondition();
    baseCondition1.setTechnicalProperty(propery1);
    baseCondition1.setValue("true");
    baseCondition1.setOperator(BaseConditionOperators.EQUALS);
    precondition1.getBaseConditions().add(baseCondition1);
    p2.setPrecondition(precondition1);

    TechnicalProperty propery2 = ConstraintsFactory.eINSTANCE
        .createStringTechnicalProperty();
    propery2.setName("bar");
    Precondition precondition2 = ConstraintsFactory.eINSTANCE
        .createPrecondition();
    BaseCondition baseCondition2 = ConstraintsFactory.eINSTANCE
        .createBaseCondition();
    baseCondition2.setTechnicalProperty(propery2);
    baseCondition2.setValue("false");
    baseCondition2.setOperator(BaseConditionOperators.EQUALS);
    precondition2.getBaseConditions().add(baseCondition2);
    p3.setPrecondition(precondition2);

    createDecomposition(gss, p2, p1);
    createDecomposition(gss, p3, p1);
View Full Code Here

    TechnicalProperty propery = ConstraintsFactory.eINSTANCE
        .createStringTechnicalProperty();
    propery.setName("foo");
    Precondition precondition = ConstraintsFactory.eINSTANCE
        .createPrecondition();
    BaseCondition baseCondition = ConstraintsFactory.eINSTANCE
        .createBaseCondition();
    baseCondition.setTechnicalProperty(propery);
    baseCondition.setValue("foo");
    baseCondition.setOperator(BaseConditionOperators.EQUALS);
    precondition.getBaseConditions().add(baseCondition);
    si1.setPrecondition(precondition);

    executeRequiredPhases();
View Full Code Here

    TechnicalProperty propery = ConstraintsFactory.eINSTANCE
        .createStringTechnicalProperty();
    Precondition precondition = ConstraintsFactory.eINSTANCE
        .createPrecondition();
    BaseCondition baseCondition = ConstraintsFactory.eINSTANCE
        .createBaseCondition();
    baseCondition.setTechnicalProperty(propery);
    baseCondition.setValue("foo");
    baseCondition.setOperator(BaseConditionOperators.EQUALS);
    precondition.getBaseConditions().add(baseCondition);
    si2.setPrecondition(precondition);

    createDecomposition(gss, p2, p1);
View Full Code Here

TOP

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

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.