Customizing the metamodel > Keywords for USRPROPS > REPRESENTS IMPLICIT RELATIONSHIP
  
REPRESENTS IMPLICIT RELATIONSHIP
The REPRESENTS IMPLICIT RELATIONSHIP keyword specifies a symbol as representational consistent and representing one or more implicit relationships that can appear on a diagram. An implicit relationship is a property reference from one model object to another.
In the following example, “Generic Line” indicates that the relationship should be drawn as a plain line.
SYMBOL "describedBy (DM2r)"
{
DEPICT LIKE "Generic Line"
REPRESENTS IMPLICIT RELATIONSHIP "Thing (DM2)"."describedBy" AND_SUBTYPES
Assign To "OV-02 Operational Resource Flow Alternative (DM2)"
DEPICTIONS
{ MENU "images\LineEnd1.bmp" }
PROPERTY "To Line End"
{ EDIT TEXT ListOnly LIST "LineEnds" DEFAULT "LineEnd1"
LENGTH 30 INVISIBLE TOTAG}
}
Note The “To Line End” property is commonly used in all instances where the REPRESENTS IMPLICIT RELATIONSHIP keyword is used. This can be any list-based property but it needs to contain a TOTAG keyword. You can set up a default value. There are existing lists “LineEnds” and “LineEndsAsDescribed”, the former also including coded names at the end of the list whereas the latter just has the descriptive values. You are free to find and copy these into new lists and change the descriptive value to something else.
To create implicit relationships in hierarchical diagrams, use a USRPROPS. The next example shows how to create implicit relationships for a hierarchical diagram using a USRPROPS. Listof-type references (LISTOF, HeterogeneousListOf, and so on) are supported where multiple parents need to be supported. Implicit relationships for box-in-box diagrams are done in the same manner. Listof-type references are also supported.
RENAME SYMBOL "User 1" TO "Test Node"
RENAME SYMBOL "USer 2" TO "Node Decomposition"
RENAME DEFINITION "User 1" TO "Test Node"
DIAGRAM "HD"
{ HIERARCHICAL }
SYMBOL "Test Node"
{ REPRESENTS NODE "Test Node" Assign To "HD" }
SYMBOL "Node Decomposition"
{ DEPICT LIKE "Generic Line" REPRESENTS IMPLICIT RELATIONSHIP
"Test Node"."Parent Node" Assign To "HD"
}
DEFINITION "Test Node"
{
CHAPTER "Decomposition"
PROPERTY "Component Nodes"
{ EDIT LISTOF "Test Node" RELATE BY "comprises"
MIRRORS "Parent Node" }
PROPERTY "Parent Node"
{ EDIT ONEOF "Test Node" RELATE BY "is part of"
MIRRORS "Component Nodes" }
}
See also
Keywords for USRPROPS