Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [henshin-dev] Using EOperations as attribute constraints

Hi Elie,

this looks correct to me.

Cheers,
Christian

2015-01-19 15:11 GMT+01:00 Elie Richa <richa@xxxxxxxxxxx>:
Hi Christian,

Thank you for your answer. Another slightly related question below.

> My practical use of this is a higher-order transformation which transforms
> Henshin rules :) I'd like to create a rule which simplifies Formulas when
> the EOperations isTrue() or isFalse() evaluate to true.

I notice the following in NestedConditionImpl.isFalse()

    public boolean isFalse() {
        // There seems to be no situation where we can definitely say it is always false.
        return false;
    }

However, in the case where the nested condition has a formula that
isFalse(), doesn't it mean that the nested condition always evaluates to
false?

So basically is the following implementation of
NestedConditionImpl.isFalse() correct?

    public boolean isFalse() {
        Formula formula = conclusion.getFormula();
        if (formula != null && formula.isFalse()) {
            return true;
        } else {
            return false;
        }
    }

Thanks.

--
Elie
_______________________________________________
henshin-dev mailing list
henshin-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/henshin-dev


Back to the top