[cosmic-users] PRF

Nicholas Grimes Nicholas_Grimes at raytheon.com
Thu Apr 20 13:03:22 CDT 2006


   CoSMIC VERSION: 0.4.5

    HOST MACHINE and OPERATING SYSTEM:
      i.e., which version of Windows are you using. Windows XP

    TOOL/AREA/CLASS/EXAMPLE AFFECTED:
[Particularly, which tool in CoSMIC is affected? PICML

    DOES THE PROBLEM AFFECT:
        COMPILATION?
        LINKING?
        EXECUTION?
        OTHER  How to do something

    SYNOPSIS:

I work for Paul Legault/John Slaby on a Research and Development project. I
am using GME (5.9.21) and CoSMIC (0.4.8). I created the following .idl file
and ran idl_to_picml, and imported it into a PICML paradigm.  (Env.xme file
attached)

//ProxyComponent.idl,v 1.1 2006

#include <Components.idl>

module MyProxyComponent
{
  struct EnvNV
  {
    string EnvName;
    string EnvValue;
  };

  typedef sequence < EnvNV > EnvNVtype;

  interface Dummy {
      void DoNothing();
  };

  /**
   * @class ProxyCOmponent
   *
   * @brief component
   */
  component ProxyComponent supports Dummy
  {
      attribute string theString;
      attribute EnvNVtype EnvNVs;
  };

  /**
   * @class ProxyComponentHome
   *
   * @brief home for ProxyComponent component
   */
  home ProxyComponentHome manages ProxyComponent
  {
  };
};


The goal of the EnvNVs is to create 0..N name/value environment variable
pairs attributes that I will use to build a environment string to pass to
execle. The PICML model shows them as aggregates and a collection. I have
no clue on how I can create instances of the N/V pairs. Any guidance would
be appreciated.

I emailed Steve Baker who replied with:

When I last used CoSMIC, it did not support complex attribute values, just
primitives/strings. At one point there was talk of a new plugin that would
make it easy to create more complex values (like sequences of structs), but
I have no idea if any progress has been made along those lines.

    DESCRIPTION:
[Detailed description of problem.  Don't just say "<blah>
doesn't work, here's a fix," explain what your program does
to get to the <blah> state. ]

    REPEAT BY:
[What you did to get the error; include test program or session
transcript if at all possible.  ]

    SAMPLE FIX/WORKAROUND:
[If available ]

    RELATED FILES:
[Please attach the XME file of your model, generated descriptors and code.
 In GME you can use "File->Export XML" menu to generate XME files.]

(See attached file: Env.xme)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Env.xme
Type: application/octet-stream
Size: 26163 bytes
Desc: not available
Url : http://list.isis.vanderbilt.edu/pipermail/cosmic-users/attachments/20060420/9c151dda/Env-0001.obj


More information about the cosmic-users mailing list