[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmt] Re: [MOFScript]i+=1 acturally add by two
|
- From: yeliu@xxxxxx (yeliu )
- Date: Mon, 1 Sep 2008 06:18:55 +0000 (UTC)
- Newsgroups: eclipse.modeling.gmt
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
Hello,
My code looks like this:
var j:Integer =1
o.outgoing->forEach(c:Channel){
'Connect ' o.name'.outport['j']->'c.name ' ->
'c.outputs.first().name '-> 'c.outputs.first().outgoing.first().name ' ->
'o.outgoing.first().outputs.first().outgoing.first().outputs.first().name'.inport['j']'
nl j+=1
}
----------------------
and the generated code looks like this:
Connect s4.outport[1]->ch9 -> n7-> ch11 -> g6.inport[1]
Connect s4.outport[3]->ch10 -> n8-> ch12 -> g6.inport[3]
(there are two elements in o.outgoing.)
Strange
regards
Ye