[great-users] 2 questions

Attila Vizhanyo viza at isis.vanderbilt.edu
Mon Jun 7 11:21:17 CDT 2004


Feng:

No, CG does not allow it.
Also, there is a Guard in the UMT metamodel to prevent this, and the
GenerateConfig interpreter will throw an exception.

Tivadar:

Can't you use the rwc (read&write-copy) file mode on only one file in
your transformation?

Thanks,
Attila

-----Original Message-----
From: Feng Shi 
Sent: Monday, June 07, 2004 10:14
To: 'Aditya Agrawal'; Attila Vizhanyo; Zsolt Kalmar
Subject: RE: [great-users] 2 questions

Adi,

In GREngine, the meta name is used as the key for the map<string,
Udm::DataNetwork *> It uses the meta name to access the datanetwork
during the pattern matching and executor.

Attila,
Does the code generator allow multiple datanetworks with the same meta?

We can discuss this problem.

Thanks,
Feng

-----Original Message-----
From: Aditya Agrawal 
Sent: Monday, June 07, 2004 10:02 AM
To: great-users
Subject: RE: [great-users] 2 questions

> 1. How do I create a config where both the input and output files are 
> using the same metamodel ? I got a "Duplicate Meta name" error when I 
> tried to do that.
> 
[Adi] 
Currently there is a restriction in GRE that only allows one model per
metamodel. 

Feng, 
Do you remember why we had to do this and can we now allow more models?

> 2. In a transformation, I try to move objects from model A to model B
like
> this:
> 	Rule a) select the objects and the 2 models
> 	Rule b) delete the containment relation (Obj -> model A), but
not
> the object(s)
> 	Rule c) re-create the containment relation (Obj -> model B)
> 
> At Rule b), I get the following Com exception: "The object is deleted 
> partially inaccessible". What does this nice almost English sentence 
> mean ? The model is specified as R/W in the config.
> 

[Adi] 
In UDM every object must have a parent. Since you have deleted the
parent relationship, the object is also deleted, then you pass the null
object to the next rule. 

In the next release we can try to allow a rule where you can specify
delete on one composition and create new one another composition
association. This can internally use the CopyObjectHierarchy method of
UDM. Currently you might be able to do this in the AttributeMapping
dialog box. 

Thanks,
Adi
_______________________________________________
great-users mailing list
great-users at list.isis.vanderbilt.edu
http://list.isis.vanderbilt.edu/mailman/listinfo/great-users


More information about the great-users mailing list