[EVL] ConstraintTrace [message #493861] |
Wed, 28 October 2009 06:02  |
Eclipse User |
|
|
|
Originally posted by: Juan.deLara.uam.es
Hi,
I'm trying to embed EVL as a language inside
another framework, so that e.g. I can evaluate
EVL constraints when certain events are triggered.
My problem is that EvlContext seems to store a
constraint trace so that no constraint is evaluated
twice. However, this is an inconvenience for me, as
my models may have changed between two evaluations of
the same constraint. The class ConstraintTrace does not
seem to have a method to delete trace elements. Is there
some workaround for that?
Many thanks and regards,
juan.
|
|
|
Re: [EVL] ConstraintTrace [message #493886 is a reply to message #493861] |
Wed, 28 October 2009 06:58  |
Eclipse User |
|
|
|
Hi Juan,
The only way to do this currently is to initialize a new EvlContext
every time and pass it as parameter to the check(Object self,
IEvlContect context) method of EvlConstraint - but this is not very
efficient. Could you please file a bugzilla so that we can keep track of
this?
Cheers,
Dimitris
Juan de Lara wrote:
>
> Hi,
>
> I'm trying to embed EVL as a language inside
> another framework, so that e.g. I can evaluate
> EVL constraints when certain events are triggered.
> My problem is that EvlContext seems to store a
> constraint trace so that no constraint is evaluated
> twice. However, this is an inconvenience for me, as
> my models may have changed between two evaluations of
> the same constraint. The class ConstraintTrace does not
> seem to have a method to delete trace elements. Is there
> some workaround for that?
>
> Many thanks and regards,
>
> juan.
--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
|
|
|
Re: [EVL] ConstraintTrace [message #582346 is a reply to message #493861] |
Wed, 28 October 2009 06:58  |
Eclipse User |
|
|
|
Hi Juan,
The only way to do this currently is to initialize a new EvlContext
every time and pass it as parameter to the check(Object self,
IEvlContect context) method of EvlConstraint - but this is not very
efficient. Could you please file a bugzilla so that we can keep track of
this?
Cheers,
Dimitris
Juan de Lara wrote:
>
> Hi,
>
> I'm trying to embed EVL as a language inside
> another framework, so that e.g. I can evaluate
> EVL constraints when certain events are triggered.
> My problem is that EvlContext seems to store a
> constraint trace so that no constraint is evaluated
> twice. However, this is an inconvenience for me, as
> my models may have changed between two evaluations of
> the same constraint. The class ConstraintTrace does not
> seem to have a method to delete trace elements. Is there
> some workaround for that?
>
> Many thanks and regards,
>
> juan.
--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
|
|
|
Powered by
FUDForum. Page generated in 0.06835 seconds