Skip to main content

RtAssociation

Namespace: Meshmakers.Octo.Runtime.Contracts.RepositoryEntities

Represents a runtime association, the instance of a connection between two runtime entities.

public class RtAssociation : RtTypeWithAttributes

Inheritance Object → RtTypeWithAttributes → RtAssociation

Properties​

AssociationId​

Gets or sets the object id of the association

public OctoObjectId AssociationId { get; set; }

Property Value​

OctoObjectId

RtState​

Gets or sets the state of the association

public Nullable<RtState> RtState { get; set; }

Property Value​

Nullable<RtState>

OriginRtId​

Gets or sets the object id of the origin runtime entity

public OctoObjectId OriginRtId { get; set; }

Property Value​

OctoObjectId

OriginCkTypeId​

Gets or sets the origin ck type id.

public RtCkId<CkTypeId> OriginCkTypeId { get; set; }

Property Value​

RtCkId<CkTypeId>

TargetRtId​

Gets or sets the object id of the target runtime entity

public OctoObjectId TargetRtId { get; set; }

Property Value​

OctoObjectId

TargetCkTypeId​

Gets or sets the target ck type id.

public RtCkId<CkTypeId> TargetCkTypeId { get; set; }

Property Value​

RtCkId<CkTypeId>

TargetCkAttributeIds​

Gets or sets a list of attributes of the target ck type id, that are referential integrity attributes

public List<RtCkId<CkAttributeId>> TargetCkAttributeIds { get; set; }

Property Value​

List<RtCkId<CkAttributeId>>

AssociationRoleId​

Gets or sets the association role id of the association role

public RtCkId<CkAssociationRoleId> AssociationRoleId { get; set; }

Property Value​

RtCkId<CkAssociationRoleId>

Attributes​

Returns a dictionary of attributes.

public IReadOnlyDictionary<string, object> Attributes { get; }

Property Value​

IReadOnlyDictionary<String, Object>

Remarks:

Vor getting/setting values use the GetAttribute/SetAttribute-Methods

Constructors​

RtAssociation()​

Creates a new instance of RtAssociation

public RtAssociation()

RtAssociation(RtCkId<CkAssociationRoleId>, OctoObjectId, IReadOnlyDictionary<String, Object>)​

Creates a new instance of RtAssociation

public RtAssociation(RtCkId<CkAssociationRoleId> associationRoleId, OctoObjectId associationId, IReadOnlyDictionary<string, object> attributes)

Parameters​

associationRoleId RtCkId<CkAssociationRoleId>
Construction kit association role id

associationId OctoObjectId
Object id

attributes IReadOnlyDictionary<String, Object>
List of attributes

Methods​

GetLocation()​

protected string GetLocation()

Returns​

String