public static Operation GetOperation(Fault element) { return DslModeling::DomainRoleInfo.GetLinkedElement(element, FaultDomainRoleId) as Operation; }
public static void SetOperation(Fault element, Operation newOperation) { DslModeling::DomainRoleInfo.SetLinkedElement(element, FaultDomainRoleId, newOperation); }
/// <summary> /// Constructor /// Creates a OperationHasFaults link in the same Partition as the given Operation /// </summary> /// <param name="source">Operation to use as the source of the relationship.</param> /// <param name="target">Fault to use as the target of the relationship.</param> public OperationHasFaults(Operation source, Fault target) : base((source != null ? source.Partition : null), new DslModeling::RoleAssignment[]{new DslModeling::RoleAssignment(OperationHasFaults.OperationDomainRoleId, source), new DslModeling::RoleAssignment(OperationHasFaults.FaultDomainRoleId, target)}, null) { }