param uml messag param seqno param refind oper pars except handl sequenc number object uml messag list integ seqno refind oper pars except seqno object messag root preced messag end associ builder pname builder builder mname builder gname gener messag number uml messag swap role majval seqno seqno size majval math max seqno seqno size valu minval seqno seqno size minval math max seqno seqno size valu seqno size bv seqno bv math max seqno valu sv seqno sv math max seqno valu mname append mname append integ bv sv seqno size pname append pname append integ bv sv root pname length root msg model facad sender uml messag pname root root msg model facad receiv uml messag pname root swap role msg activ model facad sender uml messag msg activ model facad receiv uml messag swap role compar msg number mname gname msg number start gname mname msg pars error messag subtre root self pars except translat local msg model facad predecessor uml messag size model facad successor uml messag size msg pars error messag start end thread pars except translat local msg root pname length msg pars error messag activ pars except translat local msg swap role model facad activ messag uml messag size model facad sender uml messag model facad receiv uml messag msg pars error messag revers direct messag pars except translat local msg defin collaborationdiagram defin sequencediagram lp collaborationdiagram granular type statement lp sequencediagram granular type statement lp sequencediagram local nest statement lp collaborationdiagram local nest statement disconnect messag graph make copi return live collect modifi collect arrai list model facad predecessor uml messag collect arrai list model facad successor uml messag iter iter model collabor helper remov successor uml messag iter iter iter object pre messag model collabor helper remov predecessor uml messag pre model collabor helper add predecessor pre connect messag spot model collabor helper set activ uml messag root swap role object classifi role model facad sender uml messag model collabor helper set sender uml messag model facad receiv uml messag model common behavior helper set receiv uml messag root filter activ model facad sent messag model facad sender uml messag model facad activ messag root candid root root uml messag iter cycl messag graph bad element model crappi ll just us majval model collabor helper add successor uml messag messag object messag pre walk messag majval object messag post successor pre minval post model collabor helper remov predecessor post pre model collabor helper add predecessor post uml messag insert successor pre uml messag minval refind oper endif refind oper 