/// <summary> /// Gets the hypotheses. /// </summary> /// <param name="boxModule">The box module.</param> /// <returns>Hypotheses.</returns> public static HypothesisStruct[] GetHypotheses(BoxModuleI boxModule) { HypothesisStruct[] result = ((HypothesesTI)boxModule.GetPropertyOther("Hypotheses")).getHypothesesValue(); if (result == null) return new HypothesisStruct[0]; else return result; }
/// <summary> /// Gets the generation info. /// </summary> /// <param name="boxModule">The box module.</param> /// <returns>Generation info.</returns> public static GeneratingStruct GetGenerationInfo(BoxModuleI boxModule) { GeneratingStruct result = ((GenerationInfoTI)boxModule.GetPropertyOther("GenerationInfo")).getGenerationInfo(); if (result.generationStartTime == null) result.generationStartTime = new DateTimeTI(0, 0, 0, 0, 0, 0); if (result.generationTotalTime == null) result.generationTotalTime = new TimeTI(0, 0, 0); return result; }