I would like to ask some questions about <anchor> stuff.
I really need answer for implementation.
1. Why do you use 2D array for DataSnapshots?
When machine enters to the state with <anchor>, other states with the same type anchors become unreachable for transitions with anchor. So DataSnapshots[<anchor type>] would suffice.
Or I lost something?
2. "As part of this restart, all intermediate anchors are erased. Intermediate anchors are those that were set between the time the anchor state was last visited and the point at which the transition with the anchor state as target is taken. Note that all these anchors must have a different type from the one that is the target of the transition."
Does this mean that snapshots of other type anchors will be erased? Or only snapshots of the transition anchor's type?
3."If no state with a matching <anchor> type has been visited, the current state is exited and re- entered."
What do you mean under "current state"?
a. State of anchored transition.
b. Leaf state(s) of subtree of compound state of anchored transition. What about if this subtree has <parallel>s?
c. All current leaf states of machine.
d. LeastCommonAncestor of all current leaf states of machine.
e. LeastCommonAncestor of all current leaf states which are childs of the state of anchored transition.
With best regards, Serge.
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.