/// <summary> /// Adds a reading to the fact. /// </summary> /// <param name="readingText">The text of the reading to add.</param> /// <returns>The reading that was added.</returns> public Reading AddReading(string readingText) { LinkedElementCollection <RoleBase> factRoles = RoleCollection; int roleCount = factRoles.Count; if (!Reading.IsValidReadingText(readingText, roleCount)) { throw new ArgumentException(ResourceStrings.ModelExceptionFactAddReadingInvalidReadingText, "readingText"); } Reading retVal = new Reading(Partition, new PropertyAssignment(Reading.TextDomainPropertyId, readingText)); retVal.ReadingOrder = this; return(retVal); }