Example #1
0
		public static void SetBarkerErModel(ExclusiveArc element, BarkerErModel newBarkerErModel)
		{
			DslModeling::DomainRoleInfo.SetLinkedElement(element, ExclusiveArcDomainRoleId, newBarkerErModel);
		}
Example #2
0
		public static BarkerErModel GetBarkerErModel(ExclusiveArc element)
		{
			return DslModeling::DomainRoleInfo.GetLinkedElement(element, ExclusiveArcDomainRoleId) as BarkerErModel;
		}
Example #3
0
		/// <summary>
		/// Constructor
		/// Creates a BarkerErModelContainsExclusiveArc link in the same Partition as the given BarkerErModel
		/// </summary>
		/// <param name="source">BarkerErModel to use as the source of the relationship.</param>
		/// <param name="target">ExclusiveArc to use as the target of the relationship.</param>
		public BarkerErModelContainsExclusiveArc(BarkerErModel source, ExclusiveArc target)
			: base((source != null ? source.Partition : null), new DslModeling::RoleAssignment[]{new DslModeling::RoleAssignment(BarkerErModelContainsExclusiveArc.BarkerErModelDomainRoleId, source), new DslModeling::RoleAssignment(BarkerErModelContainsExclusiveArc.ExclusiveArcDomainRoleId, target)}, null)
		{
		}
Example #4
0
		public static DslModeling::LinkedElementCollection<Role> GetRoleCollection(ExclusiveArc element)
		{
			return new DslModeling::LinkedElementCollection<Role>(element, ExclusiveArcDomainRoleId);
		}
Example #5
0
		public static void SetExclusiveArc(Role element, ExclusiveArc newExclusiveArc)
		{
			DslModeling::DomainRoleInfo.SetLinkedElement(element, ConstrainedRoleDomainRoleId, newExclusiveArc);
		}
Example #6
0
		/// <summary>
		/// Constructor
		/// Creates a ExclusiveArcSpansOptionalRole link in the same Partition as the given ExclusiveArc
		/// </summary>
		/// <param name="source">ExclusiveArc to use as the source of the relationship.</param>
		/// <param name="target">Role to use as the target of the relationship.</param>
		public ExclusiveArcSpansOptionalRole(ExclusiveArc source, Role target)
			: base((source != null ? source.Partition : null), new DslModeling::RoleAssignment[]{new DslModeling::RoleAssignment(ExclusiveArcSpansOptionalRole.ExclusiveArcDomainRoleId, source), new DslModeling::RoleAssignment(ExclusiveArcSpansOptionalRole.ConstrainedRoleDomainRoleId, target)}, null)
		{
		}