Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » How to access to attributes in other classes?
How to access to attributes in other classes? [message #763690] Sat, 10 December 2011 05:24 Go to previous message
Forenmailadresse is currently offline Forenmailadresse
Messages: 3
Registered: December 2011
Junior Member
Hello community.

First of all, I have to say, that my english isn't very well, sorry for that.
Second part, I have to say is, that I'm new to OCL, that's the reason for my question and I hope, you can help me solving the problem.

I try to create a "post"-OCL expression for the phenomenon "sndCreatePollReq". In this expression, there should be an pollDS-DataSet in the PollDataBase, where title, description and options are the same as the parameters sended with "sndCreatePollReq".

Hope, you can see the following screenshot.
index.php/fa/6416/0/


The problem is, that I have no idea, how to do it right. How can I get access to the pollDS-DataSets in the PollDataBase?

I tried this:
Set {self.PollDataBase.pollDS}->exists(pollDS) and
webPage^sndHandledPollDS()

And it throws the following error message: "Unrecognized variable: (pollDS)"
How to declare a varialbe from type PollDataSet, of which pollDS should be?

Is there a realy good tutorial out there, where I could learn the expressions used in OCL? Such as "->" an how to use them right?

Greetings and thanks for help, Stefan

[Updated on: Sat, 10 December 2011 05:27]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:OCL constraints in Ecore problems view messages
Next Topic:[Announce] Eclipse OCL CORE 4.0.0 (Juno) M4 is now available
Goto Forum:
  


Current Time: Sat May 25 08:27:47 EDT 2013

Powered by FUDForum. Page generated in 0.03966 seconds