[gme-users] gme-users Digest, Vol 104, Issue 1

Ray, Sumit (US SSA) sumit.ray at baesystems.com
Sat Feb 23 13:28:01 CST 2013


Kevin et. al.,

Thanks. I lost the race condition :-(. I had figured out and solved the problem before reading your message :-). I had to trace it to the comparison in "udmdom" to see what it was trying to compare.

By the way, can you recommend a good guide on ASML?

Thanks,
Sumit
	
-----Original Message-----
From: gme-users-bounces at list.isis.vanderbilt.edu [mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of gme-users-request at list.isis.vanderbilt.edu
Sent: Saturday, February 23, 2013 1:00 PM
To: gme-users at list.isis.vanderbilt.edu
Subject: gme-users Digest, Vol 104, Issue 1

Send gme-users mailing list submissions to
	gme-users at list.isis.vanderbilt.edu

To subscribe or unsubscribe via the World Wide Web, visit
	http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
or, via email, send a message with subject or body 'help' to
	gme-users-request at list.isis.vanderbilt.edu

You can reach the person managing the list at
	gme-users-owner at list.isis.vanderbilt.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of gme-users digest..."


Today's Topics:

   1. exception loading UdmCopy based XML backend (Ray, Sumit (US SSA))
   2. another question on building using the DomDataNetwork
      (Ray, Sumit (US SSA))
   3. Re: exception loading UdmCopy based XML backend (Kevin Smyth)
   4. Re: another question on building using the	DomDataNetwork
      (Kevin Smyth)


----------------------------------------------------------------------

Message: 1
Date: Sat, 23 Feb 2013 00:46:30 +0000
From: "Ray, Sumit (US SSA)" <sumit.ray at baesystems.com>
Subject: [gme-users] exception loading UdmCopy based XML backend
To: "gme-users at list.isis.vanderbilt.edu"
	<gme-users at list.isis.vanderbilt.edu>
Cc: "Ray, Sumit \(US SSA\)" <sumit.ray at baesystems.com>
Message-ID:
	<DE09A6F7FC5C7F4982BE4D4DBA66E1AF118A587E at GLDMS95001.goldlnk.rootlnka.net>
	
Content-Type: text/plain; charset="us-ascii"

Hi,

I am getting the following exception loading an XML backend file built using udmcopy:
"exception: Couldn't find in cache the class of element 'RootFolder'

Here's the snippet of code that causes it:
int main(int argc, char** argv)
{
  try
  {
    Udm::SmartDataNetwork nw(Uml::diagram);
    nw.OpenExisting("tm.xml");
...



The tm.xml is the diagram file based on the meta "test.xml", created using the command "udmcopy tm.mga tm.xml test.xml". If I replace the diagram xml with the meta xml, it seems to work fine. Any suggestions?

Thanks,
Sumit



-----Original Message-----
From: gme-users-bounces at list.isis.vanderbilt.edu [mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of gme-users-request at list.isis.vanderbilt.edu
Sent: Thursday, December 13, 2012 1:00 PM
To: gme-users at list.isis.vanderbilt.edu
Subject: gme-users Digest, Vol 102, Issue 2

Send gme-users mailing list submissions to
	gme-users at list.isis.vanderbilt.edu

To subscribe or unsubscribe via the World Wide Web, visit
	http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
or, via email, send a message with subject or body 'help' to
	gme-users-request at list.isis.vanderbilt.edu

You can reach the person managing the list at
	gme-users-owner at list.isis.vanderbilt.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of gme-users digest..."


Today's Topics:

   1. Re: invoking interpreters (Joe Porter)


----------------------------------------------------------------------

Message: 1
Date: Thu, 13 Dec 2012 09:37:32 -0600
From: Joe Porter <joe.porter at gmail.com>
Subject: Re: [gme-users] invoking interpreters
To: "A list for GME users to share thoughts and discuss bugs and
	fixes."	<gme-users at list.isis.vanderbilt.edu>
Message-ID:
	<CAAZqtLx7iV=J5riPDYd-cOBANmfBfYnhu8fkbk9_rF78Wh4TAA at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Sumit,

The chief advantage with UDM is that you can use the XML backend to write
standalone interpreters that are completely independent of GME.  The Udm
installation comes with a utility called UdmCopy that can convert a GME
model into the equivalent XML digestable by Udm.  Your interpreter will
need to include the Udm-generated code, and either include the generated
xsd file in your distribution or else compile it into the code (see the Udm
command-line options).  Instead of all of the COM infrastructure that you
used to integrate your interpreter code into GME, you can simply write a
main function that loads the specified model file and invokes your logic.
 The only tricks are to link against the UDM library, and to make sure you
commit model changes before closing.  UdmCopy and Udm should both provide
command-line help when run from the prompt.

Is that what you're after?

-Joe


On Wed, Dec 12, 2012 at 6:26 AM, Ray, Sumit (US SSA) <
sumit.ray at baesystems.com> wrote:

>  Hi,****
>
> ** **
>
> I have written UDM based C++ interpreters that are DLLs. How do I
> statically build an executable UDM interpreter? How do I then use the
> interpreter from the command line and connect to a running GME instance?**
> **
>
> ** **
>
> Also, what are the advantages of using UDM over BON or MON?****
>
> ** **
>
> Thanks,****
>
> Sumit ****
>
> ** **
>
> ** **
>
> Sumit Ray****
>
> BAE Systems****
>
> 4301 N. Fairfax DR, Suite 800****
>
> Arlington, VA 22203****
>
> * *
>
> *Phone:: (703) 284-8427*
>
> *Cell: (571) 970-7558*
>
> *Fax: (703) 528-4726*
>
> *Email:: sumit.ray at baesystems.com*****
>
> ** **
>
> _______________________________________________
> gme-users mailing list
> gme-users at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20121213/dd7ef907/attachment-0001.html 

------------------------------

_______________________________________________
gme-users mailing list
gme-users at list.isis.vanderbilt.edu
http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users


End of gme-users Digest, Vol 102, Issue 2
*****************************************


------------------------------

Message: 2
Date: Sat, 23 Feb 2013 02:44:42 +0000
From: "Ray, Sumit (US SSA)" <sumit.ray at baesystems.com>
Subject: [gme-users] another question on building using the
	DomDataNetwork
To: "gme-users at list.isis.vanderbilt.edu"
	<gme-users at list.isis.vanderbilt.edu>
Cc: "Ray, Sumit \(US SSA\)" <sumit.ray at baesystems.com>
Message-ID:
	<DE09A6F7FC5C7F4982BE4D4DBA66E1AF118A590C at GLDMS95001.goldlnk.rootlnka.net>
	
Content-Type: text/plain; charset="us-ascii"

Hi,

Issues trying to create a diagram using the DomDataNetwork.

UdmDom.cpp : Line # 4028 ("string rootname = rootclass.name();") generates the exception: "Object handle is null" when attempting to create a new diagram.

The file existence and is readable is checked prior to calling the function.  Here's the code:
int udm_main(int argc, char** argv)
{
  try
  {
    Udm::SmartDataNetwork nw(Uml::diagram);


   bool xsd_exists = fileExists( "test1.xsd" );
   bool xml_exists_y = fileExists( "test1.xml" );
   bool xml_exists_n = fileExists( "test.xml" );

   nw.CreateNew("test.xml", "test1.xsd", test1::RootFolder::meta);


What could be the possible source of these existence errors.

Thanks,
Sumit

Sumit Ray
BAE Systems
4301 N. Fairfax DR, Suite 800
Arlington, VA 22203

Phone:: (703) 284-8427
Cell: (571) 970-7558
Fax: (703) 528-4726
Email:: sumit.ray at baesystems.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20130223/25f33ef4/attachment-0001.html 

------------------------------

Message: 3
Date: Sat, 23 Feb 2013 11:51:05 -0600
From: "Kevin Smyth" <ksmyth at isis.vanderbilt.edu>
Subject: Re: [gme-users] exception loading UdmCopy based XML backend
To: "gme-users" <gme-users at list.isis.vanderbilt.edu>
Message-ID:
	<5DD6FB0BB70FD348A9B2857DD9233366E2DA2C at discovery.isis.vanderbilt.edu>
Content-Type: text/plain;	charset="us-ascii"

Sumit,

It looks like this line is wrong:
Udm::SmartDataNetwork nw(Uml::diagram);

You should replace Uml with the name of the metamodel you're using.

Kevin

-----Original Message-----
From: gme-users-bounces at list.isis.vanderbilt.edu
[mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of Ray,
Sumit (US SSA)
Sent: Friday, February 22, 2013 6:47 PM
To: gme-users
Cc: Ray, Sumit (US SSA)
Subject: [gme-users] exception loading UdmCopy based XML backend

Hi,

I am getting the following exception loading an XML backend file built
using udmcopy:
"exception: Couldn't find in cache the class of element 'RootFolder'

Here's the snippet of code that causes it:
int main(int argc, char** argv)
{
  try
  {
    Udm::SmartDataNetwork nw(Uml::diagram);
    nw.OpenExisting("tm.xml");
...



The tm.xml is the diagram file based on the meta "test.xml", created
using the command "udmcopy tm.mga tm.xml test.xml". If I replace the
diagram xml with the meta xml, it seems to work fine. Any suggestions?

Thanks,
Sumit



-----Original Message-----
From: gme-users-bounces at list.isis.vanderbilt.edu
[mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of
gme-users-request at list.isis.vanderbilt.edu
Sent: Thursday, December 13, 2012 1:00 PM
To: gme-users at list.isis.vanderbilt.edu
Subject: gme-users Digest, Vol 102, Issue 2

Send gme-users mailing list submissions to
	gme-users at list.isis.vanderbilt.edu

To subscribe or unsubscribe via the World Wide Web, visit
	http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
or, via email, send a message with subject or body 'help' to
	gme-users-request at list.isis.vanderbilt.edu

You can reach the person managing the list at
	gme-users-owner at list.isis.vanderbilt.edu

When replying, please edit your Subject line so it is more specific than
"Re: Contents of gme-users digest..."


Today's Topics:

   1. Re: invoking interpreters (Joe Porter)


----------------------------------------------------------------------

Message: 1
Date: Thu, 13 Dec 2012 09:37:32 -0600
From: Joe Porter <joe.porter at gmail.com>
Subject: Re: [gme-users] invoking interpreters
To: "A list for GME users to share thoughts and discuss bugs and
	fixes."	<gme-users at list.isis.vanderbilt.edu>
Message-ID:
	
<CAAZqtLx7iV=J5riPDYd-cOBANmfBfYnhu8fkbk9_rF78Wh4TAA at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Sumit,

The chief advantage with UDM is that you can use the XML backend to
write standalone interpreters that are completely independent of GME.
The Udm installation comes with a utility called UdmCopy that can
convert a GME model into the equivalent XML digestable by Udm.  Your
interpreter will need to include the Udm-generated code, and either
include the generated xsd file in your distribution or else compile it
into the code (see the Udm command-line options).  Instead of all of the
COM infrastructure that you used to integrate your interpreter code into
GME, you can simply write a main function that loads the specified model
file and invokes your logic.
 The only tricks are to link against the UDM library, and to make sure
you commit model changes before closing.  UdmCopy and Udm should both
provide command-line help when run from the prompt.

Is that what you're after?

-Joe


On Wed, Dec 12, 2012 at 6:26 AM, Ray, Sumit (US SSA) <
sumit.ray at baesystems.com> wrote:

>  Hi,****
>
> ** **
>
> I have written UDM based C++ interpreters that are DLLs. How do I 
> statically build an executable UDM interpreter? How do I then use the 
> interpreter from the command line and connect to a running GME 
> instance?**
> **
>
> ** **
>
> Also, what are the advantages of using UDM over BON or MON?****
>
> ** **
>
> Thanks,****
>
> Sumit ****
>
> ** **
>
> ** **
>
> Sumit Ray****
>
> BAE Systems****
>
> 4301 N. Fairfax DR, Suite 800****
>
> Arlington, VA 22203****
>
> * *
>
> *Phone:: (703) 284-8427*
>
> *Cell: (571) 970-7558*
>
> *Fax: (703) 528-4726*
>
> *Email:: sumit.ray at baesystems.com*****
>
> ** **
>
> _______________________________________________
> gme-users mailing list
> gme-users at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20121213
/dd7ef907/attachment-0001.html 

------------------------------

_______________________________________________
gme-users mailing list
gme-users at list.isis.vanderbilt.edu
http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users


End of gme-users Digest, Vol 102, Issue 2
*****************************************
_______________________________________________
gme-users mailing list
gme-users at list.isis.vanderbilt.edu
http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users


------------------------------

Message: 4
Date: Sat, 23 Feb 2013 11:52:36 -0600
From: "Kevin Smyth" <ksmyth at isis.vanderbilt.edu>
Subject: Re: [gme-users] another question on building using the
	DomDataNetwork
To: "gme-users" <gme-users at list.isis.vanderbilt.edu>
Message-ID:
	<5DD6FB0BB70FD348A9B2857DD9233366E2DA2D at discovery.isis.vanderbilt.edu>
Content-Type: text/plain; charset="us-ascii"

Sumit,

 

This line:

Udm::SmartDataNetwork nw(Uml::diagram);

should be

Udm::SmartDataNetwork nw(test1::diagram);

 

Kevin

 

From: gme-users-bounces at list.isis.vanderbilt.edu
[mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of Ray,
Sumit (US SSA)
Sent: Friday, February 22, 2013 8:45 PM
To: gme-users
Cc: Ray, Sumit (US SSA)
Subject: [gme-users] another question on building using the
DomDataNetwork

 

Hi,

 

Issues trying to create a diagram using the DomDataNetwork.

 

UdmDom.cpp : Line # 4028 ("string rootname = rootclass.name();")
generates the exception: "Object handle is null" when attempting to
create a new diagram.

 

The file existence and is readable is checked prior to calling the
function.  Here's the code:

int udm_main(int argc, char** argv)

{

  try

  {

    Udm::SmartDataNetwork nw(Uml::diagram);

    

 

   bool xsd_exists = fileExists( "test1.xsd" );

   bool xml_exists_y = fileExists( "test1.xml" );

   bool xml_exists_n = fileExists( "test.xml" );

 

   nw.CreateNew("test.xml", "test1.xsd", test1::RootFolder::meta);

 

 

What could be the possible source of these existence errors.

 

Thanks,

Sumit

 

Sumit Ray

BAE Systems

4301 N. Fairfax DR, Suite 800

Arlington, VA 22203

 

Phone:: (703) 284-8427

Cell: (571) 970-7558

Fax: (703) 528-4726

Email:: sumit.ray at baesystems.com

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20130223/5a232119/attachment-0001.html 

------------------------------

_______________________________________________
gme-users mailing list
gme-users at list.isis.vanderbilt.edu
http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users


End of gme-users Digest, Vol 104, Issue 1
*****************************************


More information about the gme-users mailing list