EAI 1.0 MAILINGLIST Avatar
  1. OMG Issue

EAI — CAM: Sample serialisation: Problems with XMI

  • Key: EAI-145
  • Legacy Issue Number: 5396
  • Status: closed  
  • Source: Adaptive ( Pete Rivett)
  • Summary:

    Section 7.3.11: Lots of problems with the XMI: it is not valid for showing the relationship between the TDLangElements and the TDLangClassifiers (in fact the XMI represents no relationship at all between them!): also it's wrong to show the SimpleInstanceTDs nested within the COBOLComposedType since there is no Composition (in fact no direct relationship at all in the metamodel) between them. Also defaultFloatType is not an attribute of SimpleInstanceTD but of PlatformCompilerInfo. And the SimpleInstanceTDs do not have the mandatory 'sharedType' reference, which would have been useful to see expressed, and none of the TDs have the mandatory 'platformInfo' reference.
    Typos: the COBOLComposedType element is incorrectly terminated on the first line (just need to remove the "/") and 'AggregateInstanceTDBase' should be just 'AggregateInstanceTD'

    The XMI should, I believe, be as below. An instance diagram would help undestanding!:
    <COBOLElement xmi.id='CE-1'name="NAME" instanceTDBase='AIT-1' tdLangSharedType='CCT-1'/>
    <COBOLComposedType xmi.id='CCT-1'>
    <TDLangComposedType.tdLangElement>
    <COBOLElement xmi.id='CE-2' name="FIRST" instanceTDBase='SIT-1' tdLangSharedType='CT-1'/>
    <COBOLElement xmi.id='CE-3' name="LAST" instanceTDBase='SIT-2' tdLangSharedType='CT-1'/>
    </TDLangComposedType.tdLangElement>
    </COBOLComposedType>
    <COBOLAlphaNumericType xmi.id='CT-1' name="PICX10" pictureString="PIC X10"/>

    <AggregateInstanceTD xmi.id='AI-1' languageInstance='CE-1' platformInfo='PC'/>
    <SimpleInstanceTD xmi.id='SIT-1' languageInstance='CE-2'/ sharedType='ST-1' platformInfo='PC'/>
    <SimpleInstanceTD xmi.id='SIT-2' languageInstance='CE-3' sharedType='ST-1' platformInfo='PC'/>
    <StringTD xmi.id='ST-1' nickname='COBOL PIC X10' width=10 addrUnit=byte encoding='ASCII'…./>
    <PlatformCompilerInfo xmi.id='PC' …../>

    The above shows no top-level container. This lack of a packaging structure seems to be an omission from the metamodel.

  • Reported: EAI 1.0b1 — Wed, 12 Jun 2002 04:00 GMT
  • Disposition: Resolved — EAI 1.0
  • Disposition Summary:

    See issue 5244 for disposition

  • Updated: Fri, 6 Mar 2015 20:58 GMT