コード例 #1
0
 private static LogicalElement SetBrokenType(LogicalElement element, BrokenTypes brokenType)
 {
     element.BrokenType = brokenType;
     return element;
 }
コード例 #2
0
		private LogicalElement[] GetConfiguredLogicalElements(IDictionary<int, FunctionTypes> configurationFunctions,
															  IDictionary<int, BrokenTypes> configurationBrokenTypes)
		{
			if (configurationFunctions.Count == 0)
			{
				throw new ArgumentException("configurationFunctions is empty");
			}

			if (configurationBrokenTypes.Count == 0)
			{
				throw new ArgumentException("configurationBrokenTypes is empty");
			}

			LogicalElement[] elements = new LogicalElement[COUNT_ELEMENTS];

			for (int i = 0; i < elements.Length; i++)
			{
				elements[i] = LogicalElementBuilder.Build(1 + i, configurationFunctions[1 + i], configurationBrokenTypes[1 + i]);
			}

			_elements = elements;

			return elements;
		}
コード例 #3
0
 private static LogicalElement SetFunction(LogicalElement element, FunctionTypes functionType)
 {
     element.Function = FunctionFactory.GetFunction(functionType);
     return element;
 }