{% if req_spec.classification %}##### {{req_spec.classification}} #####{% endif %}

@startuml {{req_spec.title}} Requirements Diagram

mainframe **req** [{{package | default('Package')}}] **{{req_spec.title}}** [{{req_spec.subtitle | default('Requirements')}}]

object "<<{{req_spec.type}}>> **{{req_spec.title}}**" as {{req_spec.name}} {
    id = {{req_spec.id}}
    Text = {{req_spec.shall}}
    {% for attribute in req_spec.attributes -%}
    {{attribute.name}} = {{attribute.value}}
    {% endfor -%}
}

{% for r in req_spec.connected -%}
{{r.parent}} {{r.arrow | safe}} {{r.child}}{% if r.relationship %} : <<{{r.relationship}}>>{% endif %}
{% endfor -%}

@enduml

{% if req_spec.classification %}##### {{req_spec.classification}} #####{% endif %}
