pathVeritical prompts missing ')'

khl
2009-05-23
2013-04-22
  • khl

    khl - 2009-05-23

    Hi

    I received the following error message:

    MPtoPDF 1.3.3 : running 'texexec --mptex    f.mp'
    TeXExec | processing graphic 'f.mp'
    This is MetaPost, Version 0.993 (Web2C 7.5.6)
    (/usr/share/texmf/web2c/natural.tcx)
    (f.mp (/usr/share/texmf-texlive/metapost/metauml/metauml.mp
    ...
    (/usr/share/texmf-texlive/metapost/metauml/util_log.mp)))
    ! Missing `)' has been inserted.
    <to be read again>
                       (
    l.72     link(dependency)(pathVeritical(
                                            ISuitType.n, ISuitFactory.bottom));
    ? q

    But I don't see anything that could causing this and I have no idea where the additional "(" comes from.

    The code f.mp that I tried is
    -----
    input metauml;

    beginfig(1);
      
        u:=1cm;

        Class.ISuit("FactoryInherited::Suit")
            ("-_suitType: SuitType = SuitType.NotSet")
            ("+TypeOfSuit(): SuitType")
        ;

        Class.ISuitFactory("FactoryInherited::SuitFactory")
            ("-_loaded: ArrayList = new ArrayList()")
            ("+CreateSuit(in suitType: SuitType): Suit",
             "#AddSuit(in suit:Suit)",
             "+LoadSuits()")
        ;

        Class.ILeisureSuitFactory("FactoryInherited::LeisureSuitFactory")
            ()
            ("+LoadSuits")
        ;

        Class.IBusinessSuitFactory("FactoryInherited::BusinessSuitFactory")
            ()
            ("+LoadSuits")
        ;

        Class.ISuitType("FactoryInherited::SuitType")
            ("+NotSet = 0",
             "+Armani = 1",
             "+StripedBusinessSuit = 2",
             "+PlaidBusinessSuit =3",
             "+GolfSuit = 4")
            ()
        ;

        Class.IArmani("FactoryInherited::Armani")
            ()
            ("+ArmaniSuit()")
        ;

        Class.IGolfSuit("FactoryInherited::GolfSuit")
            ()
            ("+GolfSuit()")
        ;

        Class.IPlaidBusinessSuit("FactoryInherited::PlaidBusinessSuit")
            ()
            ("+PlaidBusinessSuit()")
        ;

        Class.IStripedBusinessSuit("FactoryInherited::StripedBusinessSuit")
            ()
            ("+StripedBusinessSuit()")
        ;

        classStereotypes.ISuitType("<<enumeration>>");

        leftToRight(45)(ISuitFactory,ISuit);
        topToBottom.left(30)(ISuitFactory,ISuitType);
        topToBottom.left(30)(ISuitType,ILeisureSuitFactory);
        leftToRight(30)(ILeisureSuitFactory,IBusinessSuitFactory);
        leftToRight(45)(ISuit,IArmani);
        topToBottom.right(20)(IArmani,IGolfSuit,IPlaidBusinessSuit,IStripedBusinessSuit);
      
        drawObjects(ISuitFactory,ISuit,ISuitType,
                    ILeisureSuitFactory,IBusinessSuitFactory,
                    IArmani,IGolfSuit,IPlaidBusinessSuit,
                    IStripedBusinessSuit);

        link(dependency)(pathVeritical(ISuitType.n, ISuitFactory.bottom));
    %    clink(compositionUni)(ISuit,ISuitFactory);
    %   item(iAssoc)("1")(obj.nw + (0,.5u) = ISuitFactory.e);
    %   item(iAssoc)("*")(obj.ne + (0,.5u) = ISuit.w);
    %    link(inheritance)(pathManhattanY(ILeisureSuitFactory.w,ISuitFactory.e));
    %    link(inheritance)(pathManhattanY(IBusinessSuitFactory.w,ISuitFactory.e));
    %   link(inheritance)(pathManhattanY(IArmani.w,ISuit.e));
    %   link(inheritance)(pathManhattanX(IGolfSuit.w,ISuit.s+(u,0)));
    %   link(inheritance)(pathManhattanX(IPlaidBusinessSuit.w,ISuit.s));
    %   link(inheritance)(pathManhattanX(IStripedBusinessSuit.w,ISuit.s+(-u,0)));

    endfig;

    end

     
    • Ovidiu Gheorghies

      Hello,

      One thing that I noticed is the spelling of 'pathVeritical' which should be 'pathVertical'. If this doesn't fix it, please post a minimal code that still cause the error.

      Regards,
      Ovidiu

       
    • khl

      khl - 2009-05-24

      That is it. Thanks a lot!

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks