Book a Demo

Author Topic: Template selector for DDS  (Read 7697 times)

Hazzelbanger

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Template selector for DDS
« on: January 22, 2016, 04:56:48 pm »
When I use a Template Selector Custom Query (see below) for Data Distribution Service  types it does not work. It simply reverts to the default template fragment. I have been able to use custom queries for other normal UML types. To determine the data type I simply select the element in the Project Browser and examine the Properties window. Any clues?

Code: [Select]
DataWriter::My_DDS_Fragment
DataWriter:dataWriter:My_DDS_Fragment
Default::My_Default_Fragment

Regards John


Christopher.Steven

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Template selector for DDS
« Reply #1 on: March 16, 2016, 02:42:24 am »
I am having the same problem with the togaf PhysicalTechnologyComponent no matter what I do it does not recognize the type. this seems to happen with types that are inherited. in this case physicaltechnologycomponent inherits technologycomponent and applies to component.

Christopher.Steven

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Template selector for DDS
« Reply #2 on: March 16, 2016, 03:18:43 am »
ok after a lot of testing I have found that if I set the element type to anything other then Class then it will not use the template.

I changed the element type in properties and removed the stereotype to narrow it down. this means you can only use a template selector on elements of type class.

Class::Test Template -- works
...::Test Template --Does not work



PeterHeintz

  • EA Practitioner
  • ***
  • Posts: 1001
  • Karma: +59/-18
    • View Profile
Re: Template selector for DDS
« Reply #3 on: March 16, 2016, 03:38:47 am »
Not absolutely sure what your DataWriter is, but I assume your DataWriter is a Class so you would need something like:
Class:DataWriter:yourFragment
Best regards,

Peter Heintz

Christopher.Steven

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Template selector for DDS
« Reply #4 on: March 16, 2016, 04:42:46 am »
what if you element type is a component instead of class?
Component:StereoType:Fragment

this does not work.

PeterHeintz

  • EA Practitioner
  • ***
  • Posts: 1001
  • Karma: +59/-18
    • View Profile
Re: Template selector for DDS
« Reply #5 on: March 16, 2016, 04:59:18 am »
I did not try all variations.
But somehow you have to find out what the basis of your DataWriter is.
For example I am using SysML having “Block” and I know that a SysML Block is in fact a Class so I use Class:block:fagment
I am to absolutely sure but I belief I remember a component is also just a kind of UML Class.
Best regards,

Peter Heintz

Christopher.Steven

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Template selector for DDS
« Reply #6 on: March 16, 2016, 05:19:14 am »
... omg I figured my part out... it was because I was using nested fragments and at the highest level I put Class::Template Selector instead of Default::Template Selector. So I was filtering only the class type objects through...