Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic Rhapsody (steve huntington)
Decrease font size
Increase font size
Topic Title: Monitoring the event queue?
Topic Summary:
Created On: 20-Dec-2004 20:07
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 20-Dec-2004 20:07
User is offline View Users Profile Print this message


Martin Lokietsch

Posts: 58
Joined: 27-Jul-2004

Hi Everyone!

what's the best way to monitor the load of an event queue in a (non-animated) Rhapsody model during runtime?

Regards,
Martin (L.)

----------------------------
Martin Lokietsch
I-Logix
Report this to a Moderator Report this to a Moderator
 20-Dec-2004 20:08
User is offline View Users Profile Print this message


Stephen Quinn

Posts: 4
Joined: 30-Jun-2004

Hi Martin,

Below is a similar solution that Amos sent me for stepping through an event queue and modifying its events. Solution 1359 in the Knowledge Base also contains this information.

Regards,
Steve

If your class is an active class, the following code should work:

OMList<OMEvent*> messageList;

#ifdef _OMINSTRUMENT

eventQueue->getOmQueue()->getMessageList(messageList); // not guarded

#else

eventQueue->getMessageList(messageList); // not guarded

#endif

OMIterator<OMEvent*> iter(messageList);

for ( ; (*iter) != NULL; ++iter) {

OMEvent* ev = (*iter);

// your code

}
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic Rhapsody forum.
There are currently 1 users logged in.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.