Relation (TQL): Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
[[Relation (TQL)|Relation]] is a [[Relation (TQL Param)|TQL Clause Parameter]] that can basically switch the subject of a [[TQL]] request to an other one related to the original subject.
Relation is a TQL Clause that can basically switch the subject of a TQL request to an other one, which is related to the original subject.
</noinclude>
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 13: Line 11:
| Rather than requesting data from the specified item, use the item which has this relation to it.
| Rather than requesting data from the specified item, use the item which has this relation to it.
| Technical name indicating a type of relation.
| Technical name indicating a type of relation.
|}
|}<noinclude>
<noinclude>
{{: Relation}}
====Relation Types====
{| class="wikitable"
|-
! Relation type
|-
| OWNER
|-
| CONSTRUCTOR
|-
| DEMOLISHER
|-
| PERMITTER
|-
| SENDER
|-
| RECEIVER
|-
| NETOWNER
|-
| BORDER_A
|-
| BORDER_B
|-
| BUILDING
|-
|}
 
==== Implemented Relations ====
{| class="wikitable"
|-
! Item type
! Relation Type
! Description
|-
| BUILDING
| OWNER, CONSTRUCTOR
| The [[Stakeholder]] configured as the owner of [[Building]]
|-
| BUILDING
| DEMOLISHER
| The [[Stakeholder]] configured as demolisher of [[Building]]
|-
| MEASURE
| BUILDING
| The first [[Building]] configured for this [[Measure]]
|-
| MEASURE
| OWNER
| The [[Stakeholder]] configured as the owner of this [[Measure]]
|-
| NET_CLUSTER
| OWNER
| The [[Stakeholder]] configured as the owner of this [[Net Cluster]]
|-
| NET_CLUSTER
| NETOWNER
| The [[Stakeholder]] configured as the owner of the [[Net Type]] of the first [[Net Load]], configured as a [[Net Setting]].
|-
| NET_LOAD
| OWNER
| The [[Stakeholder]] configured as the owner of this [[Net Cluster]].
|-
| NET_LOAD
| NETOWNER
| The [[Stakeholder]] configured as the owner of the [[Net Type]], configured as a [[Net Setting]].
|-
| NET_LOAD
| BUILDING
| The [[Building]] configured for this [[Net Load]].
|-
| PANEL
| OWNER
| The [[Stakeholder]] configured as the owner of this [[Panel]].
|-
| Zone
| PERMITTER
| The [[Stakeholder]] configured as the permitter of this [[Zone]]. Often the Municipality by default.
|-
|}


====Area Relations====
{{article end
Areas allow any of the [[Relation (TQL)#relation types]] to be configured using the editor area api events ADD_RELATION, SET_RELATION and REMOVE_RELATIONS.
|seealso=
* [[Relation (TQL Param)]]
}}
</noinclude>
</noinclude>

Latest revision as of 15:23, 13 February 2023

Relation is a TQL Clause Parameter that can basically switch the subject of a TQL request to an other one related to the original subject.

Clause As a polygon As an item Type
RELATION N/A Rather than requesting data from the specified item, use the item which has this relation to it. Technical name indicating a type of relation.

Relation Types

The following relation types are supported:

Relation type
OWNER
CONSTRUCTOR
DEMOLISHER
PERMITTER
SENDER
RECEIVER
NETOWNER
BORDER_A
BORDER_B
BUILDING

Implemented Relations

The following relations are implemented for the specified items.

Item type Relation Type Description
BUILDING OWNER, CONSTRUCTOR The Stakeholder configured as the owner of Building
BUILDING DEMOLISHER The Stakeholder configured as demolisher of Building
MEASURE BUILDING The first Building configured for this Measure
MEASURE OWNER The Stakeholder configured as the owner of this Measure
NET_CLUSTER OWNER The Stakeholder configured as the owner of this Net Cluster
NET_CLUSTER NETOWNER The Stakeholder configured as the owner of the Net Type of the first Net Load, configured as a Net Setting.
NET_LOAD OWNER The Stakeholder configured as the owner of this Net Cluster.
NET_LOAD NETOWNER The Stakeholder configured as the owner of the Net Type, configured as a Net Setting.
NET_LOAD BUILDING The Building configured for this Net Load.
PANEL OWNER The Stakeholder configured as the owner of this Panel.
ZONE PERMITTER The Stakeholder configured as the permitter of this Zone. Often the Municipality by default.

Area Relations

Areas allow any of the relation types to be configured using the editor area api events ADD_RELATION, SET_RELATION and REMOVE_RELATIONS.