Beispiel #1
0
		/// <summary> Adds the specified enumeration relation to the knowledge of this workspace. </summary>
		public void Add(EnumerationRelation relation)
		{
			Contract.Requires(relation != null);

			this.enumerationRelations.Add(relation);
		}
Beispiel #2
0
		public override void AddEnumerableOrAppendableRule(Set enumerableOrAppendableSet, params Notion[] elements)
		{
			Contract.Requires(elements != null);
			Contract.RequiresForAll(elements, NotNull);
			Contract.Requires(elements.Select(e => e.Domain).AreEqualByRef());

			EnumerationRelation relation;
			if (enumerableOrAppendableSet.IsAppendable)
				relation = new EnumerationRelation(elements.ToList(), enumerableOrAppendableSet);
			else
				relation = new EnumerationRelation(new ReadOnlyCollection<Notion>(elements), enumerableOrAppendableSet);

			this.enumerationRelations.Add(relation);
		}
Beispiel #3
0
		public void Add(EnumerationRelation relation)
		{
			this.relations.Add(relation);
		}