Book a Demo

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - petergsimmon

Pages: [1]
1
General Board / Re: creating a base diagram for a class
« on: August 19, 2014, 02:21:27 am »
still looking any further clarification would be helpful.

but thanks for that anyway.

2
General Board / creating a base diagram for a class
« on: August 18, 2014, 11:27:34 pm »
i was reading in the help files, somewhere, that you could define a diagram, with grandparent, parent, and child elements, and them associate a set of classes with the same structure, and then when you drag the grandparent onto the class/package diagram you would automaticly get the picture.
in other words, you develop a diagram for class BOB a(GP), b(P), c(C) and then when you say that a person class, is like/inheirated/ etc, a bob class, then you get the same diagram as you drag a Person on to the screen as you saw in the A/B/C picture.  all help is appreciated.

3
General Board / Re: xml/xsd import issue
« on: May 12, 2014, 11:28:43 pm »
thank you Sir!!!
I will have a look.  and let you know if i need additional help.    :D

4
General Board / Re: xml/xsd import issue
« on: May 10, 2014, 01:38:12 am »
i can code in c#.net do you have any examples of adding instances that i might copy/extend??  and the how_to's would also be helpful..   or just a link with more examples would be good as well.  thanks.

5
General Board / xml/xsd import issue
« on: May 09, 2014, 11:13:15 am »
 i am trying to get a structure imported to Sparx EA.  i have an XSD that describes the meta structure or base classes. now i need to import the different members of the classes. i.e. <?xml version="1.0" encoding="utf-8"?>

<xs:schema targetNamespace="http://tempuri.org/XMLSchema.xsd"
   xmlns="http://tempuri.org/XMLSchema.xsd"
   xmlns:mstns="http://tempuri.org/XMLSchema.xsd"
   xmlns:xs="http://www.w3.org/2001/XMLSchema"
           elementFormDefault='qualified'>

 <xs:element name='PadisTTYSegmentList' type='SegmentListType' />

 <xs:complexType name='SegmentListType'>
   <xs:sequence>
     <xs:element name="SegmentItem" type="SegmentItemType" minOccurs="1" maxOccurs="unbounded"/>
   </xs:sequence>
 </xs:complexType>
 <xs:complexType name='SegmentItemType'>
   <xs:sequence>
     <xs:element name="PadisID" type="xs:string" />
     <xs:element name="PadisVersion" type="xs:string" />
     <xs:element name="Description" type="xs:string" />
     <xs:element name="CompositeItems" type="CompositeListType" />
   </xs:sequence>
 </xs:complexType>
 <xs:complexType name="CompositeListType">
   <xs:sequence>
     <xs:element name="CompositeItem" type="CompositeItemType" minOccurs="1" maxOccurs="unbounded"/>
   </xs:sequence>
 </xs:complexType>
 <xs:complexType name='CompositeItemType'>
   <xs:sequence>
     <xs:element name="PadisID" type="xs:string" />
     <xs:element name="PadisVersion" type="xs:string" />
     <xs:element name="Description" type="xs:string" />
     <xs:element name="ElementItems" type="ElementListType" />
   </xs:sequence>
 </xs:complexType>
 <xs:complexType name="ElementListType">
   <xs:sequence>
     <xs:element name="ElementItem" type="ElementItemType" minOccurs="1" maxOccurs="unbounded"/>
   </xs:sequence>
 </xs:complexType>
 <xs:complexType name='ElementItemType'>
   <xs:sequence>
     <xs:element name="PadisID" type="xs:string" />
     <xs:element name="PadisVersion" type="xs:string" />
     <xs:element name="Description" type="xs:string" />
     <xs:element name="PadisType" type="xs:string" />
   </xs:sequence>
 </xs:complexType>
</xs:schema>

this imports into EA fine. but for SEGMENT there are specific instances like abc and 123 and i am trying to figure out how to describe them so that EA will understand them.  

I could be doing this all wrong, and if so please say so. this is my first go with EA.

the second thing to load is the different instances of those classes.
      <?xml version="1.0" encoding="utf-8"?>
