@startuml
' the following file gets generated when you call
' "python pumla.py update" in this directory
!include modelrepo_json.puml
!include ./../../pumla_macros.puml
!include ./../../templates/sysml/skin.puml

!$PUMVarShowBodyInternals = %false()
!$PUMVarShowBodyInternalsDyn = %false()
' even with tagged values not shown on a diagram,
' we can reference the elements by their
' tags and values.
!$PUMVarShowTaggedValues = %false()
!$PUMVarShowTaggedValues = %true()

title Example using tagged values on relations

note as note1
This example puts 3 elements
onto the diagram

Then for the "Temperature Sensor B (dC)"
all dependent relations are put onto the
diagram that also have the tag/value
combination "SysVariant"/"B2".
end note

' without this line the interfaces of the component
' would be displayed as classes. the following
' command enforces this diagram to be a component
' diagram where we have these circles as interfaces.
PUMLASetAsComponentDiagram()

' put the following elements on the diagram:
PUMLAPutElement(tempSensorB)
PUMLAPutElement(tempConverter)
PUMLAPutElement(tempSensorBdC)

' try each of the following calls alone to see how
' the tagged value based relation selection works
PUMLAPutRelationsForElement(tempSensorBdC, "", "SysVariant", "B2")
'PUMLAPutRelationsForElement(tempSensorBdC, "", "SysVariant", "B3")
'PUMLAPutRelationsForElement(tempSensorBdC, "", "SysVariant")


@enduml
