.Modelica_Requirements.Internal.SlidingWindow.accumulatedDuration

Returns the accumulated duration where buffer value is true in the sliding time window

Interface

function accumulatedDuration
  input Buffer buffer "Memory of sliding window";
  input Modelica.Units.SI.Time t "Actual time instant";
  input Boolean b = false "Actual value at t (used if no element is in the buffer)";
  output Modelica.Units.SI.Time duration "Accumulated duration where buffer value is true in window";
end accumulatedDuration;

Generated at 2025-03-13T19:24:49Z by OpenModelicaOpenModelica 1.24.5 using GenerateDoc.mos