oclIskindOf() error [message #548420] |
Wed, 21 July 2010 14:31 |
Eclipse User |
|
|
|
Hi,
A question regarding oclIsKindOf() :
let g be the input model. If I have the following class structure:
tdg.guarana.task.Task
tdg.guarana.task.Router
tdg.guarana.task.Correlator
Router extends Task
Correlator extends Router
In a loop I want to discover if a given task a subtype of Router, is it possible to do this?
// self is a container of concrete tasks
self.tasks->forEach(t: g.Task) {
if ( t.oclIsKindOf( g.Router ) ) {
...
}else {
...
}
}
I am getting the following error:
Error: MTTParseError: Cannot find reference: gua.Router, line: 17, column: 26
What is wrong here?
Thanks a lot!
Rafael Z. Frantz
University of Sevilla - Spain
http://www.tdg-seville.info/rzfrantz
Guaraná for Enterprise Application Integration
http://www.tdg-seville.info/rzfrantz/guarana
|
|
|
Powered by
FUDForum. Page generated in 0.03788 seconds