Package org.emftrace.metamodel.QUARCModel.Constraints

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


    Constraint constraint = createConstraint(property, "false");
    constraint.setOperator(BaseConditionOperators.EQUALS);

    assignedConstraintsSet.getAssignedConstraints().add(constraint);

    BaseCondition baseCondition = createBaseCondition(property,
        BaseConditionOperators.EQUALS, "false");

    precondition.setLogicalConnectiveType(LogicalConnectiveTypes.AND);
    precondition.getBaseConditions().add(baseCondition);
View Full Code Here


    Constraint constraint = createConstraint(property, "true");
    constraint.setOperator(BaseConditionOperators.EQUALS);

    assignedConstraintsSet.getAssignedConstraints().add(constraint);

    BaseCondition baseCondition = createBaseCondition(property,
        BaseConditionOperators.MATCHES, "true");

    precondition.setLogicalConnectiveType(LogicalConnectiveTypes.AND);
    precondition.getBaseConditions().add(baseCondition);

    baseCondition.setOperator(BaseConditionOperators.MATCHES);
    assertIsInvalid();

    baseCondition.setOperator(BaseConditionOperators.GREATER_THAN);
    assertIsInvalid();

    baseCondition.setOperator(BaseConditionOperators.LESS_THAN);
    assertIsInvalid();

    baseCondition.setOperator(BaseConditionOperators.MAXIMAL);
    assertIsInvalid();

    baseCondition.setOperator(BaseConditionOperators.MINIMAL);
    assertIsInvalid();
   
    baseCondition.setOperator(BaseConditionOperators.EQUALS_IGNORE_CASE);
    assertIsInvalid();
   
    baseCondition.setOperator(BaseConditionOperators.APPROXIMATELY_EQUALS);
    assertIsInvalid();
  }
View Full Code Here

    Constraint constraint = createConstraint(property, "true");
    constraint.setOperator(BaseConditionOperators.EQUALS);

    assignedConstraintsSet.getAssignedConstraints().add(constraint);

    BaseCondition baseCondition = createBaseCondition(property,
        BaseConditionOperators.EQUALS, "foo");

    precondition.setLogicalConnectiveType(LogicalConnectiveTypes.AND);
    precondition.getBaseConditions().add(baseCondition);

   
    constraint.setValue("1");
    assertIsInvalid();
   
    constraint.setValue("1.1.2");
    assertIsInvalid();

    constraint.setValue("foo");
    assertIsInvalid();

    constraint.setValue(null);
    assertIsInvalid();

    baseCondition.setValue("1.1.2");
    assertIsInvalid();

    baseCondition.setValue("1");
    assertIsInvalid();

    baseCondition.setValue("foo");
    assertIsInvalid();

    baseCondition.setValue(null);
    assertIsInvalid();

  }
View Full Code Here

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


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


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

    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.AND);
    precondition.getBaseConditions().add(baseCondition1);
    precondition.getBaseConditions().add(baseCondition2);
View Full Code Here

    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.OR);
    precondition.getBaseConditions().add(baseCondition1);
    precondition.getBaseConditions().add(baseCondition2);
View Full Code Here

    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.XOR);
    precondition.getBaseConditions().add(baseCondition1);
    precondition.getBaseConditions().add(baseCondition2);
View Full Code Here

    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.NOR);
    precondition.getBaseConditions().add(baseCondition1);
    precondition.getBaseConditions().add(baseCondition2);
View Full Code Here

    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.NAND);
    precondition.getBaseConditions().add(baseCondition1);
    precondition.getBaseConditions().add(baseCondition2);
View Full Code Here

    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.IMPLIES);
    precondition.getBaseConditions().add(baseCondition1);
    precondition.getBaseConditions().add(baseCondition2);
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.