Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » GMT (Generative Modeling Technologies) » oclIskindOf() error(oclIskindOf() error)
oclIskindOf() error [message #548420] Wed, 21 July 2010 18:31
Rafael  is currently offline Rafael Friend
Messages: 2
Registered: July 2010
Junior Member
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
Previous Topic:MOFScript
Next Topic:error while checking out AM3
Goto Forum:
  


Current Time: Wed Apr 24 22:36:24 GMT 2024

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

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

Back to the top