Class UtilityAssociation


  • public final class UtilityAssociation
    extends java.lang.Object
    A connectivity, containment, or structural attachment association.

    Associations are an integral part of network topology. Connectivity associations allow connectivity between two junctions that don't have geometric coincidence (are not in the same location). Structural attachment associations allow modeling equipment attached to structures. Containment associations allow modeling containment of features within other features. Network traces make use of associations. Associations are defined using two UtilityElement objects.

    Since:
    100.7.0
    • Method Detail

      • getFromElement

        public UtilityElement getFromElement()
        Gets the first participant in a UtilityAssociation.

        If this is a containment association, this property represents the container. If this is a structural attachment association, this property represents the structure.

        Returns:
        the first participant in a utility association
        Since:
        100.7.0
      • getToElement

        public UtilityElement getToElement()
        Gets the second participant in a UtilityAssociation.

        If this is a containment association, this property represents the content. If this is a structural attachment association, this property represents the attached item.

        Returns:
        the second participant in a utility association
        Since:
        100.7.0
      • getGlobalId

        public java.util.UUID getGlobalId()
        Gets the global ID of the association.
        Returns:
        the global ID
        Since:
        100.7.0
      • isContainmentVisible

        public boolean isContainmentVisible()
        If this UtilityAssociation represents a containment association, returns whether the containment is visible.
        Returns:
        true if the utility association represents a containment association and the containment is visible, false otherwise
        Since:
        100.7.0