K
Knews
hi,
Can someone help me with this problem.
I have a java data structure of the form
A11
- -
- -
- -
A21 A22
- - - - - -
- - - - - -
A31 A32 A33 A34 A35 A36
- - - - - -
- - - - - -
- - -
-
-
A41
Ai correspond to actions, my application should traverse the structure
and perform each action upon traversal. Actually using the composite
design pattern I can perform A11, A21, (A31,A32, A33) , A41 then the
other part A22, (A31, A32, A33).
The problem is that I need to have actions in the same level to
completly perform before the lowest level. I mean, that A41 is
performed only when the two parts in the same level (A21, A22, A31,
A32, A33) and (A34, A35, A36) are performed not necessarily at the
same time but before A41. How to do that?
Thank you
Can someone help me with this problem.
I have a java data structure of the form
A11
- -
- -
- -
A21 A22
- - - - - -
- - - - - -
A31 A32 A33 A34 A35 A36
- - - - - -
- - - - - -
- - -
-
-
A41
Ai correspond to actions, my application should traverse the structure
and perform each action upon traversal. Actually using the composite
design pattern I can perform A11, A21, (A31,A32, A33) , A41 then the
other part A22, (A31, A32, A33).
The problem is that I need to have actions in the same level to
completly perform before the lowest level. I mean, that A41 is
performed only when the two parts in the same level (A21, A22, A31,
A32, A33) and (A34, A35, A36) are performed not necessarily at the
same time but before A41. How to do that?
Thank you