tune
This commit is contained in:
@@ -153,109 +153,38 @@ Class StepTimeShotUtil
|
||||
</h2>
|
||||
|
||||
|
||||
<a id="Hi_Mapping_StepTimeShotUtil_GetShots_" data-uid="Hi.Mapping.StepTimeShotUtil.GetShots*"></a>
|
||||
<a id="Hi_Mapping_StepTimeShotUtil_GetStepToShotsDictionaryByActualTime_" data-uid="Hi.Mapping.StepTimeShotUtil.GetStepToShotsDictionaryByActualTime*"></a>
|
||||
|
||||
<h3 id="Hi_Mapping_StepTimeShotUtil_GetShots_Hi_Mappings_FileTimeSection_Hi_Mapping_StepTimeShotUtil_GetTimeShotByFileDelegate_" data-uid="Hi.Mapping.StepTimeShotUtil.GetShots(Hi.Mappings.FileTimeSection,Hi.Mapping.StepTimeShotUtil.GetTimeShotByFileDelegate)">
|
||||
GetShots(FileTimeSection, GetTimeShotByFileDelegate)
|
||||
<h3 id="Hi_Mapping_StepTimeShotUtil_GetStepToShotsDictionaryByActualTime_Hi_CutterLocations_ClStrips_ClStrip_Hi_Common_Range_System_Int32__Hi_Mapping_StepTimeShotUtil_CycleSamplingMode_System_String_Hi_Mapping_StepTimeShotUtil_GetTimeShotByFileDelegate_" data-uid="Hi.Mapping.StepTimeShotUtil.GetStepToShotsDictionaryByActualTime(Hi.CutterLocations.ClStrips.ClStrip,Hi.Common.Range{System.Int32},Hi.Mapping.StepTimeShotUtil.CycleSamplingMode,System.String,Hi.Mapping.StepTimeShotUtil.GetTimeShotByFileDelegate)">
|
||||
GetStepToShotsDictionaryByActualTime(ClStrip, Range<int>, CycleSamplingMode, string, GetTimeShotByFileDelegate)
|
||||
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Gets time shots from a file time section, filtering and interpolating based on the specified time range.</p>
|
||||
</div>
|
||||
<div class="markdown level1 summary"></div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static List<ITimeShot> GetShots(FileTimeSection relFileTimeSection, StepTimeShotUtil.GetTimeShotByFileDelegate getTimeShotByRelFileFunc)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>relFileTimeSection</code> <a class="xref" href="Hi.Mappings.FileTimeSection.html">FileTimeSection</a></dt>
|
||||
<dd><p>The file time section containing file path and time range for filtering.</p>
|
||||
</dd>
|
||||
<dt><code>getTimeShotByRelFileFunc</code> <a class="xref" href="Hi.Mapping.StepTimeShotUtil.html">StepTimeShotUtil</a>.<a class="xref" href="Hi.Mapping.StepTimeShotUtil.GetTimeShotByFileDelegate.html">GetTimeShotByFileDelegate</a></dt>
|
||||
<dd><p>The delegate function to get time shots from a file.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<h4 class="section">Returns</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a><<a class="xref" href="Hi.Mapping.ITimeShot.html">ITimeShot</a>></dt>
|
||||
<dd><p>A list of time shots that:</p>
|
||||
<ul>
|
||||
<li>Fall within the specified time range</li>
|
||||
<li>Include interpolated values at range boundaries</li>
|
||||
<li>Are sorted by time
|
||||
Returns null if no shots are found or if reading fails.</li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4 class="section" id="Hi_Mapping_StepTimeShotUtil_GetShots_Hi_Mappings_FileTimeSection_Hi_Mapping_StepTimeShotUtil_GetTimeShotByFileDelegate__remarks">Remarks</h4>
|
||||
<div class="markdown level1 remarks"><p>The returned shots are:</p>
|
||||
<ul>
|
||||
<li>Filtered to the specified time range</li>
|
||||
<li>Interpolated at range boundaries for accuracy</li>
|
||||
<li>Sorted by time</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<a id="Hi_Mapping_StepTimeShotUtil_GetStepToShotsDictionary_" data-uid="Hi.Mapping.StepTimeShotUtil.GetStepToShotsDictionary*"></a>
|
||||
|
||||
<h3 id="Hi_Mapping_StepTimeShotUtil_GetStepToShotsDictionary_Hi_CutterLocations_ClStrips_ClStrip_Hi_Common_Range_System_Int32__Hi_Machining_MachiningToolHouse_Hi_Mapping_StepTimeShotUtil_CycleSamplingMode_Hi_Mappings_FileTimeSection_Hi_Mapping_StepTimeShotUtil_GetTimeShotByFileDelegate_" data-uid="Hi.Mapping.StepTimeShotUtil.GetStepToShotsDictionary(Hi.CutterLocations.ClStrips.ClStrip,Hi.Common.Range{System.Int32},Hi.Machining.MachiningToolHouse,Hi.Mapping.StepTimeShotUtil.CycleSamplingMode,Hi.Mappings.FileTimeSection,Hi.Mapping.StepTimeShotUtil.GetTimeShotByFileDelegate)">
|
||||
GetStepToShotsDictionary(ClStrip, Range<int>, MachiningToolHouse, CycleSamplingMode, FileTimeSection, GetTimeShotByFileDelegate)
|
||||
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Gets a dictionary mapping step indices to lists of time shots.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static Dictionary<int, List<ITimeShot>> GetStepToShotsDictionary(ClStrip clStrip, Range<int> stepSection, MachiningToolHouse toolHouse, StepTimeShotUtil.CycleSamplingMode cycleSamplingMode, FileTimeSection relFileTimeSection, StepTimeShotUtil.GetTimeShotByFileDelegate getTimeShotByRelFileFunc)</code></pre>
|
||||
<pre><code class="lang-csharp hljs">public static Dictionary<int, List<ITimeShot>> GetStepToShotsDictionaryByActualTime(ClStrip clStrip, Range<int> stepSection, StepTimeShotUtil.CycleSamplingMode cycleSamplingMode, string timeShotRelFile, StepTimeShotUtil.GetTimeShotByFileDelegate getTimeShotByRelFileFunc)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>clStrip</code> <a class="xref" href="Hi.CutterLocations.ClStrips.ClStrip.html">ClStrip</a></dt>
|
||||
<dd><p>The cutter location strip containing the steps.</p>
|
||||
</dd>
|
||||
<dd></dd>
|
||||
<dt><code>stepSection</code> <a class="xref" href="Hi.Common.Range-1.html">Range</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>></dt>
|
||||
<dd><p>The range of step indices to process.</p>
|
||||
</dd>
|
||||
<dt><code>toolHouse</code> <a class="xref" href="Hi.Machining.MachiningToolHouse.html">MachiningToolHouse</a></dt>
|
||||
<dd><p>The tool house containing available tools.</p>
|
||||
</dd>
|
||||
<dd></dd>
|
||||
<dt><code>cycleSamplingMode</code> <a class="xref" href="Hi.Mapping.StepTimeShotUtil.html">StepTimeShotUtil</a>.<a class="xref" href="Hi.Mapping.StepTimeShotUtil.CycleSamplingMode.html">CycleSamplingMode</a></dt>
|
||||
<dd><p>The cycle sampling mode to use (spindle or flute cycle).</p>
|
||||
</dd>
|
||||
<dt><code>relFileTimeSection</code> <a class="xref" href="Hi.Mappings.FileTimeSection.html">FileTimeSection</a></dt>
|
||||
<dd><p>The file time section containing file path and time range.</p>
|
||||
</dd>
|
||||
<dd></dd>
|
||||
<dt><code>timeShotRelFile</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd></dd>
|
||||
<dt><code>getTimeShotByRelFileFunc</code> <a class="xref" href="Hi.Mapping.StepTimeShotUtil.html">StepTimeShotUtil</a>.<a class="xref" href="Hi.Mapping.StepTimeShotUtil.GetTimeShotByFileDelegate.html">GetTimeShotByFileDelegate</a></dt>
|
||||
<dd><p>The delegate function to get time shots from a file.</p>
|
||||
</dd>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
<h4 class="section">Returns</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2">Dictionary</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a><<a class="xref" href="Hi.Mapping.ITimeShot.html">ITimeShot</a>>></dt>
|
||||
<dd><p>A dictionary mapping step indices to time shot lists, or null if:</p>
|
||||
<ul>
|
||||
<li>File reading fails</li>
|
||||
<li>Time range calculation fails</li>
|
||||
<li>No valid shots are found</li>
|
||||
</ul>
|
||||
</dd>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
@@ -264,15 +193,6 @@ Returns null if no shots are found or if reading fails.</li>
|
||||
|
||||
|
||||
|
||||
<h4 class="section" id="Hi_Mapping_StepTimeShotUtil_GetStepToShotsDictionary_Hi_CutterLocations_ClStrips_ClStrip_Hi_Common_Range_System_Int32__Hi_Machining_MachiningToolHouse_Hi_Mapping_StepTimeShotUtil_CycleSamplingMode_Hi_Mappings_FileTimeSection_Hi_Mapping_StepTimeShotUtil_GetTimeShotByFileDelegate__remarks">Remarks</h4>
|
||||
<div class="markdown level1 remarks"><p>For each step, this method:</p>
|
||||
<ul>
|
||||
<li>Calculates the appropriate time range</li>
|
||||
<li>Filters shots to that range</li>
|
||||
<li>Interpolates values at range boundaries</li>
|
||||
<li>Ensures at least one full cycle of data</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user