Table generation

<table> tag must be defined under a <gendoc> tag

The purpose of this tag is to merge all tables found inside tag content into one global table.

Template content

<context model=’${project_loc}/Models/TrafficLightManager.uml’ element='TrafficLightManager/LogicalView' importedBundles='gmf;papyrus' />

The following elements are described in the Logical view :

<gendoc>
<table>

Name

Attributes

[for (c:Class|self.ownedElement->filter(Class)->sortedBy(name))]

[c.name/]

[for (p:Property|c.ownedAttribute)]<drop/>

  • [p.name/] : [p.type.name/]

[/for]

[/for]

</table>
</gendoc>

Output

The following elements are described in the Logical view :

Name

Attributes

SystemLauncher

  • x roads ctrl : XRoadsControler
  • tl group : TrafficLightGroup
  • tl : TrafficLight
  • red fire : RedFire
  • orange fire : OrangeFire
  • green fire : GreenFire

TrafficLight

  • traffic light id : Integer
  • operator maintenance : Operator maintenance
  • xroadscontroler : XRoadsControler
  • road : Road

TrafficLightGroup

  • tl group id : Integer
  • nb tl : Integer
  • traffic light : TrafficLight

XRoadsControler

  • nb tl group : Integer
  • crossroads domain : Crossroads Domain
  • operator maintenance : Operator maintenance
  • trafficlight : TrafficLight

If table styles are used in the template document inside a <table> tag, the style of the output table will be the style of the first table inside <table> tag.