Exemple #1
0
 /// <summary>
 /// Copy the state of another FilteredPassData instance to this one
 /// </summary>
 public void Assign(FilteredPassData source)
 {
     MachineType = source.MachineType;
     FilteredPass.Assign(source.FilteredPass);
     TargetValues.Assign(source.TargetValues);
     EventValues.Assign(source.EventValues);
 }
Exemple #2
0
        public void AddPass(FilteredPassData pass /*, bool passesOrderedInIncreasingTime*/)
        {
            /* TODO include when IFOPT C+ equivalent is identified
             * {$IFOPT C+}
             * if PassesOrderedInIncreasingTime then
             * begin
             * if (FPassCount > 0) and(FilteredPassData[FPassCount - 1].FilteredPass.Time > (Pass.FilteredPass.Time + OneSecond)) then
             * Assert(False, Format('Passes not added to filtered pass list in increasing time order (2) (Time1 vs Time2 = %.6f vs %.6f', [FilteredPassData[FPassCount - 1].FilteredPass.Time, Pass.FilteredPass.Time])); { SKIP}
             * end
             * else
             * begin
             * Assert(((FPassCount = 0) or
             * (FilteredPassData[FPassCount - 1].FilteredPass.Time > (Pass.FilteredPass.Time - OneSecond))),
             * 'Passes not added to filtered pass list in decreasing time order'); { SKIP}
             * end;
             * {$ENDIF}
             */

            CheckArrayCapacity();

            // Add the pass to the list
            filteredPassData[PassCount] = pass;
            PassCount++;
        }