UtilityAssociation.withFractionAlongEdge constructor

UtilityAssociation.withFractionAlongEdge(
  1. UtilityAssociationType associationType, {
  2. required UtilityElement fromElement,
  3. required UtilityElement toElement,
  4. required double fractionAlongEdge,
})

Creates an association with the specified type between the specified utility elements with the UtilityAssociation.fractionAlongEdge value.

This constructor is typically used when creating UtilityAssociationType.junctionEdgeObjectConnectivityMidspan association.

Parameters:

  • associationType — The type of association between the UtilityAssociation.fromElement and UtilityAssociation.toElement.
  • fromElement — The first participant in the association.
  • toElement — The second participant in the association.
  • fractionAlongEdge — The relative location along the non-spatial edge where the junction is (logically) located.