Doing this directly would require modifying the FSMDirector, I think.
However, you can use the RunCompositeActor or ModelReference actor in the higher-order components library to run a contained model until it completes... This could be used to accomplish what you want, I think.
Edward
At 08:33 AM 3/21/2005 -0500, Hiren Patel wrote:
Hackers,
I was wondering how to model the following scenario:
Suppose I have a Modal Model in which I want to refine one of transitions such that the transition is only enabled once the refinement of that transition executes until completion. The refinement of the transition is also another FSM. I would like to run the refined FSM until completion before the transition that is the container for the hierarchical FSM is enabled and triggered?
Is there a way to ensure that control from an FSM returns only after it makes traversals from the initial state to the final state?
Thanks,
-- ~ Hiren <hiren at vt dot edu>
---------------------------------------------------------------------------- Posted to the ptolemy-hackers mailing list. Please send administrative mail for this list to: [EMAIL PROTECTED]
------------
Edward A. Lee
Professor, Chair of the EE Division, Associate Chair of EECS
231 Cory Hall, UC Berkeley, Berkeley, CA 94720
phone: 510-642-0253 or 510-642-0455, fax: 510-642-2845
[EMAIL PROTECTED], http://ptolemy.eecs.berkeley.edu/~eal
---------------------------------------------------------------------------- Posted to the ptolemy-hackers mailing list. Please send administrative mail for this list to: [EMAIL PROTECTED]