It is currently Wed Feb 08, 2012 6:13 pm

All times are UTC



Welcome
Welcome to RHAPSODY4YOU

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, respond to polls, upload and download content, and access many other special features. Registration is fast, simple, and absolutely free, so please, register to join our community today.





 Page 1 of 1 [ 4 posts ] 
Author Message
 Post subject: RiCIS_PORT
PostPosted: Mon Sep 06, 2010 4:47 pm 

Joined: Mon Sep 06, 2010 1:47 pm
Posts: 2
Hi,
I'm working with rhapsody in C and I have problems whith the RiCIS_PORT Makro.
RiCIS_PORT(me->myport) should return "True" if the event currently handeld is sent via myport, so I used it as a Guard in a state-chart.
but ist doesnt work :x .... the compiler says there are not enough arguments
what do I do wrong????? :?:


Offline
 Profile  
 
 Post subject: Re: RiCIS_PORT
PostPosted: Mon Sep 06, 2010 7:28 pm 

Joined: Wed Oct 31, 2007 3:09 pm
Posts: 58
Location: Milkyway, classic 9-planet solar system
Quote:
#define RiCIS_PORT(INSTANCE, PORT) \
(((INSTANCE) != NULL) ? \
RiCEvent_isPort(INSTANCE->ric_reactive.current_event, &(INSTANCE->PORT)) : 0)

=> RiCIS_PORT(me, myport) :wink:



_________________
May the force be with you ...
Offline
 Profile  
 
 Post subject: Re: RiCIS_PORT
PostPosted: Tue Sep 07, 2010 7:37 am 

Joined: Mon Sep 06, 2010 1:47 pm
Posts: 2
Thanks....its working now
but now the next problem appeared
I want to use an object of the class that contains the statechart where i use RiCIS_PORT as a part in a structurediagram.
Now the compiler says that this Object is no Element of its class and RiCEvent_isPort doesnt have enough arguments
Isn't it possible to use RiCIS_PORT in structurediagrams???? :?:


Offline
 Profile  
 
 Post subject: Re: RiCIS_PORT
PostPosted: Tue Sep 07, 2010 8:20 am 

Joined: Wed Oct 31, 2007 3:09 pm
Posts: 58
Location: Milkyway, classic 9-planet solar system
So you try to call RiCIS_PORT macro from the structured class?

If yes: This is not possible.

You have to call the Macro along of the transistion of the statechart (which is assigned to the nested class, which itself is an object in your structured class). Therefor the call does not change if you instantiate the class with the statemache as a nested part within a structured class, because the call always requires using the local context (which is "me").

Only within "singelton objects" or within "files" you'll have to directly specify the address of the object.



_________________
May the force be with you ...
Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

cron

suspicion-preferred