.Modelica_Requirements.Internal.SlidingWindow.maxDuration

Information

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

Interface

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

Generated at 2024-12-21T19:25:56Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos