Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » OCL Tuple Problem
OCL Tuple Problem [message #585826] Tue, 22 August 2006 03:17
Eclipse UserFriend
OK this is a little bit complex:

In the oclconsole I have to evaluate Methods:
One can evaluate only one expression, and the other can evaluate defines
and expressions.

I evaluate the following to statements:
define:
theCompoundQuery(InfC:Set(Information), LToolC:Set(LogicalTool)) :
Set(Tuple(
i : Information,
lt: LogicalTool,
r : Boolean )) =
InfC->collect( info:Information | LToolC->collect(
ltool:LogicalTool |
Tuple {
i : Information = info,
lt: LogicalTool = ltool,
r : Boolean = theCheck(info, ltool)
}))->asSet()
expression:
theCompoundQuery(self.informations,self.logicalTools)->asOrderedSet()- >at(1).i


My problem:
theCompoundQuery returns Tuples like
Tuple{i = Information XDF, lt = Paper Based System PN, r = false}
Tuple{i = Information XLI, lt = Paper Based System PN, r = true}
Tuple{i = Information XDF, lt = IT Base System PACS, r = false}

so the expression takes the first Tuple and returns the information.

My problem, if I use my method which adds the definition to the
IOCLHelper, everything works fine.

But if I use only the method for the expression, i get the following error:
The feature 'i' is not a valid feature

But if I evaluate:
theCompoundQuery(self.informations,self.logicalTools)->asOrderedSet()
I get the Tuples?

Chris
Previous Topic:CDO and Boolean
Next Topic:CDO and Boolean
Goto Forum:
  


Current Time: Sat Jul 05 23:56:42 EDT 2025

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

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

Back to the top