Package org.emftrace.metamodel.QUARCModel.Constraints

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


    } else { // instanceof ConstrainedElement

      if (!elementTypeIsIncluded(element))
        return;
      LogicalValues isApplicable = applicabilityTester
          .evaluatePrecondition((ConstrainedElement) element);
      if (isApplicable == LogicalValues.TRUE) {
        ApplicableElement applicableElement = createAndAddApplicableElement(element);
        cacheManager.addRelation(applicableElement,
            targetApplicableElement, relation);
View Full Code Here


   */
  private LogicConditionResultItem evaluateCondition(LogicConditionResultItem logicalValueA,
      LogicalConnectiveTypes logicConditionType, LogicConditionResultItem logicalValueB) {
   
    Map<TechnicalProperty, Boolean> unassignedConstraints = new HashMap<TechnicalProperty, Boolean>();
    LogicalValues result = LogicalValues.INVALID;
   
    if (logicalValueA != null && logicalValueA.getLogicalResultValue() == LogicalValues.INVALID || logicalValueB != null && logicalValueB.getLogicalResultValue() == LogicalValues.INVALID)
      result = LogicalValues.INVALID;
    else {
     
View Full Code Here

   *            a LogicCondition
   * @return the result of the evaluation
   * @throws Exception
   */
  private LogicConditionResultItem evaluateLogicCondition(LogicCondition logicCondition) {
    LogicalValues result = null;
    Map<TechnicalProperty, Boolean> unassignedConstraints = new HashMap<TechnicalProperty, Boolean>();

    LogicConditionResultItem conditonResult = null;
    switch (logicCondition.getLogicalConnectiveType().getValue()) {

View Full Code Here

   * @return the result of the evaluation
   * @throws Exception
   */
  private LogicConditionResultItem evaluateBaseCondition(BaseCondition baseCondtion) {

    LogicalValues result = LogicalValues.UNDEFINED;
    Map<TechnicalProperty, Boolean> unassignedConstraints = new HashMap<TechnicalProperty, Boolean>();
    TechnicalProperty property = baseCondtion.getTechnicalProperty();
    if (property instanceof TechnicalPropertyCategory) {
       new Exception("assigned property must not be a TechnicalPropertyCategory ("+ baseCondtion+ ")").printStackTrace();
       result = LogicalValues.INVALID;
View Full Code Here

TOP

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

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.