Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Problems with computing title of a fix
Problems with computing title of a fix [message #552515] Thu, 12 August 2010 12:47 Go to next message
Hallvard Traetteberg is currently offline Hallvard TraettebergFriend
Messages: 673
Registered: July 2009
Location: Trondheim, Norway
Senior Member
Hi,

I have an EVL critique, that computes its title, based on the faulty
property:

fix {
title: 'Set value to ' + (self.roleWorkloadRatio / 100)
do {
self.roleWorkloadRatio := self.roleWorkloadRatio / 100;
}
}

The fix itself works, but the title displays as "<error>" and in the
console I find the following message:

Property 'roleWorkloadRatio' not found in object Allocation
[roleWorkloadRatio=80.0]

This doesn't seem right, does it? It looks like the Allocation object is
the context of evaluating the title expression, but still
self.roleWorkloadRatio crashes.

Hallvard
Re: Problems with computing title of a fix [message #552580 is a reply to message #552515] Thu, 12 August 2010 17:08 Go to previous messageGo to next message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Hallvard,

You're right, that doesn't seem right.

I can't see anything wrong with the code. Could you put together a minimal example and send the EVL file, models and metamodels to me? (louis at cs.york.ac.uk) I'll investigate and get back to you.

Cheers,
Louis.
Re: Problems with computing title of a fix [message #593027 is a reply to message #552515] Thu, 12 August 2010 17:08 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Hallvard,

You're right, that doesn't seem right.

I can't see anything wrong with the code. Could you put together a minimal example and send the EVL file, models and metamodels to me? (louis at cs.york.ac.uk) I'll investigate and get back to you.

Cheers,
Louis.
Previous Topic:Problems with computing title of a fix
Next Topic:Problems declaring a Float variable
Goto Forum:
  


Current Time: Tue Apr 23 11:09:14 GMT 2024

Powered by FUDForum. Page generated in 0.02922 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top