Skip to main content



      Home
Home » Archived » GMT (Generative Modeling Technologies) » oclIskindOf() error(oclIskindOf() error)
oclIskindOf() error [message #548420] Wed, 21 July 2010 14:31
Eclipse UserFriend
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: Thu Mar 27 23:54:01 EDT 2025

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

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

Back to the top