So you don't have to do a for:
you can do
events <- T

and automatically the matched rule corresponding to your elements are called

Tristan

Le 26/05/2010 11:42, Topcased user list where issues are discussed a écrit :

yes in ATL

2010/5/26 Topcased user list where issues are discussed <[email protected] <mailto:[email protected]>>

    in ocl ? what is your context ? wasn't it ATL ?


    Le 26/05/2010 11:02, Topcased user list where issues are discussed
    a écrit :
    i would like in ocl do:
    sequence is  T,n size of sequence,event element in output model
    for(int i=0,i<n,i++)
    events<-T[i]

    2010/5/26 Topcased user list where issues are discussed
    <[email protected]
    <mailto:[email protected]>>

        I think you should precise your question.
        do you want to affect all the the elements of the sequences
        to a collection of your output model ?

        Tristan


        Le 26/05/2010 10:04, Topcased user list where issues are
        discussed a écrit :
        thanks,
        but i would like extract all the elements of the sequence,i
        think i use a iterative structure but i don't know how do it?

        2010/5/26 Topcased user list where issues are discussed
        <[email protected]
        <mailto:[email protected]>>

            Hi,
            you can use a select expression in your sequence:
            b->select(e : uml!AbstractGoal | cond)->first()

            Regards
            Tristan FAURE

            Le 23/05/2010 14:45, Topcased user list where issues are
            discussed a écrit :

                hi ,
                how can I extract element of sequence
                b=Sequence
                {IN2!G1:uml!AbstractGoal,IN2!G2:uml!AbstractGoal,IN2!G3:uml!
                AbstractGoal}
                thanks


                _______________________________________________
                Topcased-users mailing list
                [email protected]
                <mailto:[email protected]>
                http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users


            _______________________________________________
            Topcased-users mailing list
            [email protected]
            <mailto:[email protected]>
            http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users



        _______________________________________________
        Topcased-users mailing list
        [email protected]  
<mailto:[email protected]>
        http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users

        _______________________________________________
        Topcased-users mailing list
        [email protected]
        <mailto:[email protected]>
        http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users



    _______________________________________________
    Topcased-users mailing list
    [email protected]  
<mailto:[email protected]>
    http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users

    _______________________________________________
    Topcased-users mailing list
    [email protected]
    <mailto:[email protected]>
    http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users



_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users

<<attachment: tristan_faure.vcf>>

_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users

Reply via email to