Code Monkey home page Code Monkey logo

Comments (4)

bawi235 avatar bawi235 commented on August 15, 2024

Could you provide an example of what you expect this table to look like after an import?

from ccdd.

JBBanks2 avatar JBBanks2 commented on August 15, 2024

Hi bawi235!

I'd expect to see Foo be a child of Bar. Either that or see the fields of Bar prepended to Foo's entry list.

From XTCE Green Book section 4.3.4.9:

A container may extend another container in an object-oriented manner. The child container receives the parent’s EntryList, and that EntryList is exactly prefixed to the front of the child’s EntryList. 

Right now, I don't see an indication of any relationship between Foo (child) and Bar (parent) in the CCDD UI.

from ccdd.

bawi235 avatar bawi235 commented on August 15, 2024

Will be adding an updated version of CCDDv2 later this week that helps address a problem I am encountering with XTCE imports. Will post an update here when it is available.

from ccdd.

bawi235 avatar bawi235 commented on August 15, 2024

Version 2.0.23 is out. I was able to import the attached file to achieve, what I think, you are trying to do. Keep in mind that CCDD supports a limited sort of XTCE, tailored for use by the display group who work(ed) the Habitat project. The only guarantee is that CCDD can import its own exported XTCE files. XTCE that's formatted differently won't work. XTCE "features" not already covered in CCDD's XTCE parser will be ignored (or maybe cause odd behavior).

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<SpaceSystem xmlns="http://www.omg.org/space/xtce" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="jbbanks" shortDescription="jbbanks" xsi:schemaLocation="https://www.omg.org/spec/XTCE/20061101 https://www.omg.org/spec/XTCE/20061101/06-11-06.xsd">

   <SpaceSystem name="Foo" shortDescription="Foo">

      <Header classification="INTERFACE" validationStatus="Working" version="1.0"/>

      <TelemetryMetaData>

         <ParameterTypeSet>

            <IntegerParameterType name="Num_Type" signed="false" sizeInBits="32">

               <UnitSet/>

               <IntegerDataEncoding bitOrder="mostSignificantBitFirst" encoding="unsigned" sizeInBits="32"/>

            </IntegerParameterType>

         </ParameterTypeSet>

         <ParameterSet>

            <Parameter name="Num" parameterTypeRef="Num_Type"/>

         </ParameterSet>

         <ContainerSet>

            <SequenceContainer name="Foo">

               <EntryList>

                  <ParameterRefEntry parameterRef="Num"/>

                  <ContainerRefEntry containerRef="Bar_Bah/Bah"/>

               </EntryList>

            </SequenceContainer>

         </ContainerSet>

      </TelemetryMetaData>

      <SpaceSystem name="Bar" shortDescription="Bar">

         <Header classification="INTERFACE" validationStatus="Working" version="1.0"/>

         <TelemetryMetaData>

            <ParameterTypeSet>

               <IntegerParameterType name="Bah_Type" signed="false" sizeInBits="32">

                  <UnitSet/>

                  <IntegerDataEncoding bitOrder="mostSignificantBitFirst" encoding="unsigned" sizeInBits="32"/>

               </IntegerParameterType>

            </ParameterTypeSet>

            <ParameterSet>

               <Parameter name="Bah" parameterTypeRef="Bah_Type"/>

            </ParameterSet>

            <ContainerSet>

               <SequenceContainer name="Bar">

                  <EntryList>

                     <ParameterRefEntry parameterRef="Bah"/>

                  </EntryList>

               </SequenceContainer>

            </ContainerSet>

         </TelemetryMetaData>

      </SpaceSystem>

      <SpaceSystem name="Bar_Bah" shortDescription="Foo,Bar.Bah">

         <Header classification="INTERFACE" validationStatus="Working" version="1.0"/>

         <TelemetryMetaData>

            <ParameterTypeSet>

               <IntegerParameterType name="Bah_Type" signed="false" sizeInBits="32">

                  <UnitSet/>

                  <IntegerDataEncoding bitOrder="mostSignificantBitFirst" encoding="unsigned" sizeInBits="32"/>

               </IntegerParameterType>

            </ParameterTypeSet>

            <ParameterSet>

               <Parameter name="Bah" parameterTypeRef="Bah_Type"/>

            </ParameterSet>

            <ContainerSet>

               <SequenceContainer name="Bah">

                  <EntryList>

                     <ParameterRefEntry parameterRef="Bah"/>

                  </EntryList>

               </SequenceContainer>

            </ContainerSet>

         </TelemetryMetaData>

      </SpaceSystem>

   </SpaceSystem>

</SpaceSystem>

from ccdd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.