Thanks Rahul.
You are spot on, this was exactly what I was looking for.
Many thanks.
Regards
--------------------------------------------------
From: "Rahul Akolkar" <[email protected]>
Sent: Monday, May 17, 2010 8:34 PM
To: "Commons Users List" <[email protected]>
Subject: Re: [scxml] State hierarchy with scxml
On Mon, May 17, 2010 at 12:08 PM, Charbel Abou-Khalil
<[email protected]> wrote:
HI,
Just wondering whether it is possible to define a state hierarchy with
scxml?
In short if you have a tree and the state of each tree node is based on a
set of rules that will involve the states of the child nodes all the way
down to the leaf nodes of the tree.
<snip/>
From the limited information above, it seems each node has its own
state machine, and changes in the node state may affect parent node's
state. This could be achieved by maintaining an SCXML executor per
tree node and bubbling state changes up along the parent axis using
existing parent-child references available in the tree. A lighter
weight structure of one executor for the entire tree can perhaps also
be achieved using a state machine that is generated to match the tree
structure and parent node states are managed in composite states
recursively down to the simple states for the leaf nodes.
-Rahul
Many thanks
Regards
Charbel.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]