コード例 #1
0
ファイル: ModelResults.cs プロジェクト: lulzzz/Nucleus
 /// <summary>
 /// Get the maximum and minimum result interval for the specified case, linear element, type and position
 /// along the element.
 /// </summary>
 /// <param name="rCase"></param>
 /// <param name="element"></param>
 /// <param name="type"></param>
 /// <param name="position"></param>
 /// <returns></returns>
 public Interval this[ResultsCase rCase, LinearElement element, LinearElementResultTypes type, double position]
 {
     get
     {
         var graph = this[rCase, element, type];
         if (graph != null)
         {
             return(graph.ValueAt(position));
         }
         else
         {
             return(Interval.Unset);
         }
     }
 }
コード例 #2
0
ファイル: ModelResults.cs プロジェクト: lulzzz/Nucleus
 /// <summary>
 /// Get the results interval graph along the specified linear element for the given
 /// case and result type
 /// </summary>
 /// <param name="rCase"></param>
 /// <param name="element"></param>
 /// <param name="type"></param>
 /// <returns></returns>
 public LinearIntervalDataSet this[ResultsCase rCase, LinearElement element, LinearElementResultTypes type]
 {
     get { return(this[rCase, element]?[type]); }
 }