Table of Contents

Class AbstractImpliedRelationshipsStrategy

Namespace
C4.Net
Assembly
C4.Net.Core.dll

Provides shared guard logic for implied-relationship strategies.

public abstract class AbstractImpliedRelationshipsStrategy : IImpliedRelationshipsStrategy
Inheritance
AbstractImpliedRelationshipsStrategy
Implements
Derived
Inherited Members

Remarks

Implied relationships are never created between the same element or between parent and child elements in the static structure hierarchy.

Methods

CreateImpliedRelationships(Relationship)

Called after a relationship has been created in the model, providing an opportunity to create any resulting implied relationships.

public abstract void CreateImpliedRelationships(Relationship relationship)

Parameters

relationship Relationship

the newly created Relationship

ImpliedRelationshipIsAllowed(Element, Element)

Determines whether an implied relationship can be created between the supplied elements.

protected bool ImpliedRelationshipIsAllowed(Element source, Element destination)

Parameters

source Element

The candidate source element.

destination Element

The candidate destination element.

Returns

bool

true when the elements are distinct and are not in a parent-child relationship; otherwise, false.