Skip to main content

RequiredAssociation

Namespace: Meshmakers.Octo.MeshAdapter.Nodes.Transform

A required association from an entity to a child of a specific CK type via a specific role. Used by CoverageRule.RequiredAssociations.

public record RequiredAssociation : IEquatable<RequiredAssociation>

Inheritance ObjectRequiredAssociation
Implements IEquatable<RequiredAssociation>

Properties

AssociationRoleId

Fully qualified association role id (e.g. "EnergyIQ/SpaceSensors"). Looked up INBOUND from the entity — i.e. the queried entity is the target of the association, and children of the role's CkTypeId are the origin side.

public string AssociationRoleId { get; set; }

Property Value

String

TargetCkTypeId

CK type id of the child entity that must be present (e.g. "EnergyIQ/TemperatureSensor"). The check is for at least one entity of this type via the role; multiplicity beyond that isn't enforced here.

public string TargetCkTypeId { get; set; }

Property Value

String

Constructors

RequiredAssociation()

Caution

Constructors of types with required members are not supported in this version of your compiler.


public RequiredAssociation()