Skip to main content



      Home
Home » Modeling » Papyrus » TimeEvent(How to define time/duration/interval ...)
TimeEvent [message #1857894] Sat, 04 March 2023 05:55 Go to next message
Eclipse UserFriend
Hello,

is there a tutorial that describes how to create time events.
I have seen state machine diagram images showing "after" or "at" and then showing the time and eventually the time unit.

I've already tried various things but only see "at undefined" shown at the transition.

A step by step description would be helpful.

I like to express:
- event every x
- event once after x

Peter
Re: TimeEvent [message #1857918 is a reply to message #1857894] Mon, 06 March 2023 13:00 Go to previous messageGo to next message
Eclipse UserFriend
Hello, just found this examples:
https://www.eclipse.org/forums/index.php?t=getfile&id=42997&

How was the after {...} created. Is this just text or real model information?

Peter
Re: TimeEvent [message #1857941 is a reply to message #1857918] Tue, 07 March 2023 09:20 Go to previous messageGo to next message
Eclipse UserFriend
Hello Peter,

the "after" is a calculated part of the label that corresponds to a time event. You can add a new trigger via in the Property view ("+" button in the trigger section). The trigger in turn can be associated with an event, e.g. a time event. You can for instance create a new time event via the "+" button or select an existing one.

Another possibility to create a time event is to use the xtext-based transition editor (F2 after selecting a transition). You can for instance write
after "5ms"
and the editor creates the trigger and the associated time event automatically - if it accepts the syntax.
Please note that the specific contents of a time specification in the example (from Papyrus SW designer) corresponds to MARTE's value specification language (VSL) that has a quite verbose way to specify the tuple of a number and a unit.

Hope that helps
Re: TimeEvent [message #1857944 is a reply to message #1857941] Tue, 07 March 2023 13:02 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

thank you, after is clear now. I think this expresses a one time event.

Is there also an option how to express a periodic event?

Peter
Re: TimeEvent [message #1857955 is a reply to message #1857944] Wed, 08 March 2023 03:25 Go to previous message
Eclipse UserFriend
In the context of a state-machine trigger, a periodic event is not required (and as far as I know not supported by the standard): the transition fires after a given time. If the transition returns to the same state, the transition fires periodically.
There are some MARTE stereotypes related to periodic arrival patterns, but this is not taken into account by the state-machine semantics.
Previous Topic:Possible to include Tables and Images in Requirements?
Next Topic:MBSE
Goto Forum:
  


Current Time: Thu Apr 24 13:44:25 EDT 2025

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

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

Back to the top