#82 ✓resolved
Christopher Stawarz

Make "wait" action interruptible

Reported by Christopher Stawarz | April 23rd, 2012 @ 10:30 AM | in 0.5.0 (closed)

Currently, the "wait" action is not interruptible, meaning an experiment with an executing wait cannot be stopped. This is annoying and should be changed.

Comments and changes to this ticket

  • Christopher Stawarz
  • Christopher Stawarz

    Christopher Stawarz May 21st, 2012 @ 01:08 PM

    This is almost a trivial change: Wait derives from Action, and Action derives from State, so you should be able to implement this by removing the sleep in Wait::execute and adding a Wait::next that returns an empty next state until the wait expires.

    Unfortunately, TaskSystemState spoils the party by ignoring the inherent State-ness of Action and calling execute directly on each contained action. So it seems that, if you want to change Wait as described above, you also have to change TaskSystemState to behave more like Block or other paradigm components.

  • Christopher Stawarz

    Christopher Stawarz June 13th, 2012 @ 02:07 PM

    • Milestone set to 0.5.0
    • Milestone order changed from “168173” to “0”
  • Christopher Stawarz

    Christopher Stawarz July 17th, 2012 @ 03:29 PM

    • State changed from “open” to “pending”
    • Assigned user set to “Christopher Stawarz”
    • Milestone order changed from “6” to “0”

    So it seems that, if you want to change Wait as described above, you also have to change TaskSystemState to behave more like Block or other paradigm components.

    Both changes are done on a branch

  • Christopher Stawarz

    Christopher Stawarz October 3rd, 2012 @ 03:13 PM

    • State changed from “pending” to “resolved”

    Merged to master

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The core framework and supporting libraries for the MWorks Suite

People watching this ticket

Pages