Skip to main content



      Home
Home » Modeling » Epsilon » [Epsilon] Epsilon does not find a type
[Epsilon] Epsilon does not find a type [message #1689123] Sun, 22 March 2015 15:56 Go to next message
Eclipse UserFriend
I am trying to run the launch but the following error message is generated:

Type 'US! UsElement' not found
at (...us2star.etl@2: 20-2: 32)

I would like to transform the model us into star

-----------------------------------------------------------------------------------
us2star.etl:

rule Role2Actor
transform roleIn : US!UsElement
to actorOut : IstarModel!IstarCompartment {

actorOut.name = roleIn.description;
actorOut.type = roleIn.type.transformInRoleToOutActor();
}

operation String transformInRoleToOutActor() {
if (self = 'ROLE') {
return Target!IStarCompartmentType#ACTOR;
} else {
throw 'Error';
}
}
-----------------------------------------------------------------------------------
modelTest.hutn:
@Spec {
metamodel "UsModel" {
nsUri: "UsModel"
}
}

package {
USNode "USNode1" {
description: "node teste"
elements: UsElement "UsElement1" {
description: "Element teste"
type: ACTION
}
}
}



Too thanks for anyone who can help me
Re: [Epsilon] Epsilon does not find a type [message #1689720 is a reply to message #1689123] Tue, 24 March 2015 03:20 Go to previous message
Eclipse UserFriend
Hi Renato,

Could you please put together a minimal example [1] I can use to reproduce this on my side?

Cheers,
Dimitris

[1] http://www.eclipse.org/epsilon/doc/articles/minimal-examples/
Previous Topic:[EWL] Using functions
Next Topic:Custom properties in eugenia generated editor.
Goto Forum:
  


Current Time: Fri Nov 07 08:02:39 EST 2025

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

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

Back to the top