<SegmentItemType>
      <PadisID>UNH</PadisID>
      <PadisVersion>00</PadisVersion>
      <Description>this is a segment named unh00</Description>
      <CompositeItems>
          <CompositeItem>
            <PadisID>C009</PadisID>
               <PadisVersion>00.00</PadisVersion>
              <Description>this is a composite named c00900.00</Description>
              <ElementItems>
                <ElementItem>
                  <PadisID>9732</PadisID>
                        <PadisVersion>00</PadisVersion>
                        <Description>this is a date time</Description>
                        <PadisType>PadisDateTimeType</PadisType>
                  <Value>100100100100</Value>
                </ElementItem>
                <ElementItem>
                  <PadisID>9123</PadisID>
                        <PadisVersion>01</PadisVersion>
                        <Description>string value</Description>
                        <PadisType>PadisStringType</PadisType>
                  <Value>hello my friend</Value>
                </ElementItem>
                <ElementItem>
                  <PadisID>0001</PadisID>
                        <PadisVersion>99</PadisVersion>
                        <Description>integer</Description>
                        <PadisType>PadisIntType</PadisType>
                  <Value>123</Value>
                </ElementItem>
            </ElementItems>
          </CompositeItem>
          <CompositeItem>
            <PadisID>C001</PadisID>
               <PadisVersion>00</PadisVersion>
              <Description>new c</Description>
              <ElementItems>
                <ElementItem>
                  <PadisID>0001</PadisID>
                        <PadisVersion>99</PadisVersion>
                        <Description>integer</Description>
                        <PadisType>PadisIntType</PadisType>
                  <Value>123</Value>
                </ElementItem>
                <ElementItem>
                  <PadisID>00e1</PadisID>
                        <PadisVersion>99</PadisVersion>
                        <Description>integer</Description>
                        <PadisType>PadisIntType</PadisType>
                  <Value>123</Value>
                </ElementItem>
                <ElementItem>
                  <PadisID>00a1</PadisID>
                        <PadisVersion>99</PadisVersion>
                        <Description>integer</Description>
                        <PadisType>PadisIntType</PadisType>
                  <Value>123</Value>
                </ElementItem>
                
            </ElementItems>
          </CompositeItem>
      </CompositeItems>
</SegmentItemType>
let me know if you can help.  thanks
  

6
General Board / Newbie needs help
« on: May 09, 2014, 06:10:37 am »
i am trying to get a structure imported to Sparx EA.  i have an XSD that describes the meta structure or base classes. now i need to import the different members of the classes. i.e. <?xml version="1.0" encoding="utf-8"?>

<xs:schema targetNamespace="http://tempuri.org/XMLSchema.xsd"
    xmlns="http://tempuri.org/XMLSchema.xsd"
    xmlns:mstns="http://tempuri.org/XMLSchema.xsd"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
            elementFormDefault='qualified'>

  <xs:element name='PadisTTYSegmentList' type='SegmentListType' />

  <xs:complexType name='SegmentListType'>
    <xs:sequence>
      <xs:element name="SegmentItem" type="SegmentItemType" minOccurs="1" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name='SegmentItemType'>
    <xs:sequence>
      <xs:element name="PadisID" type="xs:string" />
      <xs:element name="PadisVersion" type="xs:string" />
      <xs:element name="Description" type="xs:string" />
      <xs:element name="CompositeItems" type="CompositeListType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="CompositeListType">
    <xs:sequence>
      <xs:element name="CompositeItem" type="CompositeItemType" minOccurs="1" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name='CompositeItemType'>
    <xs:sequence>
      <xs:element name="PadisID" type="xs:string" />
      <xs:element name="PadisVersion" type="xs:string" />
      <xs:element name="Description" type="xs:string" />
      <xs:element name="ElementItems" type="ElementListType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ElementListType">
    <xs:sequence>
      <xs:element name="ElementItem" type="ElementItemType" minOccurs="1" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name='ElementItemType'>
    <xs:sequence>
      <xs:element name="PadisID" type="xs:string" />
      <xs:element name="PadisVersion" type="xs:string" />
      <xs:element name="Description" type="xs:string" />
      <xs:element name="PadisType" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
</xs:schema>

this imports into EA fine. but for SEGMENT there are specific instances like abc and 123 and i am trying to figure out how to describe them so that EA will understand them.  

I could be doing this all wrong, and if so please say so. this is my first go with EA.

  

Pages: [1]