Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [henshin-dev] Free parameters not defined when using multi-nodes

Try to add a parameter to the multi rule and in addition a mapping between the 'fn' parameter in the kernel rule and this parameter. Do this using the tree-based editor.
- Thorsten


Hi all,

I am experiencing problems with rule parameters in multi nodes. I cannot
use free parameters when I have multi-nodes.


I made an exemplary case with an exogenous transformation where I need to
convert between different name formats. Without multi-nodes the rule
works. When I use multi-nodes, I get

"Exception in thread "main" java.lang.RuntimeException:
sun.org.mozilla._javascript_.internal.EcmaError: ReferenceError: "fn" is not
defined. (<Unknown source>#1) in <Unknown source> at line number 1
	at 
org.eclipse.emf.henshin.interpreter.impl.EngineImpl.evalAttributeExpression
(EngineImpl.java:732)
	at 
org.eclipse.emf.henshin.interpreter.info.VariableInfo.createConstraints(Var
iableInfo.java:168)
	at 
org.eclipse.emf.henshin.interpreter.info.VariableInfo.createVariables(Varia
bleInfo.java:106)
	at 
org.eclipse.emf.henshin.interpreter.info.VariableInfo.<init>(VariableInfo.j
ava:72)
	at 
org.eclipse.emf.henshin.interpreter.info.RuleInfo.<init>(RuleInfo.java:26)
	at 
org.eclipse.emf.henshin.interpreter.impl.EngineImpl.getRuleInfo(EngineImpl.
java:550)
	at 
org.eclipse.emf.henshin.interpreter.impl.EngineImpl$MatchFinder.<init>(Engi
neImpl.java:240)
	at 
org.eclipse.emf.henshin.interpreter.impl.EngineImpl$MatchFinder.computeNext
Match(EngineImpl.java:336)
	at 
org.eclipse.emf.henshin.interpreter.impl.EngineImpl$MatchFinder.hasNext(Eng
ineImpl.java:253)
	at 
org.eclipse.emf.henshin.interpreter.impl.EngineImpl$MatchFinder.next(Engine
Impl.java:265)
	at 
org.eclipse.emf.henshin.interpreter.impl.EngineImpl$MatchFinder.next(Engine
Impl.java:1)
	at 
org.eclipse.emf.henshin.interpreter.impl.RuleApplicationImpl.execute(RuleAp
plicationImpl.java:89)
	at 
org.eclipse.emf.henshin.interpreter.impl.UnitApplicationImpl.executeRule(Un
itApplicationImpl.java:175)
	at 
org.eclipse.emf.henshin.interpreter.impl.UnitApplicationImpl.doExecute(Unit
ApplicationImpl.java:99)
	at 
org.eclipse.emf.henshin.interpreter.impl.UnitApplicationImpl.execute(UnitAp
plicationImpl.java:89)
	at 
HenshinTransformation.executeTransformation(HenshinTransformation.java:54)
	at HenshinTransformation.main(HenshinTransformation.java:30)"



To show my case I attached the example eclipse project to this mail.

Do I use the multi-nodes incorrectly?

Best regards
Marco




_______________________________________________
henshin-dev mailing list
henshin-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/henshin-dev


--
Dipl. Inf. Thorsten Arendt
Philipps-Universität Marburg
Fachbereich Mathematik und Informatik
Hans-Meerwein-Str.
D-35032 Marburg
Office: 05D03
Phone : +49-6421-2821540
Email : arendt@xxxxxxxxxxxxxxxxxxxxxxxxx
--

Back to the top