
|
If you were logged in you would be able to see more operations.
|
|
|
|
say there are two parents P1 and P2 and there is a child C1. Then if the user draws a pattern
P1<>----C1-----<>p2
Where, C1 are marked as "Bind", the composition from P1 to C1 is marked as "Delete" and and the compositon from P2 to C1 is marked as "CreateNew".
This pattern means that the user wants to move C1 and its contained hierarchy from parent P1 to parent P2.
Such a pattern should be identified in GRE and CG. The move should change the parent attribute only. In the specific API it is
obj.parent() = <new parent>
the user may want to specify a copy opertation. This should be specified using a new type of connection in the UMT called the "copy" connection. This dirrected will specify the source and the target of the copy.
1. In UMT there will be a new directed connection called "copy" that will specify the source and the destination of the copy operation.
2. Then the user can specify a new object and specify that it is a copy of another objct by using the "copy" connetion.
The figure shows a parent P1 with child C1 and a parent P2 with a child C2 where both C1 and the composition are create new. The semantics are that C2 will be created as a child of p2 and will copy all the attributes and contained children of C1.
P1 p2
<> <>
| |
| |
C1---C--->C2
In the GRE and CG the copy operation will then use the CopyObjectHierarchy funciton to implement this.
|
|
Description
|
say there are two parents P1 and P2 and there is a child C1. Then if the user draws a pattern
P1<>----C1-----<>p2
Where, C1 are marked as "Bind", the composition from P1 to C1 is marked as "Delete" and and the compositon from P2 to C1 is marked as "CreateNew".
This pattern means that the user wants to move C1 and its contained hierarchy from parent P1 to parent P2.
Such a pattern should be identified in GRE and CG. The move should change the parent attribute only. In the specific API it is
obj.parent() = <new parent>
the user may want to specify a copy opertation. This should be specified using a new type of connection in the UMT called the "copy" connection. This dirrected will specify the source and the target of the copy.
1. In UMT there will be a new directed connection called "copy" that will specify the source and the destination of the copy operation.
2. Then the user can specify a new object and specify that it is a copy of another objct by using the "copy" connetion.
The figure shows a parent P1 with child C1 and a parent P2 with a child C2 where both C1 and the composition are create new. The semantics are that C2 will be created as a child of p2 and will copy all the attributes and contained children of C1.
P1 p2
<> <>
| |
| |
C1---C--->C2
In the GRE and CG the copy operation will then use the CopyObjectHierarchy funciton to implement this. |
Show » |
| There are no comments yet on this issue.
|
|